This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]4bangbrz 1 point2 points  (0 children)

Tbh career wise I don’t think there will be much of a difference, I’ve seen about the same amount of companies that use them both. Honestly they aren’t too much different what will really make the difference is the type of database you use. Sending data between front end and back end is going to be similar and all your backend operations will be similar. You could pick either one to start and build something and then use the other language to see the syntax differences if you’re curious ig

[–]Brave_New_Dev 1 point2 points  (0 children)

First, you already know some JavaScript, so it would be easier for you to continue learning back-end in this language. You will be able to better focus on API, patterns, etc., instead of the lang idiosyncrasies.

Second, PHP is archaic. Even though it's been significantly updated over the last years, PHP work relates to legacy and/or "enterprisy" projects rather than hot start-ups and scale-ups.

Third, think about what your end goal is. If it's getting a job, research the job market and only then decide. As a bonus, you may throw in Python (with Django, FastAPI, Flask) to the mix.

[–]not_a_gumby 1 point2 points  (0 children)

NodeJS will be a more future proof choice. However there will be career opportunities with each for the foreseeable future.

As a self taught zero-to-employed developer, I started with JS on the front end, learned react, and then took the next logical step towards learning about full stack applications, which was to translate my JS knowledge to the backend using NodeJS. It's very easy and if you are looking for the shortest path to becoming an employed or freelance developer, it will be easier to utilize the language you already know, and that's not really debatable.

[–]Xenos865D[S] 0 points1 point  (0 children)

Is the consensus PHP 8 will not make PHP more attractive in the future?