Why Care About Universal Web?
or you would see a spinner image. It's a GIF that is spinning to show you that something is happening. And then code reuse. Code reuse is that's very important for developer experience. Without having the ability to reuse code, the browser code on the server and vice versa the server code on the browser, you're basically as a developer, you're basically doomed to duplicating your work and then that amount of time doubles, triples and quadruples when you need to maintain. Let let's say, you need to make a change. Now you need to go update the server-side templates and the
browser templates. So you need to maintain two sets of templates and then you need to test for those changes, and for those views as well. So you need to maintain two sets of testing, for those, for that code without having the ability to reuse that code. Also utilities like lo-dash, underscore, or your own in-house utilities. It's very, very nice when you can reuse that code. DRY (Don't repeat yourself). That's one of the main concepts in a good software engineering. And the fourth reason is the performance, so you can actually do very, very, very cool things with the
there was this library maintained and built by Storify, it's called jade-browser. So Jade, now it's called Pug (P-U-G). It's one of the most popular server-side templates for Node.js. And what this little utility allows you to do. It allows you to basically expose those server-side templates on the browser, hence the name jade-browser. So you can write the templates once and then reuse them on the browser which is brilliant. And back in the day it was very a popular module.