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
-
mrstebo9309yIt SHOULD be obvious what it is doing 🙄. It could be worse. You could be looking at code where the comment is 10x longer than the code is 😰
-
elraE4319yI always thought you should comment everything but then I read an article that said it's way better to write readable code that's clear exactly what you're doing. and only comment things if it's not clear what or why you're doing something. makes sense, otherwise important comments get lost if you put them everywhere
-
mrstebo9309yThe main problem with comments is that they often LIE! People tend to update the code, but then forget to update the comments 😶
-
Not a ton of people doing dev work in the K-12 education sector (not tech firms but districts/state agencies/schools), so I end up treating comments as much about teaching others how to write code as I do a reminder for myself several months in he future what things were doing. Get yelled at by my friends in the tech sector for over commenting, but it depends on the context.
When you open a huge project for the first time to fix a bug and see no comments.
😐🔫
undefined