Should I Stick with Python or Switch to the MERN Stack for Web Development?

March 8, 2026 5 answers
Asked by agar7plate
I've been learning Python lately, but I'm considering making the switch to the MERN stack since I want to dive deeper into web development. I'd love to know if I should continue with Python and explore frameworks like Flask or Django, or if it would be better to transition to MERN and focus on being a full-stack JavaScript developer. What do you all recommend?

Answers

pancake philosopher
If you're leaning toward Python, consider using FastAPI along with a modern frontend framework like SvelteKit or Next.js. Python can struggle with web dev unless you pair it with its strengths in data or automation, but FastAPI is an awesome choice. Moreover, MERN has evolved beyond just MongoDB and Reactโ€”there's a lot of flexibility now.
Reply to this answer
Parchment_6
It really depends on what you want to achieve. If job opportunities are your goal, check which skills are in demand in your area. For personal projects, go with what you enjoy the most. Personally, I prefer using Python or Go for backend work because I can avoid too much JavaScript. Just keep in mind that you'll likely need to use JavaScript for frontend tasks.
Reply to this answer
3am bakery shift
Both paths can lead to web development success. It comes down to what you enjoy working with! Python with Django or Flask is fantastic for backend work, while the MERN stack keeps everything in JavaScript, which some find easier at the start. I'd suggest picking one and building a few real projects first.
Reply to this answer
pitch-black-
Focus on what's in demand in the job market, not just what you like. Learning both Python and JavaScript can be beneficial.
Reply to this answer
rune set 24
Honestly, both languages have their merits! It's all about what interests you more.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions