Style rant

Submitted by raevnos on Tue, 2011-10-11 20:27

I see a lot of people using constructs like: squish(iter(some list, if(some condition, %i0))). This annoys me to no end. It's a poor reinvention of filter(obj/attr testing some condition, some list). Takes more function calls, needs that ugly squish() to get rid of extra spaces left by the iter(), encourages huge, hard-to-follow wall of code attributes (And, heck, there's #lambda and #apply for filter() if you really don't like splitting code up into multiple attributes (Or if it's a short test)). Yet people are amazingly resistant to changing it. I don't get it.

Grump.