Re:Why It's Time to Sunset jQuery
by WA on Sunday April 14, 2013 @03:50PM
(#5548003)
But: This is not about short code. It's about readability. What's readyState 4? Why "open" a request before sending it?
[ Parent
| on HN ]
It gets even messier when you find out one day you have to handle failures, or serialize data to send to that endpoint, or get notified on network events, or cancel an ongoing request, or etc etc etc.
Re:Why It's Time to Sunset jQuery
by grannyg00se on Sunday April 14, 2013 @04:55PM
(#5548262)
My code is a response to neya's comment. It's not about short code or readability. It's about demonstrating that neya's example has completely unreasonable non-jQuery code given the jQuery code it is being compared against.