While I agree with some of the premises here, I personally disagree that comments are even mostly a problem (a code smell). IMO they’re just as often bad as code is. A developer in a rush, or simply not taking enough care in their work, can produce both bad code and bad comments.
Perhaps someone who is trying to take care can do more harm in the comments area, when they should be perhaps looking at writing self documenting code, but in my experience they usually go hand in hand.
I use quite a lot of comments in my code and I wouldn’t regard it as code smell or even messy. I often use comments to logically separate more complex sections of functionality.. or discussing how it works and why it’s necessary to exist in the first place. Code can’t always tell you why it’s there..
I also use docblocks in some libraries, even though types are available, as the published package benefits from having an API document published alongside it. The comments there facilitate its construction.
I know this article wasn’t bashing every use of comments in code but I feel like it didn’t account for all the positive uses of them either. Teaching developers that a language feature is just mostly bad is irresponsible - we should be encouraging good comment use alongside clear code.
I have deleted my post that quoted the WSJ report "Iran helped plan Hamas’s attack on Israel and gave the green light for the assault at a meeting last Monday"
It had been repeated by so many major outlets, I thought it would be a safe bet that it was legit.
I wish I could go back in time to the day when I first heard Such Great Heights by The Postal Service just to feel those emotions all over again. The entire album still holds up.
Evangelical Christian leader Russell Moore revealed this week that many evangelical pastors have become alarmed that their Trump-loving congregants have become so militant that they are even rejecting the teachings of Jesus Christ.In an interview with NPR, Moore said that multiple pastors had told h...
employment is at will (if they can find a better paying job, they should.)(for that matter, so is my patronage- which is why I don’t use door dash or whatever. Totally unethical)
many tips aren’t going to the driver/waitstaff/other staff at all.
(Door dash for example, if you tip less than or the same as the delivery fee they pay the driver, they pay the same fee regardless and keep the extra tip. If you pay more than, they take the delivery fee. Many of the point of sales kiosks that are asking for a tip never go to the people bejng the counter- especially at place last that you wouldn’t normally tip at. Or some of it goes there, but then management gets a cut, square gets also gets their cut, and visa etc also get their cut)
I think you're missing the points about scale and marginal utility. If you have more food than 3 generations of your family will ever eat, and continue to take more while others are starving, you can make a moral argument that maybe you shouldn't have so much food. Much less continue to try and get more. It becomes more egregious when you, say, take food from your employees who don't always have enough.
Really need some kind of mobile app that isn't the native web app one for kbin. Experience is just not great and is mostly keeping me off when I'm mobile
Code comments are (mostly) a violation of DRY (danielrotter.at)
Comments in code are quite often a code smell. Let’s see what is suboptimal about comments and talk about some strategies to avoid them.
Pastor alarmed after Trump-loving congregants deride Jesus' teachings as 'weak' (www.rawstory.com)
Evangelical Christian leader Russell Moore revealed this week that many evangelical pastors have become alarmed that their Trump-loving congregants have become so militant that they are even rejecting the teachings of Jesus Christ.In an interview with NPR, Moore said that multiple pastors had told h...
‘This is a death sentence for me’: Florida Republican women say they will switch parties after DeSantis approves alimony law (www.orlandoweekly.com)
'My fears are that they can take you back to court, and I don’t have the money for an attorney.'
TikTok video showing DoorDash driver cursing at customer over 25% tip sparks online debate over tipping culture in the U.S. (www.nbcnews.com)
What's an acceptable tip for a driver who delivers a $20 pizza?...
Can a rich person be a good person? (kbin.social)
I don't mean doctor-making-150k-a-year rich, I mean properly rich with millions to billions of dollars....
Organized kbin / Lemmy Apps & Resources (github.com)
In table format with FOSS status, platform, and OS for your (desktop) viewing pleasure:...