Re:The melting pot of JavaScript (2017)
by bryanrasmussen on Tuesday January 08, 2019 @03:30AM
(#18854173)
For a few things I've worked on Views can be rendered client side or server side.
Aside from form validation I find I might have a number of utility functions that are used on both layers.
I find there are a few other edge cases, but those are the most common situations where reuse is nice (on the other hand what I often do for personal projects is just build the server side and client side code from a gulp pipeline and not worry about needing 'isomorphic' code reuse, but often teams on paid for projects find this approach confusing)
And that is only when not using JSF, Spring, Forms, MVC, Liferay, Sitecore, which generate the JavaScript validators automatically from type annotations anyway.
For my projects, the Web layer is only the View part of MVC.