Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can’t build websites with Java


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.


> 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.


I for one am happy I don't have to manually write database persistence layers any more.


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.


Laravel was inspired by ASP MVC, which itself took inspiration from Spring, not Ruby on Rails.


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


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?


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: