Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is clean code

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems like the definition of "clean code" changes over time. Code written 10 years ago is likely to be longer and have more in a method. At the time it would be considered "clean." In the same way, I wince when I see what I wrote 5 years ago. I'm curious what other examples people have of this scenario.
 
arulk pillai
Author
Ranch Hand
Posts: 3387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats to the authors. It is currently ranked #155 on Amazon #1 in computer books. A great effort and a topic that is close to many developers' heart. Well done.
[ September 24, 2008: Message edited by: arulk pillai ]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mhh, it might actually be as subjective as the phrase "clean desk"...
 
Alaa Nassef
Ranch Hand
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I think that the basis of clean code is that your code should be readable & maintainable by others with ease. Five years ago we didn't have a lot of what we had today, and hence a lot of code was written that could now be summarized to just one tenth of its size using pre-written reusable libraries. Also a lot of methodologies did not exist (or at least were not widely known) back then.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic