• NigelFrobisher@aussie.zone
    link
    fedilink
    arrow-up
    0
    ·
    18 hours ago

    Developers who think they’re following the patterns, but they never even read the books and they’re still just doing whatever but naming it like it’s the pattern.

  • ZILtoid1991@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    20 hours ago

    The self documenting code: short acronyms, that will make you go “AHA!” after hours of rubber ducking.

      • theneverfox@pawb.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 day ago

        Nope, sorry. I just break my code into neatly grouped chunks, and I’m very consistent

        I regularly go “I need something to do X”, and when I go to write it it’s already there. It does exactly what I need it to do, otherwise why would I name it X and not X_for_situation_y? I would never

        My utility functions are reusable, my classes handle their own logic internally, and so my business logic is clean and readable. My code flows straight and clear, along a single path whenever possible

        So yeah… When I start working with people, there’s the initial confusion then this moment where they go “Oh! That’s really easy to understand”

          • theneverfox@pawb.social
            link
            fedilink
            English
            arrow-up
            0
            ·
            20 hours ago

            But honestly, it’s probably because I have ideasthesia. I feel ideas tactically

            Bad code feels slimy, problem areas feel like sharp angles, good code feels clean and smooth, like a smooth river stone with clean even grooves that gracefully curve

            Best advice I can give is to strive to write elegant code. I don’t strictly follow style guides or do docstrings… These are superficial. I try to match the style of the project, but my code is consistent even in projects that are not

            Elegant code is pretty, regardless of formatting. You’ll know it when you see it, junior devs will follow the patterns without instruction. It does not require explanation, it does exactly what you think it does, and it makes complex problems simple

          • theneverfox@pawb.social
            link
            fedilink
            English
            arrow-up
            0
            ·
            21 hours ago

            Yes, but only ship of thesius style

            I’ve seen how people code, I’m writing my own stack on the way up

  • Someonelol@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    I’m living this right now. The lead programmers are long gone for a setup that uses Python, C++, and Linux. The only other guy who knows it is pulled to three other projects and I only have a C++ class taken over 15 years ago under my belt. I’m somehow expected to decipher this shit and explain the function of a few dozen variables and it’s going as well as one might expect.