r/javascript • u/MaoStevemao • Mar 03 '20
JavaScript Without Loops
https://jrsinclair.com/articles/2017/javascript-without-loops/3
u/ChronSyn Mar 03 '20
Without Loops
uses map, filter, reduce
Please, please, please... stop overengineering code, and stop proclaiming you've avoided loops just because you've used the functions built into JS.
If you have an issue with loops, I'd bargain that your issue is with complex loops, not loops in general. That's not an issue with loops, that's an issue with complexity. So, I'll say it again, stop over-engineering.
-1
u/MaoStevemao Mar 03 '20
complex
Why everyone's complaining about complex loops but not complex higher order functions such as
maporfilter?
9
u/SafeTailView Mar 03 '20
I am a Christian web developer from Australia.
What a strange thing to put in your 'about me' page
1
u/that_which_is_lain Mar 04 '20
Maybe they really want you to know they’re from the land down under.
1
u/oramirite Mar 07 '20
...why? It's a thing about him. I get that people have some issues with Christianity but it's just a thing about himself that he's proud of. Be the same thing as saying 'music-loving' if you were passionate about music.
-1
7
u/DecentGoogler Mar 03 '20
'without loops'. Uses HOF that use loops. GTFO.