News for hackers. Stuff that matters.
Re:Why clean code is more important than efficient code by JangoSteve on Sunday June 19, 2011 @05:10PM (#2671906)
I think this title is a bit link baity. Yes, clean code is important. So is efficient code. To say one is more important than the other is needlessly oversimplifying things. How about this? They're both important; and sometimes one takes precedence over the other depending on the situation and context; but most of the time, you should just strive for both.

Clean code requires less resources in terms of maintenance, bug fixes, and extensibility, because it's easier to understand and modify. Efficient code requires less resources in terms of server maintenance and bug fixes, because it actually requires less maintenance and is less likely to catch you off guard by taking your server down.

Re:Why clean code is more important than efficient code by Aga on Sunday June 19, 2011 @06:01PM (#2672047)
I think the author makes a good point that clean code makes it easier to refactor for efficiency when proven where the need is real. Going the other route (making efficient code readable) is a lot harder and tends to get often "forgotten".
Re:Why clean code is more important than efficient code by delinka on Sunday June 19, 2011 @06:07PM (#2672062)
Premature optimization and all that.