The reason to prefer reduce over for or while loops is because procedural loops mutate state defined in higher scopes in the program, making reasoning harder and introducing all kinds of opportunities for tricky bugs.
I like reduce, and I’ve never gotten pushback for using it. I’d be willing to use other functional method chains. But I would never listen to anyone who suggested using a procedural loop instead.
I’m 62. Same. The huge productivity jump is exciting. But the real gold is removing all the mechanical pain of typing, navigating files, grinding through library docs and many other grunt level tasks. Now I can stay in higher cerebral plane.
Some might say that optimization (how quickly and efficiently people are killed) is THE thing about war. I mean, aren't nukes the ultimate optimization?
Things absolutely, undeniably would have gone different under a Harris administration.
Not perfect, obviously, but not this. There was a clear better choice and Trump wasn't it.
And everyone who refused to vote or voted Trump because they saw no difference between the two has to wear that like an albratross around their necks for the rest of their lives. And I pray that they live long enough to feel the consequence of their stupidity close around their necks like a noose.
I like reduce, and I’ve never gotten pushback for using it. I’d be willing to use other functional method chains. But I would never listen to anyone who suggested using a procedural loop instead.
reply