by recursivedoubts · 2y ago · 0 comments
If you are smart enough to figure out GraphQL, you are smart enough to figure out SQL, and SQL comes without the security/expressiveness tradeoff[1] inherent in front-end data access technologies. You have hypermedia-oriented tools like hotwire, unpoly & htmx pushing data access back onto the server, and at the same time things like React Server Components doing the same.
I'm very bullish on SQL.
1 - https://intercoolerjs.org/2016/02/17/api-churn-vs-security.h...
Without SQL there would have been no way to determine the extent of the issue.
People forget that SQL is the only 4th gen language in common prod use.
Python, Java, C# are only 3rd gen.
With distributed systems you probably interface another web api of some type instead of an SQL-DB and often it is just annoying.
Some people pretend that you shouldn't use any SQL-server today and instead use current-hipster-web-accessible-database. But these often just simply don't deliver, are expensive, have performance problems, lacking compatibility and a whole other issues.
edit: Some cloud consultants increasingly say that nobody uses SQL anymore. Makes me chuckle a bit.
More commonly, there are the people who use a SQL server at the lowest level, but then stick another database layer on top in order to provide a more friendly querying experience for the bulk of the users. The prevailing idea is absolutely that most people shouldn't have to use SQL, and most likely that they should use a hipster-web-accessible database, even if SQL exists somewhere inside of a black box.
Niche does not imply that something is nonexistent, but it does seem pretty clear that we go to great lengths to ensure that most people don't have to use SQL, limiting its use to a narrow set of developers who specialize in that niche, while everyone else uses higher level languages to communicate with the database.
Which is not at all what SQL envisioned in its infancy. It was supposed to be the language for all business people far and wide.
[1]: https://htmx.org/
This is in contrast with traditional SPA libraries such as React, which typically access data via JSON APIs and construct a user interface on the client side. You can't make SQL generally available on the client side due to the obvious security issues, but projects like GraphQL have attempted to make the client side more flexible. Unfortunately I believe there is an inherent trade off with client-side data access that I outline here: https://intercoolerjs.org/2016/02/17/api-churn-vs-security.h...
So, as developers rediscover hypermedia & hypermedia oriented libraries, they will suddenly have access to SQL again.
And, as I mention above, new technologies like React Server Components, by putting evaluation on the server, also make SQL more easily accessible for developers.