News for hackers. Stuff that matters.
Re:2 is a code smell by Sharlin on Wednesday October 12, 2011 @01:12PM (#3103603)
This is pretty much an instance of the good old "zero, one, infinity" rule.

http://www.catb.org/jargon/html/Z/Zero-One-Infinity-Rule.htm...

Re:2 is a code smell by brlewis on Wednesday October 12, 2011 @01:39PM (#3103696)
This article restricts itself to a context where following "zero, one, infinity" results in simpler, more concise code. This is a good restriction. In general, following "zero, one, infinity" will often put you at odds with YAGNI.
Re:2 is a code smell by puredanger on Wednesday October 12, 2011 @03:09PM (#3104084)
My experience with Clojure has been that sticking to N is so harmonious with the Clojure way that it is simpler and yields more flexible code.

If the code is simpler then I don't see how YAGNI comes into play. Why would you do something that is both more complicated and less amenable to future needs?

Re:2 is a code smell by brlewis on Thursday October 13, 2011 @08:11AM (#3106922)
By "in general" I meant outside the context the post was restricted to, i.e. Clojure. What you're saying is the same as what I said in the first part of my comment, up to "This is a good restriction."