Re:Ask HN: How do you begin the process of developing a web ...
by tptacek on Sunday May 23, 2010 @07:03PM
(#1373285)
Sorry. I meant // as a line break. %whatever is a Haml tag that generates <whatever>. - @foos.each do |foo| is "foreach foo in @foos".
I don't find Ajax brittle, I find my own designs when I set out from the beginning to make everything Ajaxy brittle. Brittle here meaning:
* Navigation is always funky
* I wind up with tangled messes of jQ callbacks
* I wind up with Sinatra methods that are laser-targeted for specific jQ interactions instead of general things I can use in multiple ways
Generally, the app just doesn't work as well. I think that's because it's slightly but deceptively harder to get a site driven mostly with JS working as well as a plain-ol-webapp.
Also, could you explain (I think it's css/ruby/REST/psuedo code for an unordered list comprised of the foos - but how is that for a feature?):