Showing posts with label dev. Show all posts
Showing posts with label dev. Show all posts

Thursday, November 1, 2012

Exploiting Python Features Vs. Employing Python Hacks


Every programming language has its quirks and dark alleys, which may be useful from time to time in order to achieve certain results. But when does using one of these features turns it into a hack?

A few days ago, I found myself having to solve a problem, and for some unexplained reason I went about it in a more 'interesting' way than one usually would (which doesn't mean more efficient). The way I solved this problem was such an amusement for me, that I felt the urge to go to the next room down the corridor, and tell Alon and Shahar all about it.

All hell broke loose.
At some point, Shahar became so horrified, he had to pull the "Zen of Python" manifesto on me (He was right, by the way).