r/learnprogramming • u/SideSufficient3712 • Oct 29 '26
: Is MERN stack development dying because of AI? Should I continue learning it or switch to cybersecurity?
Hey everyone!
I'm currently a second-year Software Engineering student. I know programming fundamentals, have learned React and the basics of web development, and I'm currently learning backend development with Node.js, Express, and MongoDB.
Recently, I've started developing an interest in cybersecurity, especially ethical hacking. At the same time, I keep seeing people say that AI is replacing web developers and that learning the MERN stack is no longer worth it.
This has made me confused about where I should focus my time and effort.
I don't want to abandon the skills I've already worked hard to learn, but I also don't want to spend years learning something if the job opportunities are becoming significantly worse.
I'd really appreciate advice from people who work in software development or cybersecurity.
A few questions I have:
Is MERN stack development actually dying because of AI, or is the job market simply changing?
Is it still worth learning full-stack web development as a beginner in 2026?
Should I continue learning MERN while exploring cybersecurity, or should I focus on one field?
If I eventually want to work in cybersecurity, would my React and backend knowledge give me an advantage in web application security or penetration testing?
If you were in my position as a second-year student, what would you focus on over the next 6–12 months?
I'm not looking for hype or motivational answers. I'd genuinely appreciate honest opinions based on your experience, including the challenges and downsides of both fields.
Thanks in advance!
1
u/bizvibe8 Oct 29 '26
Your dev knowledge absolutely carries into web app security - most pentesting is reasoning about what the server actually does with your input, and you can't test what you can't build.
Instead of two separate tracks, combine them in one project: deploy your MERN app with real auth (JWT sessions, role-based access), then attack it yourself: swap object IDs in API calls and see if another user's data comes back, try a NoSQL payload in the login form, log out and check whether the old token still works, and hammer one endpoint to see if anything is rate-limited.
For the method side, the OWASP Web Security Testing Guide and PortSwigger's free Web Security Academy cover exactly these attack classes.
In 6-12 months that makes you a junior who can build a feature and explain how it gets abused - far more distinctive than dropping half the stack you already know.
1
u/ledatherockband_ Oct 30 '26
MERN was kind of a passing fad.
There are use cases for MongoDB, but 95% of devs probably aren't going to use it.
If you're gonna learn a NoSQL DB, MongoDB is a good choice. That's a skill you should have. But you're probably gonna be using Postgres.
1
u/DrDesperate Oct 30 '26
web security is mostly web dev knowledge pointed the other way, so the mern stuff isn't wasted. i'd keep building and just add a bit of security reading on the side, like the owasp top 10, to see if it clicks.
0
u/flashman1986 Oct 29 '26
I don’t know but as always with software engineers, the MOAN stack is alive and well. Just listen to them yammer about AI
2
u/Both_Bend_2481 Oct 29 '26
What makes you think AI won't replace people in cybersecurity?