r/javascript • • Jan 03 '20

[deleted by user]

[removed]

90 Upvotes

34 comments sorted by

View all comments

Show parent comment

9

u/campbeln Jan 04 '20

Yes.

I started with AngularJS at 1.1 and we had breaking changes at least twice with 1.4(?) and 1.5/6 somewhere. From these experiences, I rearchitected our approach to push AngularJS to be UI/binding/templating-only; removed the services, factorys, everything but the filters and slimmed down the controllers to almost nothing. This also made the transition to VueJS pretty easy, save for a couple of complex directives that slots could solve.

Anyway... this UI/binding/templating-only approach has been my architecture ever since and Svelte (what a dumb name despite it's awesome meaning, especially how it pertains to my approach) is even better than VueJS in that regard as it just stays the hell out of the way.

In the end, Node is our backend business logic tier, an OOP-esque object on the UI side is our UI-sided middle tier (think factorys, services and the like in AngularJS nomenclature) with AngularJS/VueJS/Svelte as the UI binding and some data container on the backend (MSSQL or ES with my current role).