have less overly clever code in the core
overused of metaprogramming and overly clever code in general in Rails is annoying: it is very hard to read
6 comments
-
Mario T. Lanza
commented
IMO, overly clever code is a design flaw. Code should be easy to read almost to the end of Krug's "Don't Make Me Think".
-
uzytkownik
commented
@lucapette: It will give more stability I guess (not necessary performance) after application of Linus Law.
-
Nathan Youngman
commented
It's important to understand what goes on below the abstraction, especially when things go wrong.
-
bitsweat
commented
This is stated as an annoyance. How about "keep the core code clear, elegant, efficient"
-
josevalim
commented
A great example of how code can be less clever is Yehuda Katz current implementation of memoize (in SafelyMemoize):
Things are cleaner and much less is happening behind the scenes.
-
lucapette
commented
I agree with you, some code in Rails is difficult to read but i'm not sure we can consider it "overly clever". Surely we all like clear and readable code but maybe it can be more important considering other factors. So, imho, it could be nice to see "simplified" code but only if this kind of action can give us something else too as more stability or more good performances.