DEV Community

Discussion on: What's the minimum amount of JavaScript can a web application get away with?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I think there all good candidates, and I think a few more things actually. Refactoring without unit / integration tests or any sort of test really, our protagonist deserved it.

Perseved speed (RAIL) principle is far more important than fast code. I do agree that dependencies in npm are insane but npm has improved alot.

If your PO wants a seamless emersive product, how are you gonna do this with serverside and CSS animations alone.

Collapse
 
alchermd profile image
John Alcher

Refactoring without unit / integration tests or any sort of test really, our protagonist deserved it.

We're going to assume that he added tests once he migrated to <modern-mvc-framework />, so we'll give him a pass this time.

Perseved speed (RAIL) principle is far more important than fast code.

That's actually the first time I heard of RAIL. Looks interesting!

If your PO wants a seamless emersive product, how are you gonna do this with serverside and CSS animations alone.

Fair point. Though it's interesting to think what's the least JS we can put in a product that can still constitute to good UX. The product being a social media platform makes the line narrowly thin, I think (should've chosen a better example lmao).

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

No don't worry, I was on the bus and getting frustrated, saw your post and vented, my bad. Your absolutely right to question this. It is absolutely possible to go a long way with just CSS. However the CSS would all need to be loaded on the same page. A dynamic scripting language offers some very important asynchronous features giving the Perception of speed. Load things when you need them. Distract users with animations ect.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

developers.google.com/web/fundamen... there we go a reference

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

And here is the funniest lecture on the subject it will stick with you. youtu.be/65-RbBwZQdU