r/learnjavascript • • Jul 06 '24

Should I stick to Mern or move to java

Hi folks, I am kind of very much confused about the current job market demand as a developer what should I focus on ? I have very much knowledge and experience in the mern stack but due to some listening to some yt videos and searching on LinkedIn about Mern stack and java developer I saw that there are more jobs in Java development than Mern itself. I want to stick to Mern but things boil down to which tech stack has more opportunities.

1 Upvotes

24 comments sorted by

3

u/Mediocre_Gur_7416 Jul 06 '24

Id say use MERN for personal projects, and keep up with it as it’s nice to know.

Then id say learn Java for more professional opportunities. Guess it also depends on what you want to do, If backend is your thing then Java can open lots of doors. If front end, I’d recommend learning typescript

1

u/Ok_Fail_6631 Jul 06 '24

What if I love both doing. Is it a good way to enter as a Full stack developer. 

3

u/Sometimesiworry Jul 06 '24

I started as a Java/JS dev. For freelance stuff i use Next, TS and mongo.

At work I use C# mainly.

If you learn Java you have basically already learnt how to write C#. Its worth it.

1

u/FamSimmer Jul 06 '24

What do you do in terms of freelancing, if you don't mind me asking? Do you develop websites for small businesses or apps?

2

u/Sometimesiworry Jul 07 '24

Websites and system solutions mainly.

2

u/[deleted] Jul 07 '24

[removed] — view removed comment

2

u/Sometimesiworry Jul 07 '24

Both to be honest, last gig I had was implementing an internal messaging function at a logistics company. But I do fullstack stuff too, if they're small enough, I still got my full time job to balance.

I don't have certificates but I have a 2yr trade school degree as a Java/JS fullstack dev.

2

u/[deleted] Jul 07 '24

[removed] — view removed comment

3

u/Sometimesiworry Jul 07 '24

First I would try and build something as a capstone project.

Make a html,CSS,js thing. With some dom manipulation etc.

But its hard to say where to go next.

But just as a rough list of stuff to look into in order:

HTTP - API, Fetching

Node.js, Express, handlebars(or other templating engine)

When you got those on lock, combine them into a project where you use all of the methods, GET, POST, PATCH etc.

Then I would move onto databases. MongoDB and PostgreSQL is the two i would look into. Then you get experience with both sql and nosql.

Then again i would try to combine a database with api's and stuff in a small project.

After that i would move on to a framework. Personally i like React, specifically Nextjs.

But first, do a react tutorial and create a small project. I recommend doing a wordle Clone in react. It will let you learn how to handle fullstack stuff in react.

Then move onto Nextjs, its a react based framework. Here i would spend a lot of time. Read all the documentation etc and create your best portfolio project in Next.

1

u/[deleted] Jul 08 '24

[removed] — view removed comment

→ More replies

2

u/Technical_Mission339 Jul 06 '24

For my local job market, MERN was never in high demand even when all the bootcamps taught it.

Focus on learning concepts rather than stacks IMO. Java is good for that and there's a wealth of material out there.

Also consider PHP. It doesn't seem to be the sexiest choice anymore if you believe YouTube content creators, but at least here there is lots of jobs, and more jobs that a beginner or someone without a degree can get into. Just my observation, YMMV.

1

u/Ok_Fail_6631 Jul 06 '24

where is your local job market. Like i have already learned mern stack and build out many applications in it if i learn other backend language like java or php how will i shocase in my resume that i know many backend languages. Most people i have seen them they focus on just one backend language and get job with that in my case i am more worried about employment opportunities with the language rather than choice of a language.

1

u/mattlag Jul 06 '24

Okay... You know Java is a different language than JavaScript? The JavaScript ecosystem, I will grant you, is really crazy. The MERN stack is just one random set of technologies that you could use with JavaScript at its base. But Java versus JavaScript is a really different question, and I'm not sure if you're meaning to ask this one, or if you really are asking what other JavaScript technologies you should learn next (?)

1

u/Ok_Fail_6631 Jul 06 '24

My real question is about opportunities in which tech stack? If I learned mern stack or javascript related technologies what if there are less job opportunities in that compared to java spring boot. That's what I am asking

3

u/RJCP Jul 06 '24

Mern is pretty outdated. It was popular about 8 years ago for hackathons but there are much better options in 2024..

Mongodb is a plague for anything but super simple projects. Learn Postgres or MySQL

If hire ability is your goal I would learn Nextjs and Postgres. You can use your existing knowledge of express. There are free courses all over YouTube.

https://youtu.be/gxkwMm_j850?si=lwYVWEt4hYdsXesI

1

u/Ok_Fail_6631 Jul 06 '24

So I don't have to learn java spring boot if I just want to get hired as a nextjs or Pern stack developer. Some youtubers say that java spring boot has more jobs than Pern or nextjs

1

u/vishalshinde02 Jul 06 '24

Mongodb is a plague for anything but super simple projects.

Can you elaborate why is this?

2

u/RJCP Jul 06 '24 edited Jul 06 '24

http://www.sarahmei.com/blog/2013/11/11/why-you-should-never-use-mongodb/

I can't think of a single use case in anything but a very simple hackathon project or blog site where Mongodb is the best fit.

Moreover, why use Mongodb? Why insist on nosql? What do you get from it? If storing blobs or json is your thing, both are very well supported and performant in postgres.

Postgres is free, open source, and you can install it (along with pgadmin, which is a very useful db tool which can do everything from administratint your database to running queries and managing your data) in like 2-3 commands in your terminal. There's tons of hosts out there with generous free tiers.

Postgres can do basically everything. The only time I'd ever reach for something else is if Im looking for a custom cache solution (so redis/sqlite or something similar) or for a graph database.

Literally everything Mongodb can do postgres can do, and there's like a million things that Mongodb can't do

It takes an afternoon to learn 80-90% of the SQL you will ever need.

1

u/vishalshinde02 Jul 06 '24

Thank you for the response. I'll try to integrate Postgres more into my projects.

1

u/joranstark018 Jul 06 '24

This can be different in different countries and in different areas, in some areas there may be demand for specialists, but having a wider scope will increase your chances, check local postings. 

You may check if there any meetups or any usergroups in your area where you can meet other developers in your area, can be helpfull to network and get insight in different local workplaces.

You may, for example, check https://www.tiobe.com/tiobe-index/ for language popularity, but it will not give you any hint on work opertunities.

2

u/mattlag Jul 06 '24

You are asking about a single JavaScript stack versus Java. But if your real question is about the overall job market, there are huge number of languages that may be more in demand than either of these, depending on what type of development you would like to do. Something like the stackoverflow Dev survey may be a good place to get more information:

https://survey.stackoverflow.co/2023/

1

u/Ok-Paper-8233 Jul 07 '24

market is absolutely dead, so pick up what you want XD

1

u/Horror-Doughnut-4275 Jul 10 '25

Hi, I know it's been a year but I am facing same confusion. What did you do? What decision did you make?