• thingsiplay@beehaw.org
    link
    fedilink
    arrow-up
    7
    ·
    18 hours ago

    This is one of the reasons why I don’t like short variable names, especially single letters (unless for very narrow use and obvious like i).

    • groucho@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      5
      ·
      15 hours ago

      There was a senior dev at my first job that we called Lord Voldemort and he was the king of ungreppable variable names. Short, full of common characters, and none of them actually described what they were doing. I swear he only used characters that appeared in C++ keywords, so looking for fo would invariably tag every for statement in the file.

      He also had hooks set up to notify when anyone was in his area of the code and you’d always get a two-hour phonecall where he’d slowly wear you down and browbeat you into backing out your changes. Every time I pulled a ticket in his codebase I’d internally shudder. He was friends and/or had dirt on the CTO so he just remained in that role and made everyone’s life hell.