• AllNewTypeFace@leminal.space
    link
    fedilink
    arrow-up
    1
    ·
    21 days ago

    Even worse than there being no comments: the code is extensively commented, but its function has drifted from what the comments describe to the point where they are actively misleading.

  • OmgItBurns@discuss.online
    link
    fedilink
    English
    arrow-up
    1
    ·
    13 days ago

    I once worked with a guy who would actively remove everyone else’s comments any time he touched someone else’s code. Only comments he made during code reviews? “Does this comment need to be here?”. The code was a barren, commentless place.

  • cloudy1999@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    19 days ago
    1. N-deep loops mixed with gotos, throws, multiple returns, and mixed memory management contracts.

    #include “globals.h”

    // please help

  • DreamButt@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    21 days ago

    Ngl that’s like baby levels of nasty code. The real nasty shit is the stuff with pointless abstractions and call chains that make you question your sanity. Stuff that looks like it’s only purpose was to burn the clock and show off a niche language feature. Or worse than that even is when the project you inherit has decade old dependencies that have all been forked and patched by the old team

    If all I had to worry about was organization and naming I’d be over the moon