Jason Knight
1 min readNov 13, 2023

--

Spits in the face of everything I learned was "quality coding' prior to about 2005, and is STILL a bloated, inefficient, train wreck of "endless pointless functions for nothing", "take one down and pass it around" on the stack, and a total failure to optimize inside the loop.

And for what? Wah wah teh “for” is evil whackjob paranoid BS and "but we need separate functions for every joe blasted operation" rubbish?

let result = [];
for (let value of myArray) if (
(value < 25) &&
(value % 1)
) result.push(value * 2 + 3);

ZERO ambiguity, only needs to loop ONCE! And kicks the code wasting time wasting typeScript chazerei to the curb too.

This is why all that career educator “functional programming” trash is complete gibberish. Shades of why the whole “clean code” movement is about everything except clean code.

But then my view is different from most having started out hand assembling machine language, and then spending 20+ years working in “Wirth Family” languages like Pascal, Modula 2, and Ada.

Those Array methods were garbage when introduced, and they’ve aged like fine milk.

--

--

Jason Knight
Jason Knight

Written by Jason Knight

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

Responses (1)