this post was submitted on 24 Jun 2023
14 points (100.0% liked)
No Stupid Questions (Developer Edition)
921 readers
1 users here now
This is a place where you can ask any programming / topic related to the instance questions you want!
For a more general version of this concept check out [email protected]
Icon base by Lorc under CC BY 3.0 with modifications to add a gradient
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
In my experience, you learn a language and then you apply for a job that requires that language. So, if you don't learn Java, you won't apply for a Java developer position. You can go a whole career without touching Java.
Unlike PHP, which has the tendency to sneak up on you (never met a PHP programmer who chose to become one) Java will most likely not just come up if you don't go looking for it.
The opposite actually happened to me. PHP was my first non-intern position. That company eventually started working with Java, so I made that transition when they did.
Fascinating. It has been a running joke in my bubble that no one ever picks up PHP voluntarily. It's just everywhere.
I wouldn't overthink it. Learn the languages you like. Learning an OOP language in depth is a good idea, but it doesn't have to be Java. C# or even modern PHP also work fine.
I used PHP voluntarily. 22 years ago there wasn't much choice. Java hosting options were expensive, Perl options were more expensive than PHP, C# didn't exist (this was the same year it came out!), Python 2 wasn't commonly installed by default on Linux distributions etc. No cloud, no Node.JS. If you had access to Windows server you could use VBScript - if you targeted Internet Explorer (versions 4 and 5 were dominant, 6 was new, it was the most popular internet browser at the time) you could use VBScript for both server-side and client-side scripting. Java applets were a thing. But if you didn't need that, PHP was the most accessible option. And since many hosting providers gave you similar versions of PHP and its libraries, you knew what could work and what not and that you could move your website from one hosting provider to another.
I was choosing at the start of my career between C# and PHP, and I chose PHP. I love the simplicity of the language, as it does everything I need, and it's very quick to prototype basic funcionality in no time.
It was less voluntary to use Perl, but they pay a lot, and it always ended in PHP anyway.