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

Setting up any web stack is a pain in the ass and probably just as long of a tutorial. For example, write out a tutorial which goes from base Ubuntu install to "hello world" on Rails, I bet it's just as long or longer. I suppose it depends on how much detail you want to include. There are just more "one click" install options for other stacks.


>>Setting up any web stack is a pain in the ass and probably just as long of a tutorial.

I beg to differ.

http://bottlepy.org/docs/dev/tutorial.html#quickstart-hello-...

http://howtonode.org/hello-node

(In fairness, I do note that the above examples don't actually have a <button> element to click on before showing helloworld like the Java example)


How about:

    apt-get install php5 apache
    echo "<html><body>Hello World</body></html>" > /var/www/index.php
The end.


While amusing, I don't think that's a fair comparison as it's not using any framework or persistence features.

A Java app can be written similarly:

    apt-get install tomcat7
    echo "<html><body>Hello World</body></html>" > /var/lib/tomcat7/webapps/ROOT/index.jsp
(This is untested as I don't have an Ubuntu box at hand – the locations depend on your distro, as with Apache installs.)

There actually are sane people in the Java community – underneath the "Java EE" overcomplexity there are some regular old Java web frameworks that are pretty simple and robust. Unfortunately they can be easily overlooked, as the EE community is loud.


Java is the king of boilerplate, but this PHP snippet (in fact, not even PHP, just HTML) is not equivalent to the tutorial in question. The IntelliJ post covers things like, say, HTML templating or built-in debugger for your web app, which is a bit more than a bash two-liner in the PHP stack as well.


    apt-get install php5
    echo "<html><body>Hello World</body></html>" > /var/www/index.php
    php -S 127.0.0.1:8080 /var/www/


And are you going to use this process for development work? I doubt that.

Plus, in your example, at the end you're stuck with PHP. I'd rather be stuck with Java EE :)


I like how you upped snark at one language with snark at another ;)


It seemed fitting :))


let's go simpler (and imagine logic coded in vanilla js if this project ever goes bigger :) :

  apt-get install apache
  echo "<html><body>Hello World</body></html>" > /var/www/index.html




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: