After looking at the embedded comments used by RIFE it seemed time to revisit Ruby on Rails. While looking at an example in the PragProg 2nd Ed. I was struck that what I was looking at would be easier in Curl.
Curl has both anonymous procedures and macros so stands as a strong functional language in any comparison to JavaScript, JRuby or Groovy. Smalltalk has blocks.
But instead of getting this blog note written, I have been messing about with CLISP and the question of just what macros offer. Well, in Smalltalk they would offer operators with more than 2 characters so we could have <=> instead of just <= or => and such. Or ;-)
But I only wanted to show how a few macros can make a Curl web page so nice and clean and readable compared to the latest thing on rails. A sort of pirouette of Curl. But things got macro out of control ...
And Controllers? Well, in Curl they help with animation or represent devices that have rotations, such as joysticks. Oh - Curl comes with a Quaternion class for rotations in 3D.
So when is a web content language out of control? When its comments are used to control its content? (those aren't comments; those are annotations - this a concordance, not a document ...)
Everything we were taught about separation of presentation from X is wrong when it comes to a rich web GUI. And an object is not a row in a relational database (there, I dared to say it ..)
In the early days of television they did not know what to call those who were watching the action as it happened on those funny tubes in restautants and bars. They became 'viewers' but we talk of 'watching TV'. The View in MVC is a bit like that: we pull back the 'model' a ways and achieve some degree of decoupling from any data store. But a 'personalized and dynamic view' is not the 'view' of early MVC. It likely required something like viewer-specific persistent data. Make that a 'personalized and dynamic view of a collaborative process or activity with published tasks' and the closest thing that I know today is Croquet.
Friday, May 8, 2009
Rails, Grails and Curl
Labels:
anonymous function,
blocks,
closures,
Curl,
functions,
Grails,
Javascript,
macros,
Rails,
Smalltalk
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment