News for hackers. Stuff that matters.
Re:Software Design Patterns Are Not Goals, They Are Tools by ajuc on Thursday May 19, 2016 @10:03AM (#11730248)
I still think "oh, a generator function" when I program in clojure. I'm just not excited every time I got to use it. That's all the difference IMHO.

Also - there are such "nonexciting patterns" in OOP languages as well, and they are much less often abused. For example "a switch inside a while" pattern. Which I think I will need to name "StateMachinePattern" to make it cool and stop people refactoring it into strategies and stuff.

There is value in one-screen definition of the whole machine, instead of separating it into 6 files.

Re:Software Design Patterns Are Not Goals, They Are Tools by maffydub on Thursday May 19, 2016 @10:51AM (#11730656)
Agreed.

I never really saw design patterns as a reference manual for how to solve problems (as I think some people do/did). Instead, I saw it as a shared vocabulary.

For example, if I say that X is a factory for Y or an iterator over Z, you know exactly what I mean.