News for hackers. Stuff that matters.
Re:Clojure Design Patterns by mirekrusin on Friday November 24, 2017 @05:45PM (#15773426)
It should be clarified that the whole thing is about functional patterns in Clojure that are expressing same functionality as well known OO patterns in Java.

Adding "it's just..." in front of functional patterns doesn't make them non-patterns.

Patterns are named ideas on how to approach/solve similar problems.

They are not tied to OO programming, Java, they are not good or bad per-se; it's just a cookbook with recipes that have names.

Otherwise nice format, I like it.

Re:Clojure Design Patterns by catnaroek on Friday November 24, 2017 @08:46PM (#15773996)
Presumably the point is that most functional programmers wouldn't have bothered giving dedicated names to, say, “strategies” or “factories”, more or less the same way nobody would bother calling “(a + b) / 2” the “average pattern”.
Re:Clojure Design Patterns by geezerjay on Saturday November 25, 2017 @01:19AM (#15774694)
> nobody would bother calling “(a + b) / 2” the “average pattern”.

don't you mean.... the arithmetic mean?

https://en.wikipedia.org/wiki/Arithmetic_mean

Oh my god, and people bother themselves calling the addition o sequences of numbers as summation.

https://en.wikipedia.org/wiki/Summation

Where does this madness end? These morons even bothered themselves forming whole fields in mathematics by studying adding numbers

https://en.wikipedia.org/wiki/Series_(mathematics)

Why is humanity so wrong about such a simple concept? Why is everyone bothered to give dedicated names to concepts you fail to understand?

Re:Clojure Design Patterns by catnaroek on Saturday November 25, 2017 @01:27AM (#15774717)
The mean is an precisely defined operation in mathematics, not a vaguely defined “pattern” in software engineering.

I insist: You only need “patterns” when you can't articulate your ideas precisely in a formal language, such as a programming language or mathematics.

Re:Clojure Design Patterns by guelo on Saturday November 25, 2017 @12:37AM (#15774599)
Maybe they would call it a monoid or something much clearer like that.
Re:Clojure Design Patterns by catnaroek on Saturday November 25, 2017 @12:43AM (#15774610)
Fortunately you have about an hour to edit your comment into something that, at least, is not patently stupid.