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

help-circle
  • ChickenLadyLovesLife@lemmy.worldtoProgrammer Humor@lemmy.mlComenting code
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    2
    ·
    edit-2
    10 hours 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.





  • I used to work for a software company that was a beneficiary of a $12 million a year political pork grant from the state of Louisiana that was officially intended for improving industrial and manufacturing capability in Louisiana. Somehow, my company was managing to spend this money in Mississippi, and giving it to a national defense contractor that wasn’t exactly in desperate need of (more) government handouts. That’s how fucking corrupt Mississippi is: they even suck in the corruption from their corrupt neighbors, while making sure that not a penny of that shit goes towards improving a state that I would describe as third-world if it wouldn’t be so insulting to the third world.













  • Housing as a job benefit is terrible because it ties you even more closely to your employer - same problem as with employer-provided health insurance. Even a housing allowance is shit because it turns money that could be spent on anything into money that can only be spent on one particular thing - same problem as gift cards.

    As the owner of a skoolie (used school bus converted into a motorhome) one benefit I’d like to see would be employer-provided parking spots for motorhomes. You wouldn’t lose your house if you quit your job (just your parking spot for it) and you would actually be able to live legally in your motorhome, something that is possible almost nowhere in the US and certainly not in any urban area that people actually want to live in. Some airlines actually allow their flight attendants to park and live in motorhomes on lots at major airports (NYC is one place for this, or at least it was recently), and some rural places provide motorhome parking for traveling nurses who sign contracts to work there for 9 months or however long.