If Typescript, React, and PostgreSQL is such a powerful stack then why do we need other backend languages?
Posted by TurtleSlowRabbitFast@reddit | learnprogramming | View on Reddit | 12 comments
I myself will be learning Golang eventually however I keep seeing more software engineers choose this stack and speak highly about the possibilities. I’m sure just like anything there are limitations so why so many developers stick to it. Can it truly be used to build most projects?
helloworldpi@reddit
Thats because its not a powerful stack, its actually terrible.
shrodikan@reddit
Are you going to personally go around and rewrite all the C, C++, COBOL and FORTRAN that run every mission critical system that exists? Are you aware that other computing systems exist that are not the web?
minneyar@reddit
React is a framework, PostgreSQL is not a programming language, and TypeScript technically can be used as a backend language, but it'd never be my first choice.
Most of the time, when somebody uses anything JavaScript-based on the backend, it's a case of "When the only tool you have is a hammer, every problem looks like a nail." There are different tools for different problems, and JS is generally only the best when you have to run inside a web browser.
fixermark@reddit
The big advantage of using JavaScript or typescript on the back end is that you can write the code once and run it both server and client side. This can be useful but may not be the dominant factor in your architectural choices.
Broadly speaking, if somebody asks if we should be using typescript or python on the web request handler layer, I will tend to recommend typescript unless they can provide a very specific set of libraries they need that don't have npm equivalents.
DinTaiFung@reddit
One size does not fit all.
And judging the quality of a stack because of its popularity is considered fallacious reasoning.
PhilosophicalGoof@reddit
I personally use typescript, react/react native, typescript, go, and python for most of my needs.
But some projects benefit from different languages, for example if we branch outside of front end then you will see a bigger variety of programming language like in backend where you see python, Java, and go.
I personally would never use typescript in the back end though.
Mast3rCylinder@reddit
When you learn golang you'll see for example multi thread support.
When you learn C/C++/Rust you'll see also that you have more control over things and it's is faster.
There are much more than I wrote of course
Master-Ad-6265@reddit
It’s a great stack for most web apps, so people use it a lot. But other languages are better for things like performance, scaling, ML, or low-level stuff. Basically: it’s not about one being better, just using the right tool
Awkward-Chair2047@reddit
if english is so popular, why do we need other human languages like french, german etc?
misstwocubes@reddit
Did you just call React and Postgres languages? Maybe “learnprogramming” a little harder
Sheepza@reddit
If chicken breast is a high-protein, low-fat meal why do you also eat steaks and burgers?
cgcardona@reddit
Different tools and different languages solve different problems. Much like different human languages are idiomatic to places and cultures and different tools from a toolkit solve different mechanical problems.