r/learnprogramming • • 28d ago

: 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:

  1. Is MERN stack development actually dying because of AI, or is the job market simply changing?
  2. Is it still worth learning full-stack web development as a beginner in 2026?
  3. Should I continue learning MERN while exploring cybersecurity, or should I focus on one field?
  4. 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?
  5. 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!

0 Upvotes

8 comments sorted by

2

u/Both_Bend_2481 28d ago

What makes you think AI won't replace people in cybersecurity?

1

u/bizvibe8 27d ago

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_ 27d ago

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 27d ago

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.

1

u/Far-Bullfrog161 27d ago

Honest take from someone who works on backend systems: MERN as a specific bundle is less fashionable than it was, but the skills underneath it aren't dying. Companies still need people who understand HTTP, APIs, databases, authentication and deployment, and AI tools make juniors faster at typing code, not at understanding why a system breaks. What has changed is that a basic MERN to-do app no longer stands out, so depth matters more than the stack name. Your web knowledge is a real advantage for security, because web application testing is mostly understanding how requests, sessions, cookies, auth flows and databases work, then finding where they're mishandled. For the next 6 to 12 months I'd pick one main track rather than splitting evenly: keep building backend skills (add a relational database like Postgres, proper auth, tests, and deploy something real), and spend a smaller slice working through the OWASP Top 10 against your own apps. That combination makes you useful either way, and you can lean harder into security later if you still enjoy it most.

0

u/flashman1986 28d ago

I don’t know but as always with software engineers, the MOAN stack is alive and well. Just listen to them yammer about AI