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
-
Readable code is more maintainable in the long run. This benefits you and your future colleagues as well.
-
rui7257607yEven still comments are important but understanding each line is jewelry for the one who’s unfamiliar and debugging your error code..therefore simplicity beats being an ass and trying to complicate the code by shortening it..
-
@Clueless Comments are less valuable than good readable code. Comments can lead you astray as accompanied code can be changed without changing the comments as well.
Ideally comments should only add sensible information to your code. They shouldn't be needed to comprehend your code.
They are no substitution for readable code. -
Well.. This was in my vb subject, perhaps there are built in functions that can be used to shorten my code rather than use lengthy code which could get buggy just like my friend's code.
Also, i do lengthy codes but not that will give me a headache -
A mentor once told me "you're not here to show off your complex coding skills, but to make something the UX team can work with"
-
Thanks for the wonderious wisdom that you gave to me... I'll keep this in my head and use it as a reference... I really appreciate it.
-
hexc11197yAs a hobby I like to take simple data structures like tree/linked list/etc and code them in languages im learning in as clean a manner as possible usually refactoring them a few times as I learn the language, the code at the end usually is so clean. Its great because afterwards you can use them as a design reference when coding other stuff else.
-
Froot75397yUmmmm... That's what you should be writing.
Code is not meant for computers to read but for humans, it also executing is a side effect. Someone said that, can't remember who. Anyway, readability and maintainability come way before anything else, even performance, is most cases. Because, your code can be fast as fuck but if the next dev can't understand it hell fuck your magic right up. -
I do this so that my classmates wont copy my code.. I use different libraries, but in the end... I still need to have a formulated, readable code for programmers. I learned new things in life as a programmer, thanks rants
I hate it when my teacher underestimates my skills in programming, he/she tells me to rewrite again even though its just the same logic... I got shorter lines of code, he/she wants longer and readable code 😠ðŸ˜
rant