Software Engineering Matters

giving a little more thought...

Code that appeals to us humans

Posted by Nicholas Chen Wed, 01 Nov 2006 06:43:00 GMT

Human Readable Code:

"In Refactoring to Patterns (pg. 13), Josh mentions that while looking over code before a workshop, he saw code that read: november(20, 2005) And called a method that looked like: public void Date november(int day, int year)"

I completely agree that code should be human readable. In fact, this was one of the reasons why I like languages like Ruby so much. Martin Fowler has written a good article on this and since I don't think I will be able to produce something of similar quality at this moment, I refer you to his post entitled "HumaneInterface".

no comments | atom

Trackbacks

Use the following link to trackback from your own site:
http://softwareengineering.vazexqi.com/trackbacks?article_id=code-that-appeals-to-us-humans&day=31&month=10&year=2006

Comments

Leave a response

Leave a comment