News for hackers. Stuff that matters.
Re:PHP 8: Before and After by jonwinstanley on Friday October 23, 2020 @03:14AM (#24866795)
You can’t build websites with Java
Re:PHP 8: Before and After by JekLod10 on Friday October 23, 2020 @03:47AM (#24866985)
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.
Re:PHP 8: Before and After by lmm on Friday October 23, 2020 @04:32AM (#24867205)
Spring Boot code is probably going to be less maintainable than PHP though. Added a new dependency? Congratulations, now your application behaves completely differently.
Re:PHP 8: Before and After by oblio on Friday October 23, 2020 @04:38AM (#24867228)
How so? That sounds weird.
Re:PHP 8: Before and After by lmm on Friday October 23, 2020 @11:24PM (#24876702)
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.
Re:PHP 8: Before and After by tester34 on Friday October 23, 2020 @05:00AM (#24867340)
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.
Re:PHP 8: Before and After by JimDabell on Friday October 23, 2020 @05:04AM (#24867368)
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.
Re:PHP 8: Before and After by antod on Friday October 23, 2020 @07:08AM (#24868196)
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.
Re:PHP 8: Before and After by coldtea on Friday October 23, 2020 @04:41AM (#24867245)
They might as well not exist
Re:PHP 8: Before and After by jonwinstanley on Friday October 23, 2020 @03:37AM (#24866923)
Haha
Re:PHP 8: Before and After by holoduke on Friday October 23, 2020 @04:32AM (#24867206)
You can, but high performance websites are a challenge. Specially with spring
Re:PHP 8: Before and After by gonzo41 on Friday October 23, 2020 @03:26AM (#24866861)
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.