Live data from Hacker News

Ask HN: Any web startups using Java?

news.ycombinator.com

161–164 of 164 posts

Re: Ask HN: Any web startups using Java?

#162
post #76

I'll give you my take on this as a Java programmer of 10+ years experience. The problem you will have with Java in a startup is that Java's frameworks are by and large built for "enterprises". I put that in quotes because in one sense it doesn't really mean anything. In another, it's more of an idea of what governments and large companies want. Even when using Spring (which, in my opinion, is a "must have" for pretty…

Weirdly some in the PHP world have tried to mimic Java's deep layering with these horrific (imho) MVC frameworks that (again imho) simply combine the worst of both worlds. Dynamic class loading, bootstrappers, magic (and sometimes unpredictable) file loading, enforced directory structures and so on are just the wrong approach most of the time.

Sorry, I have to call you out on this. In your list above PHP is really interchangable with Python, Ruby, etc (the scripted languages). The MVC architecture you mention above perfectly describes Rails. So I have to ask, are you seriously saying that Rails is horrific? Seriously?

Re: Ask HN: Any web startups using Java?

#163
post #143

Earlier quoted context omitted.

I think one major difference/hurdle of java web development and deployment is the fact that you HAVE to setup something like nginx in front of the app server or else you're working on port 8080 for everything. Or you have to know how to configure the app server for port 80 directly and mitigate the security concerns of doing so. By comparison, apache defaults to port 80, no tricks required.

changing the port of an app/web server z no big deal..if u really wanna deploy something.

Actually it isn't trivial for java webservers. Only root processes are allowed to use a port <=1024 by default, so you can't just change a config line in tomcat/jboss/jetty and have it work automatically. You would have to then start/run the app as root, which is a Bad Idea, or mess with getting the OS to allow you to use a lower port. The safest solution then is to have something in front that is allowed on port 80 and setup forwarding to 8080.

Re: Ask HN: Any web startups using Java?

#164

Earlier quoted context omitted.

I think one major difference/hurdle of java web development and deployment is the fact that you HAVE to setup something like nginx in front of the app server or else you're working on port 8080 for everything. Or you have to know how to configure the app server for port 80 directly and mitigate the security concerns of doing so. By comparison, apache defaults to port 80, no tricks required.

If one is unable to change the port from its default, one doesn't have any business in developing web apps in any technology. Just sayin'.

See my post below: a non-priv'd user can't start the java app server on a port sub-1024 unless you mess with the OS to allow it. I just double checked with my jetty install and I got a "java.net.SocketException: Permission denied".
Post reply on HN