Re:PHP 8: Before and After
by jonwinstanley on Friday October 23, 2020 @03:14AM
(#24866795)
You can’t build websites with Java
[ Parent
| on HN ]
Spring Boot and https://micronaut.io/ gets my job done. Thank you. Yes, I build web apps with Java so I don't have to waste my time with php. Life's too short. And I am old enough to remember the abomination Joomla was back in early 2000's and how horrible php was back then when my clients wanted to have their "sites" done in Joomla with custom plugins.
Spring Boot code is probably going to be less maintainable than PHP though. Added a new dependency? Congratulations, now your application behaves completely differently.
How so? That sounds weird.
It scans the classpath and silently instantiates whatever it finds. E.g. you're depending on the mongodb client drivers? Congratulations, your spring context suddenly contains connections to mongodb servers. Upgrade one of your dependencies and the new version has a dependency on tomcat? Congratulations, your spring boot application silently starts running a webserver.
annotation programming I think.
Re:PHP 8: Before and After
by throw_m239339 on Friday October 23, 2020 @03:38AM
(#24866932)
> You can’t build websites with Java
The (popular) horrors that are Symfony, Laravel, Doctrine and co were all inspired by Java Web frameworks and ORM.
Re:PHP 8: Before and After
by mschuster91 on Friday October 23, 2020 @04:07AM
(#24867084)
I for one am happy I don't have to manually write database persistence layers any more.
Re:PHP 8: Before and After
by TheDoctor0 on Friday October 23, 2020 @04:12AM
(#24867102)
Spring was first MVC framework, but Laravel in PHP and Django in Python were inspired by Ruby on Rails.
Django wasn’t inspired by Ruby on Rails. They are roughly the same age, but Django was made public a little later than Rails was.
For first MVC, you didn't mean Struts rather than Spring? Even then I have a vague feeling there were earlier ones.
Re:PHP 8: Before and After
by throw_m239339 on Friday October 23, 2020 @04:28AM
(#24867189)
Laravel was inspired by ASP MVC, which itself took inspiration from Spring, not Ruby on Rails.
Re:PHP 8: Before and After
by formerly_proven on Friday October 23, 2020 @03:19AM
(#24866828)
You better go tell all those enterprisey Java websites they can't exist, they might just pop out of existence.
They might as well not exist
Re:PHP 8: Before and After
by jonwinstanley on Friday October 23, 2020 @03:37AM
(#24866923)
Haha
You can, but high performance websites are a challenge. Specially with spring
Isn't Gmail built with Java and GWT? or was untill very recently?
Re:PHP 8: Before and After
by jonwinstanley on Friday October 23, 2020 @03:38AM
(#24866933)
Sure, you can build a website with anything really.
I just bored of the hating on PHP when it continues to fit the web so well and some enormous percentage of sites are built in PHP.