Does it make sense to try using both Clojure and Rails in web app, Rails for UI and Clojure for more sophisticated business logic?
Clojure-powered Startups
21–30 of 62 posts
Re: Clojure-powered Startups
#22Does it make sense to try using both Clojure and Rails in web app, Rails for UI and Clojure for more sophisticated business logic?
It should interact pretty well with JRuby on Rails, but I'm not sure you would get any benefit from using rails over a Clojure web framework like Noir.
The Clojure mentality so far has eschewed all encompassing frameworks like Rails in favor of smaller interfitting libraries anyway.
Re: Clojure-powered Startups
#23While I really like the idea of writing HTML in Clojure, I like even more the idea of being able to have a HTML/CSS/etc expert, who doesn't necessarily know Clojure, be able to maintain the HTML instead of me.
Has anyone found what they think is a good solution?
Re: Clojure-powered Startups
#24Hotelicopter also runs on Clojure. And I would recommend Colin Steele's description of his decisions as CTO, as he took the codebase away from PHP, first to Ruby and then to Clojure. The bit about the failures of Ruby are (in my opinion) the most interesting. Basically, it was too much work to get Ruby to go fast enough, and their problems were solved by using Agents in Clojure. This I think is the key bit of the sto…
From this description it seems that Erlang/OTP would be even better choice than Clojure: we literally pack million of concurrect users into 1 high memory AWS instance. Though Erlang not as modern or elegant as Clojure, but there is also LFE and Joxa.
Re: Clojure-powered Startups
#25Earlier quoted context omitted.
It should interact pretty well with JRuby on Rails, but I'm not sure you would get any benefit from using rails over a Clojure web framework like Noir.
I had a look at it but it's pretty young. I would prefer more mature framework.
I began my journey into Clojure about a month ago (after poking at it since last Sept) by diving into the "Clojure Programming" book recently published by O'Reilly. After finishing the book, I reached for Noir to fill my web-dev needs, as the idea of a "batteries included" framework appealed to me. But I ended up dropping Noir and adopting the approach explained in the book, i.e. loosely coupling the modules mentioned above.
Noir itself is built from some of those same modules, and it seems like a fine open source project, but I've found that I'm better off connecting the "lego blocks" together manually -- it's not a complex exercise and gives you a lot of freedom to experiment, learn and fine tune.
Re: Clojure-powered Startups
#26I'm curious about how startups using Clojure are generating their HTML. Are you guys doing it in Clojure code (e.g. Noir) or are you using some sort of HTML templating support (e.g. JSP)? While I really like the idea of writing HTML in Clojure, I like even more the idea of being able to have a HTML/CSS/etc expert, who doesn't necessarily know Clojure, be able to maintain the HTML instead of me. Has anyone found what…
Check out Enlive, it solves exactly this problem. HTML/CSS is separate from Clojure code and you fill out templates and stuff via CSS style selectors. It's sweet.
https://github.com/swannodette/enlive-tutorial
https://github.com/cgrand/enlive
Btw I think you can use Enlive with Noir, even though some of the examples from Noir use Hiccup, it's not a requirement.
Re: Clojure-powered Startups
#27I'm curious about how startups using Clojure are generating their HTML. Are you guys doing it in Clojure code (e.g. Noir) or are you using some sort of HTML templating support (e.g. JSP)? While I really like the idea of writing HTML in Clojure, I like even more the idea of being able to have a HTML/CSS/etc expert, who doesn't necessarily know Clojure, be able to maintain the HTML instead of me. Has anyone found what…
Re: Clojure-powered Startups
#28Large junk of Polish startup Fablo (fablo.pl, e-commerce instant search engine based on natural language processing) is written in Clojure [1]. [1] http://jan.rychter.com/blog/2010/7/5/clojure-w-fablo.html
Fablo is actually one of the most interesting startups on the Polish scene regarding technological challenges involved.
Re: Clojure-powered Startups
#29There are two ways (and of course, the paths in between) you can run your startup 1 - You can go for the most popular languages: VB.NET, PHP, etc. Very easy to find people, lots of plugins, lots of support. This may be the way to go if you want something simple done in a small budget 2 - You can go for the niche languages: Haskell, Clojure, Go. that's more or less the "hipster hacker" way of doing things. Very diffic…
Yup Facebook and Yahoo are PHP. Google/Amazon/eBay/Walmart.com are all primarily a combination of Java and C++.
Re: Clojure-powered Startups
#30There are two ways (and of course, the paths in between) you can run your startup 1 - You can go for the most popular languages: VB.NET, PHP, etc. Very easy to find people, lots of plugins, lots of support. This may be the way to go if you want something simple done in a small budget 2 - You can go for the niche languages: Haskell, Clojure, Go. that's more or less the "hipster hacker" way of doing things. Very diffic…