VOOZH about

URL: https://thenewstack.io/outer-excuses-why-javascript-developers-should-learn-sql/

⇱ Outer Excuses: Why JavaScript Developers Should Learn SQL - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-05-16 04:00:02
Outer Excuses: Why JavaScript Developers Should Learn SQL
tutorial,
Data / Frontend Development / JavaScript

Outer Excuses: Why JavaScript Developers Should Learn SQL

SQL is the language of databases and if you’re a JavaScript developer using PostgreSQL, it’s beneficial to have a basic understanding of SQL.
May 16th, 2024 4:00am by Paul Scanlon
👁 Featued image for: Outer Excuses: Why JavaScript Developers Should Learn SQL

Hello. You’re a JavaScript developer, right? Would I also be right in assuming that you don’t know SQL, and you don’t want to learn SQL?

In this article, I’d like to introduce you to Outerbase which, among other things, allows you to create, edit, visualize and explore the data in your database — all without having to write SQL. More on that in just a moment, but first, let’s address the elephant in the room (pun intended)

JavaScript developers are running out of excuses not to learn SQL.

Many JavaScript developers will do quite literally anything to avoid learning SQL, and after a little bit of research, I’ve boiled it down to three key reasons:

  1. I haven’t got time to learn SQL.
  2. I don’t want to learn SQL.
  3. SQL isn’t type-safe.

In a previous article: Automatically Generate Types for Your PostgreSQL Database, I addressed point 3, so now it’s time to circle back and tackle points 1, and 2.

You Don’t Want to Learn SQL?

I can’t, and won’t ever, understand why you don’t have time to invest in yourself, so let’s skip point 1.

Point 2, however, is something I’d like to address. The lines between frontend and backend are becoming more and more blurred in JavaScript land, and I think that’s actually pretty cool. Frontend devs can now do things that before would have required deep backend knowledge. However, that doesn’t mean you should skip the fundamentals.

SQL is the language of databases and if you’re a JavaScript developer using PostgreSQL, it’s beneficial to have at least a basic understanding of SQL, even if you do eventually end up using a JavaScript client to query your database.

The road to learning SQL can be a little rocky, but thankfully with the rise of AI and the developer tools companies using it, learning SQL might have just become a lot easier.

Getting Started With Outerbase

Go ahead and sign up, then connect Outerbase to your database. Once you’re connected, you can begin to write queries using natural language and Outerbase AI will convert your “conversation” into a SQL query.

I’ve connected Outerbase to my PostgreSQL database which I use to capture site visits and display them on the dashboard of my site. I store geolocation data from site visitors in a table named analytics. The table schema looks like this:

In the below “conversation” I’ve asked Outerbase to count the number of visits from each country in the analytics table.

👁 Outerbase AI converstation

And without any bother at all, Outerbase wrote the following SQL query, which I’ve run right there in the browser to see the results.

👁 Outerbase AI query and results

From here I could very easily copy and paste this query into my code, and et voilà, I’d have data to display any which way I like in my frontend.

Write SQL Without Learning SQL

By using Outerbase AI, you can describe the data you’d like to query using natural language, and Outerbase AI will write the SQL query for you. It feels like a nice middle ground for developers wishing to dip their toe in the PostgreSQL pool (again, pun intended), but without getting snagged up on unfamiliar syntax.

If you’re coming from JavaScript, SQL at first can appear to be like an Alien language, but it’s really not. For instance, can you read this?

I’d imagine you probably can, and that’s by design.

Take a look at this video of Don Chamberlin, one of the principal designers of SQL. In the video, Don explains the fundamental goals guiding the design of the SQL language. Goals 2, 3, and 4 are particularly pertinent.

  1. We wanted to use the term tables instead of relations…
  2. We wanted to base the language on ordinary English words like select.
  3. The language should have no special symbols, and it should be easy to type on a keyboard.
  4. We wanted it to have something that we called the walk-up and read property. Meaning, in simple cases, a user with no special training should be able to understand a query just by reading it.

I think you’ll agree that the simple SELECT statement above meets these requirements. Even just simply reading it in the context of an ordinary sentence makes sense. E.g. select name, country, and email from users.

Fun fact: SQL doesn’t have to be written in uppercase.

In JavaScript land, things are a little, well, weird. For instance, here’s the same query used above, but written in Supabase and Xata-specific JavaScript syntax.

Supabase

Xata

It’s worth noting that both Supabase and Xata can be queried using “ordinary” SQL too, FYI!

Whilst there are advantages to using JavaScript syntax to query a database (type safety is not among them), I do still wonder why JavaScript developers are so reluctant to learn SQL.

In most cases, SQL expressed in JavaScript requires special knowledge and can’t be read like an ordinary sentence (in English). And more than that, learning what I’m calling SamQL-Jackson (provider-specific JavaScript syntax) is shortsighted. Why spend the time learning something that can only be used with one provider, when you could invest the same amount of time developing skills that are much more widely used and that will greatly improve both your understanding of the technology you’re using and probably your chances of getting hired.

However, there is one remaining point that I do think is a reasonable rationale for using SamQL-Jackson, and that’s autocomplete. For instance, if you were to type supabase. In your code editor, you’ll be presented with a list containing a number of options to choose from to construct your query.

👁 Supabase autocomplete example

Arguably though, if you already know SQL, you don’t need autocomplete. You could very easily write queries just as quickly, or take advantage of the ~40 years of internet history that will help you understand SQL; or, better still, something like ChatGPT which also has ~40 years of internet history to reference. If both of those fail, there’s now Outerbase AI, which will write SQL for you!

This might be a little spicy, but JavaScript developers are really running out of excuses not to learn SQL.

Final Thoughts

It might sound like I’ve got an axe to grind with JavaScript and SaaS PostgreSQL providers, but I don’t. I do, however, have a vested interest in developer education. The “best practices” noise you hear around “ship it culture” doesn’t apply to you when you’re learning. Speed doesn’t factor in when you’re investing in yourself. If it takes you a year to learn SQL, so be it. SQL is a foundational skill. Learning it, and even perhaps struggling with it, will eventually help you understand why abstractions exist. From there you can make your own decisions about whether or not they suit your requirements.

Starting with abstractions, however, means you miss out on the backstory. That would be like watching a movie and just skipping straight to the last five minutes, just so you can say you reached the end — or, “Look what I shipped”. Of course, it takes longer to watch the entire thing, but during that time you’ll understand the characters, the plotline, and (if the story is told well) you’ll be engaged throughout.

For me, learning is kind of the same thing. I don’t want to skip to the end, I want to experience the whole story. I don’t know if I’ll have changed your opinion about SQL, but I think by using Outerbase AI you might start to see it’s not as scary and verbose as you thought. Give it a go!

TRENDING STORIES
Paul is a Senior Software Engineer, Independent Developer Advocate and Technical Writer. More from Paul can be found on his site, paulie.dev.
Read more from Paul Scanlon
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.