Live data from Hacker News

Developing and Deploying a Simple Clojure Web Application

mmcgrana.github.com

1–10 of 41 posts

Re: Developing and Deploying a Simple Clojure Web Application

#3
This is a great tutorial. Over the past few months I've been struggling with getting a "barebones" app up and running with Clojure. Leiningen has really come into its own in 2010 and tutorials like this will be great for people who need a basic template in order to bootstrap them into the whole experience.

Re: Developing and Deploying a Simple Clojure Web Application

#4
Another nice example can be found in the last "Functional Web" column on IEEE Internet Computing by Steve Vinosky: http://steve.vinoski.net/pdf/IC-Getting_Started_with_Google_...

In the July/August 2010 column, Getting Started with Google App Engine and Clojure, guest columnist Aaron Bedra shows how to use Clojure, a relatively new but robust Lisp implementation on the Java Virtual Machine, create and deploy an application using the Compojure web framework on the Google App Engine platform.

Re: Developing and Deploying a Simple Clojure Web Application

#6

If this is an easy way to create a web app that adds two numbers on Clojure, I'd say Clojure is not ready for web development yet.

Huh. 45 LOC for templating, routing, and form processing and you don't need to configure a different webserver since jetty is production quality. Do you have links to something that takes less effort than what is being illustrated here that can be deployed immediately into production and perform well?

Re: Developing and Deploying a Simple Clojure Web Application

#7

If this is an easy way to create a web app that adds two numbers on Clojure, I'd say Clojure is not ready for web development yet.

Huh. 45 LOC for templating, routing, and form processing and you don't need to configure a different webserver since jetty is production quality. Do you have links to something that takes less effort than what is being illustrated here that can be deployed immediately into production and perform well?

Agreed. This strikes me as a more robust walk-through than traditional Hello World-esque tutorials; as such, there is a little more to do than you'd expect. I'd rather have the details provided here, and I suspect many other hackers would too.

Re: Developing and Deploying a Simple Clojure Web Application

#8

If this is an easy way to create a web app that adds two numbers on Clojure, I'd say Clojure is not ready for web development yet.

Actually, it's an easy way to: - add two numbers - build the project with dependencies - display stack traces - deliver static files - generate html from code - validate user input - host with a web server - reload the web server during development - handle url routing - log requests - create custom middleware - deploy to EC2

You may have glossed over some of the details.

Re: Developing and Deploying a Simple Clojure Web Application

#9

If this is an easy way to create a web app that adds two numbers on Clojure, I'd say Clojure is not ready for web development yet.

Huh. 45 LOC for templating, routing, and form processing and you don't need to configure a different webserver since jetty is production quality. Do you have links to something that takes less effort than what is being illustrated here that can be deployed immediately into production and perform well?

Are you serious? 45 LOC is not a good metric btw, why are you omitting all that boilerplate configuration. Any reasonable tutorial on PHP/python/RoR would build something more sophisticated more concisely. Here is a python tutorial: http://www.turbogears.org/2.0/docs/main/ToscaWidgets/forms.h...

Re: Developing and Deploying a Simple Clojure Web Application

#10

If this is an easy way to create a web app that adds two numbers on Clojure, I'd say Clojure is not ready for web development yet.

Huh. 45 LOC for templating, routing, and form processing and you don't need to configure a different webserver since jetty is production quality. Do you have links to something that takes less effort than what is being illustrated here that can be deployed immediately into production and perform well?

Not to mention: middlewares, logging, stack traces, exception handling, testing, production/dev environments, e.t.c. in a similarly succinct manner.
Post reply on HN