4 ms·
I'm an experienced JVM developer (mainly Java & Scala) and I had to accept a freelancing project in which one administration component was written in Laravel, a
by johnnycerberus 6y ago
I'm an experienced JVM developer (mainly Java & Scala) and I had to accept a freelancing project in which one administration component was written in Laravel, a PHP framework. To be honest, the codebase was pretty clean, I could easily understand what's going on, I've used phpStorm as my IDE since I'm used to the feeling of Jetbrains tools. Managed to hack and do the changes in just one week without any prior PHP knowledge.
Would I build something new with PHP? Now, I wouldn't. It is not that bad as a language to hack on Wordpress or small websites with Laravel but beside that, it is hard not to choose JVM or Node as platforms for your future projects.
Maybe a PHP implementation built on GraalVM will enable PHP to call into JVM libraries. GC and other things will be provided for free, though I think it will be some work since the majority of PHP is native code and its syntax is quite messy.
- qsort 6y agoAs a relatively inexperienced JVM developer I pretty much share this view. It's true that PHP isn't PHP 4 anymore, but everything else moved forward as well, Java 11 is a fine language that I have few complaints about. Since you mentioned GraalVM, I'm also pretty excited about the Graal nodejs runtime. I'm a fan of using JS/TS for quick projects, and unifying the runtime would be huge, I hope it will continue to be supported.
- sroussey 6y agoPHP doesn’t need GC, unless you have some long running process which is generally quite rare.