Comment

Comment by jorams

> This is exactly the kind of problem that functional programming was supposed to help us avoid!

No, no it isn't. Just like you wouldn't expect 2 * 3 + 8 to suddenly return 22 when you intend it to, you shouldn't expect the order in which you apply functions to not matter.

When you pass around a changing state object to every step of your program, you are effectively doing normal imperative programming with global-ish state.

parent jorams 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton