3 ms·
From my experience, the horrors of javascript come from letting the client handle too much stuff. Frontends tend to run a ton of logic that should be handed of
by mawadev 4y ago
From my experience, the horrors of javascript come from letting the client handle too much stuff.
Frontends tend to run a ton of logic that should be handed off to the proper tool for the job: SQL.
The time and complexity you save on the backend is simply not put to good use these days.
I like to program SPAs like a reactive thin client and let the backend be more SQL or ORM heavy.
- cpursley 4y agoThis is not just JS frameworks. Many backend frameworks are overly ORM dependent in my opinion.
- mawadev 4y agoThat is true. I have seen a big aversion to writing JPQL or native SQL whenever an ORM like Hibernate or JPA is involved. It seems to be like you home in on a single technology and try to make it fit it into things where another tool can do a better job in less lines of code. I once worked with a team where the devs didn't know what hibernate generates inside the database, it was shocking how much trust is in these layers of abstractions. The concept of unique and foreign key constraints, sequences or indexes was unknown. It may be cleaner to you and written in the same language you are familiar with, but some problems simply aren't that easy to solve.