Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Root456572d// This is comment
//Abandon hope all ye who enter here
// And now for the tricky bit
asgs40962dI don't see how this is a joke. It is a serious fucking problem
Wrong or outdated comments are even worse.
halfflat7082dI have personally witnessed the equivalent of:
loopCounter++; // increment loop counter
Sometimes I fear I hold more rage than can be contained by this fragile mortal shell.
suprano35802d/* but at least there were still some comments. 😂😜
JustThat2112d# If this works, imma buy a lottery ticket
/* This IS NOT SQL Injection safe. Oh, well */
(I've used this one)
# This works. Not sure why. Don't touch it. Please.
JustThat2112dAll kidding aside: I find that commenting code well is a skill just as much as coding itself is. Sadly, it is a skill many developers find as distasteful as documentation so it quickly falls by the wayside.
As I get more experienced, I find myself commenting my code for me _and_ for anyone who may look at it after me just so they don't have to bother me with questions or curse my name for not commenting the code.
And I agree that obvious stuff probably shouldn't be commented but what is obvious to one dev may not be to another, no?
Your Job Suck?
Take a quick quiz from Triplebyte to skip the job search hassles and jump to final interviews at hot tech firms
Get a Better Job