Lumbergh says: "If you voted, that would be greeaaaattt!" Login and vote now.
By wtfdeveloper
via makinggoodsoftware.com
Published: Jun 05 2009 / 19:51
1.- DRY: Don’t repeat yourself, 2.- Write short methods, 3.- Use good names for your classes, methods and variables, 4.- Assign the right responsibility to each class, 5.- Keep your code organized...



Comments
killerweb replied ago:
Comments are evil - and so are developers that think this. Believing that code should be enough is ridiculous. It shows laziness on the developers part, and someone that doesn't think before coding. Comments aren't just for the current author of the code, it's for the author 2 years later or some sucker that now has to work with your code. If you can't spend 2 minutes explaining why your code exists, maybe it shouldn't exist at all.
wtfdeveloper replied ago:
Please read this other post for details in what I mean when I say that "comments are evil" http://makinggoodsoftware.com/2009/06/06/comments-are-evil/
Gene Gotimer replied ago:
Code should be enough. If you have to spend any time explaining your code, maybe you should have written it better in the first place, rather than being lazy and just writing comments.
killerweb replied ago:
Never seen bad code followed by good comments. But seen a hell of a lot of bad code with no comments. It silly to think someone who takes the time to comment would also write bad code. But keep fooling yourself, most lazy coders do.
Voters For This Link (14)
Voters Against This Link (3)