Luke Lee

Software Engineer

Web + Desktop + Science

Fork me on Github

Programming Idioms

The always insightful Zed Shaw has a great article on programming idioms.

I might even go so far as to say programming languages don't have idioms at all. By definition an idiom is something you remove from good clean writing. Since these coding forms are more like social mores and expected of good clean code, they just can't be idioms.

The article is a great read. It specifically discusses Ruby, but the same issues exist in the Python community. Python features like list comprehensions and xrange are good examples of idioms or social mores as Zed claims. I know I have a bad habit of seeing code not using these (especially xrange) as a sign of a Python newcomer.

Published: 09-19-2012 15:55:53