3 ms·
If I see a piece of code and I think "this code sucks", go back to rewrite it and then realize mid-way that there was a reason they did it that way, the code do
by StavrosK 16y ago
If I see a piece of code and I think "this code sucks", go back to rewrite it and then realize mid-way that there was a reason they did it that way, the code does suck.
Good programmers leave comments saying "this is ugly because X".
- ergo98 16y agoGood programmers don't go rewriting code without understanding what and why it is doing what it is doing. Bad programmers will always have a reason to call everyone else a bad programmer, because that's the easiest excuse for sucking.
- sprout 16y agoI was working on updating a backup script, and it had the same function written ten times, with no arguments, entirely for the purpose of calling it. No closures, just pointless repetition. Also, about half the lines of the script was other very similar blocks of code that had been commented out.
- chegra 16y agoYou see, when you say something like this, it would never occur to me that people can do this. When I hear about bad code, I'm thinking about code that is not scalable or unmaintainable. Or, it doesn't follow a proper design pattern or maybe trying to be too clever coding. Or, maybe have resource leaking. Somethings just would never cross my mind. I need to get out more.
- billswift 16y agoBrowse http://thedailywtf.com/ http://thedailywtf.com/ occasionally. While most of their entries aren't particularly interesting, there are some that will really educate you about human stupidity. Another interesting site, but that doesn't update much is Computer Stupidities, http://www.rinkworks.com/stupid/ http://www.rinkworks.com/stupid/ , though they focus more on user denseness than developer screwups.
- StavrosK 16y agoThat still doesn't mean that the code is good, though.
- deleted 16y ago[deleted]