=== ANCHOR POEM === ═══════════════════════════════════════════════════════════════════──────────────── main() is where you put stuff before you abstract it into a function. Usually it gets quite long, but it's mostly just a table-of-contents listing of all the other functions that are run in order to do this-or-that-or-the-other. -- I wonder if you could generate RNG by hooking up a camera to a lava-lamp and scanning through the pixels or whatever ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧════════════════════════════════════════════════════════════───────────────┘ === SIMILARITY RANKED === --- #1 fediverse/581 --- ═════════════════════════════════════════════────────────────────────────────────── @user-428 sometimes I think about how much more productive I'd be if I had a code editor that let me draw arrows and smiley faces and such alongside the code. Or if I could position things strangely, like two functions side-by-side with boxes drawn around them. Or diagrams or flowcharts or graphs or... something that would output to raw txt format, but would present itself as an image that could be edited. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘ --- #2 fediverse/3226 --- ═══════════════════════════════════════════════════════──────────────────────────── if your man page is longer than a list of options and their usage and a paragraph or twenty of how to use the software... then you need to abstract, and break your code into multiple purpose-built applications. do one thing, and do it right. alternatively, do one set of things, and do them concisely. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘ --- #3 fediverse/6120 --- ═══════════════════════════════════════════════════════════════════════════──────── ┌──────────────────────┐ │ CW: AI-mentioned │ └──────────────────────┘ it's pretty easy to read an article or blog post, copy the text into a text file, and forget about it. you never know when you might want to use your computer's memories for [entertainment during long dark nights, or for creating an AI buddy bot, depending on how things go] ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧════════════════════════════════════════════════════════════════════───────┘ --- #4 fediverse/1810 --- ═════════════════════════════════════════════════════────────────────────────────── some people hear words like "datastructures" and "object-oriented programming" and think they're made up terms that don't mean anything important. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘ --- #5 fediverse/1718 --- ════════════════════════════════════════════════════─────────────────────────────── dear old people - did you know computers don't need to have buttons? You can literally just type what you want to make happen (if you know the magic spell) and it'll just, do that thing how cool is that ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═════════════════════════════════════════════──────────────────────────────┘ --- #6 fediverse/4900 --- ════════════════════════════════════════════════════════════════─────────────────── if you wanna trick systems administrators just put a bunch of sleeps in your code so your computer programs don't use up all the mainframe's resources all at once [statements dreamed up by the practically deranged] ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═════════════════════════════════════════════════════════──────────────────┘ --- #7 fediverse/1034 --- ═══════════════════════════════════════════════──────────────────────────────────── @user-192 be careful, recursion can cause stack overflows. better to run function pointers from a loop. That way you can operate as long as necessary. Just make sure you don't get in an infinite loop... ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘ --- #8 fediverse/3890 --- ══════════════════════════════════════════════════════════───────────────────────── Linux is great! It can do anything you want it to. Except that thing you want it to do. Why don't you go fix it? It's not hard, all you have to do is run these configure files or operate this doohickey and BAM suddenly you got apes writing machine gun regulation software [I don't think those two things are related] ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═══════════════════════════════════════════════════────────────────────────┘ --- #9 fediverse_boost/5625 --- ◀─╔═════════════════════════════[BOOST]══════════════════════════════────────────╗ ║ ┌────────────────────────────────────────────────────────────────────────────┐ ║ ║ │ Tihi :blobcatgiggle: │ ║ ║ │ │ ║ ║ │ How the tables have turned! :blobcatangel: │ ║ ║ └────────────────────────────────────────────────────────────────────────────┘ ║ ╠─────────┐ ┌───────────╣ ║ similar │ chronological │ different ║ ╚═════════╧════════════════════════════════════════════════════════────┴───────╝─▶ --- #10 fediverse/5590 --- ══════════════════════════════════════════════════════════════════════───────────── vibe coding is just writing comments in increasing detail until the generated code matches what you need. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═══════════════════════════════════════════════════════════════────────────┘ --- #11 fediverse/1448 --- ════════════════════════════════════════════════─────────────────────────────────── ┌──────────────────────┐ │ CW: cursed │ └──────────────────────┘ that one option flag in the config file that you don't know what it does because the documentation intentionally doesn't explain it very well (or explains that it solves a use-case that like, nobody would ever have, and certainly you don't have) that secretly sets a flag which sends your [redacted] ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═════════════════════════════════════════──────────────────────────────────┘ --- #12 fediverse/3266 --- ═══════════════════════════════════════════════════════──────────────────────────── how many people do you think in the world know that screenshots of a website are not admissible proof because they can be trivially doctored by editing the html? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘ --- #13 messages/412 --- ════════════════════════════════════════════════════─────────────────────────────── Coding superpower: Start thread While(true): Run(); Then, whenever you want it to run something else, change the function pointer that run() uses to call a function At the end of the run() function, set the function pointer in the while loop to the next one. That way you don't stack overflow from the recursion. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═════════════════════════════════════════════──────────────────────────────┘ --- #14 fediverse/718 --- ══════════════════════════════════════════════───────────────────────────────────── @user-547 That feeling when you get to the end of a paragraph and think "why do I have this extra parenthesis )? Oh yeah I opened it up waaaaay up here" and then you reread what you wrote and think perfect, no notes ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘ --- #15 messages/770 --- ══════════════════════════════════════════════════════════════════───────────────── There are some pieces of software where you think "oh cool, what did they update?" and then there are some like "oh god... What did they update?" ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═══════════════════════════════════════════════════════════────────────────┘ --- #16 messages/890 --- ════════════════════════════════════════════════════════════════════─────────────── If your code is too long to fit in 80 or 120 characters (preference) then you need to use more numbers (indexable with a small table-of-contents style comment description just above) or character symbols (referencably by meaning just as above) (by above she means earlier in the string of text you just read) ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═════════════════════════════════════════════════════════════──────────────┘ --- #17 fediverse/1246 --- ═══════════════════════════════════════════════──────────────────────────────────── @user-883 hehe if I don't understand how it works it's difficult for me to use things. My Linux friends get so exasperated with me because I'm like "cool script gimme like 2 days to figure it out" and they're like "bro just use these flags" and I'm like "no" ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘ --- #18 fediverse/617 --- ═════════════════════════════════════════════────────────────────────────────────── So much of computing is just... handling the quirks of hardware and presenting it to the user (programmer) in a way that is sane and makes sense, instead of the arcane and [nebulous/confabulous/incomprehensible] way that physical nature demands our absurdly potentialized computational endeavors be. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘ --- #19 messages/110 --- ═════════════════════════════════════════════────────────────────────────────────── The best way to program computers is to organize them according to their relations. Like, when x increases by 4 then y increases by 2 - basically, a math equation that you can continuously solve by calculating more and more comprehensively and deeply. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘ --- #20 fediverse/4640 --- ═════════════════════════════════════════════════════════════────────────────────── LLMs are useful for: categorizing text summarizing text transforming text LLMs are not useful for: generating text being intelligent replacing workers ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧══════════════════════════════════════════════════════─────────────────────┘ |