News for hackers. Stuff that matters.
Re:Why I chose Clojure/CouchDB for a new site by asmosoinio on Wednesday February 25, 2009 @09:35AM (#494385)
Interesting idea, serving all HTML static and combining that on client side with the dynamic content using JavaScript. And having a pure JSON server. Sounds ground breaking to me, anyone know of other sites/frameworks that would work like this?
Re:Why I chose Clojure/CouchDB for a new site by timf on Wednesday February 25, 2009 @10:51AM (#494474)
"serving all HTML static and combining that on client side with the dynamic content using JavaScript"

So baked into this is lack of support for clients without javascript.

I guess I understand if this is a conscious lack of support for the many lynx/noscript/etc users out there (I'm not going to do that myself and so the architecture is not an option).

But what about search engine crawlers, hasn't javascript + search always been an issue?

Re:Why I chose Clojure/CouchDB for a new site by Zak on Wednesday February 25, 2009 @11:26AM (#494524)
I think something like this is a better fit for something more application-like and less web page with dynamic content. I suspect Google will eventually start supporting Javascript as this sort of design becomes more popular.
Re:Why I chose Clojure/CouchDB for a new site by patio11 on Wednesday February 25, 2009 @11:47AM (#494554)
I suspect Google will eventually start supporting Javascript as this sort of design becomes more popular.

The future started more than two years ago, actually. You can experimentally verify it for yourself -- my understanding is that they use a combination of heuristics and actual evaluation.

For example, putting an invisible div on your web page stuffed with keywords is usually a one way trip to smackdown city. Put an invisible div on your web page and make it visible in response to pushing a button and they will index the content much of the time. They are known to spend extra resources to make sure popular techniques do not cause their algorithms to break. (From a SEO perspective I'd suggest being one step behind the cutting edge on innovations like that. 100% JSON site? Cutting edge, probably uncrawlable. Shopping cart rendered using Prototype? Works fine.)

Re:Why I chose Clojure/CouchDB for a new site by jamesbritt on Wednesday February 25, 2009 @12:05PM (#494574)
Hoodwink.d used this idea

http://redhanded.hobix.com/-h/hoodwinkDDayOneForcingTheHostT...

And there was another framework that did essentially the same thing, using DHTML and AJAX to create the page from a blank slate. But I cannot recall the name.

Re:Why I chose Clojure/CouchDB for a new site by anr on Wednesday February 25, 2009 @09:05PM (#495278)
Apparently it is a trend with FP guys :-)

HAppS (a Haskell framework) has also advocated this:

"HAppS does not come with a server-side templating system. We prefer the pattern of developing static web pages and using AJAX to populate them with dynamic content."

http://happs.org/

Re:Why I chose Clojure/CouchDB for a new site by davidw on Wednesday February 25, 2009 @09:57AM (#494413)
No, but I've head a suspicion for a while that something like Erlang could actually be useful for doing web stuff if, instead of doing much in the way of templates (Erlang is not fun for strings, IMO), it concentrated on sending and receiving JSON.