home.social

#programminghumour — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #programminghumour, aggregated by home.social.

  1. Still, having left the 🚀 and Information Age behind us, rushing head first into the (r)Age of Machines, we still have healthy debates on tabs vs spaces

  2. CW: Potential spoilers ahead for Advent of Code

    Roses are red
    Violets are blue
    There's always someone clever enough
    To solve it all with jq:

    github.com/zogwarg/advent-of-c

    #jq #AdventOfCode #AoC2024 #ProgrammingHumour #CodingLife

  3. When something is refusing to make/ build in #ruby, I think calling the log "mkmf" is not the wisest thing since the brain auto-completes a Samuel L Jackson expletive.

    #programming #programminghumour

  4. I'm giving up.
    I have been defeated by the spaghetti.
    I will... add comments.
    How terrible.

  5. Removing the comments from AI generated code to make it more like you wrote it. Noone comments as much as that.

    #ProgrammingHumour

  6. "Yeah, uh, our warehouse can house between -2147483648 and 2147483647 of those things. Don't ask how."

    #Programming #ProgrammingHumor #ProgrammingHumour

  7. CW: How do you generate a random number in a certain range? Me:

    #include <stdio.h>
    #include <time.h>
    #include <stdlib.h>

    int main(int argc, char ** argv) {
    int l = atoi(argv[1]);
    srand(time(0));
    int n;
    do {
    n = rand();
    } while (n > l);
    printf("%d\n", n);
    }

    #meme #ProgrammingHumour