Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
*thank yourself in a week or two..
I just love it when people expect to have all the code you've written to have in your ram.. like how the hell should I know from top of my head the details about what I wrote 6+ years ago o.O -
@sladuled At times, I've literally written code and looked back at it just a few days later...
Without the comments, I'd be like: "wait, wtf was I doing here?" -
@FinlayDaG33k Yup.. I extend it by WTF were you thinking when you wrote this shit?! Idiot.. // talking to/about my code from 2 weeks ago.. :/
-
@sladuled That part only kicks in when I actually have to change it :^)
I use comments to find what I need and then when I need to chance a part I often go like: "fuck me up the arse, why did I write it like this?" -
In two minds about this. As soon as you write a comment you've suddenly doubled the amount of maintenance required. Also, I guarantee if someone else changes your code, they won't change your comments.
-
@jonnyknowsbest That's true but then it's up to your superior to reject the MR.
I'm always quite strict on this:
- Update code.
- Update comments along with it.
Fail to do so and your MR is getting rejected until you fix it.
Related Rants
Comment your code, you'll thank me for that next week.
rant
wk235