News for hackers. Stuff that matters.
Re:The Miseducation of Maria Montessori by pmarreck on Thursday March 03, 2022 @11:11PM (#30550625)
> If Montessori kids really were obviously more successful public education would change.

I know that this is false because functional languages have existed for decades and still occupy a vast underproportion of IT projects despite being superior in the vast majority of use-cases. Also, argumentum ad populum.

Re:The Miseducation of Maria Montessori by noitpmeder on Thursday March 03, 2022 @11:17PM (#30550649)
Similar to Montessori schools being "obviously more successful", I think it's still very much up for debate whether functional languages are "superior in the vast majority of use-cases".
Re:The Miseducation of Maria Montessori by EdwardDiego on Friday March 04, 2022 @03:23AM (#30552073)
I would need a few citations for "superior in the vast majority of use-cases".

The fact that recursion can compile down to iteration when written in a tail-call manner, while other languages are just providing iteration as a core part of the system, kinda implies that FP isn't "superior in the vast majority of use-cases".

Although, as the ol Verity Stob quote goes "Lisp is still #1 for key algorithmic techniques such as recursion and condescension".

And you're really nailing the latter.

Re:The Miseducation of Maria Montessori by pmarreck on Friday March 04, 2022 @02:34PM (#30559327)
> The fact that recursion can compile down to iteration when written in a tail-call manner, while other languages are just providing iteration as a core part of the system, kinda implies that FP isn't "superior in the vast majority of use-cases".

My first impression when I learned about “infinite recursion via TCO” is that it was so much more beautiful semantically than your typical loop

> recursion and condescension

I’ve worked in probably 15+ languages of all types throughout my life since Microsoft BASIC in 1984 when I was 12. If this doesn’t give me the right to assert things like this, then what does?

Perhaps the real problem is that whenever someone mentions “functional languages”, the walls go up, the ears go closed and the baseless presumption of hubris skyrockets.

The fact is that you can use a functional style (and gain the advantages) in any language https://towardsdatascience.com/why-developers-are-falling-in... , you just lose the guarantees as soon as you touch another library

Re:The Miseducation of Maria Montessori by EdwardDiego on Saturday March 05, 2022 @08:30PM (#30574044)
TCO might be more beautiful semantically, but unless you're using a language like Scala where you can say "this recursive function is intended for TCO, and thus throw an error if it's not eligible", a programmer error can blow out your stack.

> I’ve worked in probably 15+ languages of all types throughout my life since Microsoft BASIC in 1984 when I was 12. If this doesn’t give me the right to assert things like this, then what does?

A realisation that opinions are subjective :) I've probably used a similar number of languages, although I started with QBasic, and while I've really enjoyed FP in Scheme, Erlang, and F#, I don't consider it vastly superior, I just consider it a different paradigm that is really good in some problem domains, and an awkward fit in others.

I don't consider any particular paradigm to be superior, each has strengths and weaknesses.

Re:The Miseducation of Maria Montessori by Daishiman on Friday March 04, 2022 @12:04AM (#30550905)
Having used functional languages in production systems, this is... just not true at all.
Re:The Miseducation of Maria Montessori by pmarreck on Friday March 04, 2022 @02:31PM (#30559297)
Which ones?