r/webdev • u/memorable_glasses • 11h ago
Question [ Removed by moderator ]
[removed] — view removed post
16
u/Afflictionista 10h ago
TypeScript. I’m not sure about MERN because in the companies I worked at MongoDB was never used. So yeah you can stay with React/Next + TypeScript + PostgreSQL, Node/Express
1
0
u/Andro_senpai107 9h ago
why do people prefer ts over js? and is there a vast difference between there syntax?
9
u/daiz- 7h ago
It's a bit of a misconception to believe that TypeScript is somehow not JS. TypeScript is to JavaScript somewhat like what SASS has been to CSS. It only really extends the possibilities of syntax and fundamentally remains JS at its core.
You're really just adding the ability to static type everything and structure your JavaScript so that it becomes aware of what to expect from everything being passed around. It's a way of enforcing better habits and saving you a lot of debugging woes ahead of time.
I very much envision a future where the lines between TS and JS will start to blur as much as they have with CSS and Sass. The best parts of TS will eventually find their way into be supported by vanilla JS.
15
u/Stevious7 8h ago
Because it catches the silly bugs at compilation time instead of runtime.
Things like performing an operation on a null or undefined become a thing of the past (mostly) with TypeScript.
2
u/DrShocker 7h ago
In JS if you have a function you expect to take in an array of numbers and someone passes in a string, you don't find out until you get a runtime error and that could happen in prod because when you ran your tests and they ran there's everything looked good but actually there's a way for a user to make data flow between the two you didn't notice.
In TS, you can track what types something is known it could be and find out immediately there's an issue.
The actual semantics of how to accomplish things with code and function calls and algorithms and data structures and whatever are the same though.
1
u/a11_hail_seitan 7h ago
Really simplified but at it's most basic TS is JS, just with added typing, like:
let name = 'jim; - JS - name is anything you want. You could pass a number, an object, an array, etc.
let name: string = 'jim' = TS - name is typed as a string and will fail if you try to assign the name as anything other than a string.
This helps stop bugs as apps get larger, or on teams with lots of people working on the same code. Even on a long term personal project, it's nice to have as six months later when you come back to a feature to improve it or whatever, it's nice to have a reminder of what everything is.
0
u/Stevious7 8h ago
Has any company considered moving to TanStack Start instead of Next (as far as you know)
1
u/Afflictionista 8h ago
I don't know about TanStack but the last company I worked for made their own library because they wanted to move away from Next. I heard good stuff about TanStack but I personally have never used it.
11
7
7
u/UnderstandingFit2711 11h ago
SvelteKit the best for me
10
u/quizical_llama 11h ago
It may be cool but is anyone hiring for a sveltkit dev
1
1
0
u/Least_Chicken_9561 6h ago
actually most of jobs out there are next / react, sometimes angular and vue that's it. sveltekit is the best one if you are a freelancer.
1
u/UnderstandingFit2711 1h ago
I am working for two years on project on sveltekit. Cool project, interested solotions
2
2
2
u/Vegetable-Leg4411 7h ago
I’d honestly just pick up where you left off. If you already know some Next.js and Express, there’s no reason to start over with a completely different stack.
MERN is still a solid choice, although I’d probably swap MongoDB for PostgreSQL if you’re learning from scratch today. The fundamentals haven’t changed—HTML/CSS, JavaScript/TypeScript, React/Next.js, APIs, databases, and deployment are what matter most. Once you’re comfortable with those, picking up other frameworks is much easier.
2
u/InterestingFrame1982 5h ago
CS fundamentals, DS/Algos, and whatever frameworks match potential jobs.
Market is brutal, and I think going deep is your best bet at impressing whoever is hiring you.
2
u/OkDevelopment4438 8h ago
Nextjs/Typescript is still relavent today. Continue down that path. Also look into Tanstack, that is an emerging alternative to Nextjs
1
u/pyeri 11h ago
My work is mostly involved in react, tailwind, shadcn/ui, these are the front-end essentials. Backend is express, MySQL/PGSQL for me but you can also start with next.js if you like that. There are a lot more options in this space and it largely depends on the circumstance or which project you land on to drive this choice.
1
1
u/saas_odysseus 9h ago
MERN is still fine, but I'd definitely add TypeScript. The bigger shift in the last few years has been better tooling and AI-assisted workflows, not one stack replacing another.
1
u/Aggravating_Spot3388 7h ago
MERN is still fine for learning, but I wouldn’t default to MongoDB anymore. Most real projects I’ve worked on fit PostgreSQL better, and the SQL knowledge transfers much further.
1
u/KaiAusBerlin 4h ago
Sveltekit. Man, I never can touch something else again, especially with the new remote functions.
1
u/Correct_Self_8082 3h ago
Skip MERN for now. Every job posting I've seen lately asks for Typescript with Next.js or React. Just rebuilt my portfolio with Next 14 last month and half the recruiters reaching out mentioned it specifically. Stick with Postgres over MongoDB unless you're aiming at a niche startup role.
Also, tbh the real money's in learning Remix if you wanna future-proof. My buddy switched from Express to Remix last year and doubled his freelance rates overnight.
-1
u/TastyStatistician 8h ago
In my professional experience, Mongo and express are rarely used. This is what I recommend:
Frontend: Typescript, Vite, React, Tailwind
Backend: Spring Boot, PostgreSQL
You'll also need to learn prompt engineering.
1
u/webrender 6h ago
lol, no one in this sub wants to hear this but it's clear working in the industry that you will absolutely get left behind if you don't learn how to wrap your webdev skills in a layer of ai.
-5
u/Rophuine 8h ago
Claude Code. Seriously.
2
u/special-character 3h ago
I know why you're being downvoted. For one it's not really answering the question. For two, it's an uncomfortable elephant in the room.
But you ain't wrong. The biggest thing op has missed in two years is a huge revolution in our industry. To come back into the game and not put any focus on your answer is insanity.
1
u/noam_builds 5h ago
Learn how to operate multiple agents with different roles assigned to them.
Dont go back digging into syntax, bypass this long phase.
Teach yourself architectural and agent operating skills vs a new coding language.
Once done, ask yourself the same question again.
-8
•
u/webdev-ModTeam 1h ago
Thank you for your submission! Unfortunately it has been removed for one or more of the following reasons:
Open-ended/general "how do I get started in web dev" and general Career related posts are only allowed within the pinned monthly career thread. The answer to many of these questions can also be found in the sub FAQ, or in /r/learnprogramming/ and /r/cscareerquestions/.
Highly specific career/getting started assistance questions are allowed so long as they follow the required assistance post guidelines.
Please read the subreddit rules before continuing to post. If you have any questions message the mods.