• 0 Posts
  • 156 Comments
Joined 3 years ago
cake
Cake day: June 16th, 2023

help-circle

  • My favorite thing about the “all comments are bad” crowd is that their first example is almost always something like this:

    // Add 1 to x
    x = x + 1
    

    Like, nobody that thinks comments are good and important would ever add a useless comment like that. The point of commenting is to add documentation (usually the only form of documentation that a future developer is ever going to read) only to code that would otherwise be inscrutable.


  • That long-ass horizontal scroll bar reminds me of how I used to put unfindable easter eggs into my Visual Basic apps. I would have amusing little messages pop up from time to time in message boxes. To prevent anyone from just searching for the exact text in the message box, I would reduce it to a series of concatenated Chr() statements and then I would put like 200 characters of whitespace in front of the message box call. The only way anybody would spot it would be if they noticed the horizontal scroll bar this produced and nobody ever did.

    At least that’s my theory. It’s also possible that nobody ever used the software that I produced.


  • Ironically, one of the universal things I’ve noticed in programmers (myself included) is that newbie coders always go through a phase of thinking “why am I writing SQL? I’ll write a set of classes to write the SQL for me!” resulting in a massively overcomplicated mess that is a hundred times harder to use (and maintain) than a simple SQL statement would be. The most hilarious example of this I ever saw was when I took over a young colleague’s code base and found two classes named “OR.cs” and “AND.cs”. All they did was take a String as a parameter, append " OR " or " AND " to it, and return it as the output. Very forward-thinking, in case the meanings of “OR” and “AND” were ever to change in future versions of SQL.



  • It’s funny, the exact same logic applies to method and variable names. There’s no compiler that ensures that a method’s name accurately describes what the method does or ensures that a variable’s name accurately describes what the variable represents. Yet nobody ever says “you shouldn’t use descriptive method and variable names because they might be misleading”. And this is hardly academic: I can’t count the number of times I’ve run into methods that no longer do what the method name implies they do.

    And yet method and variable names are exactly what people mean when they talk about “self-documenting” code.






  • I remember Macintosh computers from circa 1990. Even then Apple loved to just remove buttons because they hate buttons. Because it was so perfectly intuitive to drag a disc icon over to the fucking trash can icon in order to eject the floppy disc, they didn’t have a physical eject button for the floppy drive. Helpfully, they instead put the power button right where a floppy drive eject button should have been. So I was constantly turning the computer off whenever I wanted to eject a disc.







  • I used to work for (more accurately at since I was a contractor) a large cable company whose name rhymes with “bombast”. Most of the people in charge of the projects I was working on (usually vice-presidents, a thoroughly overblown title there since there were hundreds of vice-presidents) were hopelessly technically incompetent and/or bordering on clinically insane. For a refreshing change of pace, I occasionally had bosses who were just soulless and amoral. None of them lasted more than a few months before they were suddenly and without warning disappeared. One day you would come in to work and their office was emptied out and they were never mentioned ever again. I’d like to think they were just fired and escorted out, but I would not be surprised to find they were executed and rendered down for the fats they contained.


  • Bombast retired this app three years ago, so they at least realized they weren’t making any money off of it. It was always understood to be a loss leader of sorts, but I don’t think they were ever really fully aware that even its utility as a loss leader was being greatly exaggerated.

    Bombast is strangely competent in a weird way. During my time there, I frequently worked under vice presidents (they have hundreds of these in their corporate structure) who ranged from grossly incompetent to clinically insane, but they were always disappeared within weeks of my being assigned to them. I assume they were fired and escorted out of the building immediately, but I wouldn’t entirely rule out murder.

    Also strangely incompetent in weird ways. The founding Roberts died in 2015 and many people wore his signature bowtie to the corporate memorial service to honor him. The scuttlebutt was that everybody who wore a bowtie was fired shortly afterwards. I know for sure that this was the case with my own boss. I could never hope to explain why this was done.