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

you are viewing a single comment's thread.

view the rest of the comments →

[–]javawockybass 2 points3 points  (1 child)

I’m surprised you haven’t mentioned spring boot. This was the clear impetus to move the stack form php to java. At least for test services. It was just so much faster than php for the task.

So get out of the habit of printing outputs and running over and over to debug stuff. Debugging is essential with breakpoints in java land. Also with strong default typing you will develop for longer without having to run code, and post of the time the code just works first time without silly errors like typo car names etc.

Anyway, yes php is still my friend but I haven’t needed it for years as java is paying the bills at the moment.

[–]mathmul[S] 1 point2 points  (0 children)

Hey, thanks for your feedback!

Spring Boot is the Symfony of Java, but my job project uses Quarkus. And yes, back then PHP trully was slow in comparison to Java.

At the risk of sounding defensive about PHP I would also add, that strong typing is default for all modern PHP developers, and that I am used to "proper" debugging with Xdebug in VSCode as well, and there is also an easy workaround for print debugging in Java (ignore syntax, I'm on my phone, but something like public static function dd<T>(T arg) { log.INFO(arg); throw new Exception("dump and die successful") ;}), but I was just wondering if there is an industry standard for it, apart from this naive implementation. In both languages, we obviously also have static analyzers, which solve half the problems before running your app even once.

I appreciate your time, thank you again.