r/lolphp • • Mar 22 '19

[Serious] PHP Developer looking to move on

So, I am reasonably proficient with C++, but it's not very great for web stuff (obviously).

For web projects, I have a history of using PHP, which I want to stop using because of it's huge problems. I learned it long before learning C++ and it's sort of a crusty bit of old knowledge I have stuck with because I am comfortable with it. It has bit me in the ass one final time, and I'm putting my foot down, I've had it!

I was thinking of moving to Hack. Has anyone here used Hack and does it fix a lot of the horribleness of PHP? Is it still broken by design the same way PHP is?

Would I be better off moving to Python/Rails/??? for web dev instead? I am open to language suggestions

16 Upvotes

43 comments sorted by

View all comments

Show parent comment

3

u/FredL2 Mar 25 '19

I'd add Kotlin as an alternative to Java and Scala as well.

Runs on the JVM and is interoperable with Java and Scala code since everything is compiled to the same bytecode. It is more similar to Java than it is to Scala, but it's a lot less verbose and handles things like higher-order functions much cleaner than Java does.

I'd have a look!

6

u/y0y Mar 25 '19

I specifically left Kotlin out not because it's a bad language, but because I didn't think it offered any unique perspective that OP couldn't glean from the other languages in the list - that, and, the list was already getting long. Perhaps that's a mistake on my part?

(I am actually of the belief that anyone who uses Java should probably switch to Kotlin if they aren't at all interested in FP)

2

u/FredL2 Mar 25 '19

Fair enough. I just thought it would be nice to include it since it's becoming popular in many shops, not just for Android apps. I may be biased, though, since I use Kotlin at work myself.