News for hackers. Stuff that matters.
Re:Go + Services = One Goliath Project by jnwatson on Saturday December 21, 2019 @08:50PM (#21854606)
Large anonymous functions are very much a thing in JavaScript.
Re:Go + Services = One Goliath Project by whalesalad on Saturday December 21, 2019 @09:08PM (#21854672)
This trend will gradually fade into the history books. Just because it’s a thing doesn’t mean it’s a good one.
Re:Go + Services = One Goliath Project by doteka on Sunday December 22, 2019 @05:14AM (#21856294)
Large anonymous functions are a thing in every modern language I can think of except python. It’s the only sensible solution in the case of functional method chaining, which is much more readable than nested comprehensions. Python just got this one wrong.
Re:Go + Services = One Goliath Project by joshuamorton on Monday December 23, 2019 @05:48PM (#21868184)
Large anonymous functions are rarely used in rust, go, python, java (streams instead), or cpp.

Streams and repeated application of short anonymous functions are a much better solution to the method chaining issue.

If js supported better streaming tools, they'd be less common in js too.