• 0 Posts
  • 293 Comments
Joined 1 year ago
cake
Cake day: June 16th, 2023

help-circle




  • At my last job I managed a team of developers in India (while residing in the US). It was pretty much necessary for me to be available outside of my company’s normal work hours. I always compensated myself for middle-of-the-night activity with time off during the day and nobody ever mentioned having a problem with it. I was eventually rewarded by being laid off with everybody else when my company was acquired by a west coast tech giant.













  • During WWII in Britain, about 10% of the men drafted were sent down into the coal mines instead of being sent off to war. In addition to enduring the horrific conditions of the mines, they had to endure abuse for not fighting. For bonus points, the old-time miners would often haze these draftees by letting their elevator cages free-fall for a bit during their first trips down.


  • ChickenLadyLovesLife@lemmy.worldtoProgrammer Humor@lemmy.mlComenting code
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    2
    ·
    edit-2
    1 month ago

    if the code changes and the comment isn’t updated accordingly, it can be ambiguous.

    People always cite this as a reason comments are bad. In 30+ years as a developer I have seen (and participated in) a lot of failed software projects, but not once has a mismatch between comments and code been the actual cause of the failure. Moreover, the same logic could be applied to the names of methods and variables (“if the code changes and the method and variable names aren’t updated accordingly, it can be ambiguous”) but nobody ever suggests getting rid of that. At the end of the day, comments are useful for imparting information about the code to future developers (or yourself) that is too complicated to be adequately communicated by a method name.