30 ms·
This is a very incorrect conclusion. Nothing about jquery prevented functional purity. If that's what you wanted, use it as such. Jquery just made browser dif
by smrtinsert 1y ago
This is a very incorrect conclusion. Nothing about jquery prevented functional purity. If that's what you wanted, use it as such. Jquery just made browser differences much less of an issue and wrapped it in a nice way. The modern react stack is exactly what all the fp snobs raged against and they weren't wrong about it. Its been said before, there was jsf before react. Both are bad ideas. React has terrible performance is extremely heavyweight and ridiculous for what its used for. There's a reason there's a revolt nearly daily.
To me the major failing here was people over investing in faang thought leadership. Still haven't ever used react angular etc in a major project and gone wow this is great. JQuery got a lot closer. There were many other ideas coming forward around the time those frameworks came up, it was a fertileperiod for frontend. Sounds like we should cycle back.
- chuckadams 1y agoIf anything, jQuery allowed things to be more FP-oriented. I don't remember who said it, but "jQuery selectors are lenses for the DOM" is one of the better observations about jQuery I've read. A lot of jQuery is unnecessary in modern JS, but we still don't have those sweet selector semantics, and you're still expected to loop over everything by hand. And as a continuing middle finger to the DX, NodeLists don't even support the HOFs of the Array interface and have to be converted to arrays by hand.