News for hackers. Stuff that matters.
Re:What if cucumber and jQuery had a baby? by asnyder on Friday June 17, 2011 @07:57PM (#2667527)
Reminds me of Hypertalk and Metatalk. I personally don't like such verbose syntax, but many do. It's usually used in marketing languages to non-developer professionals, however, in the end, I feel it becomes way more verbose and complicated than if you used the conventional concise approach.

I used to joke that when using one of these scripting languages you would have to start your statements with "please" and end with "thank you".

Re:What if cucumber and jQuery had a baby? by paulca on Friday June 17, 2011 @09:28PM (#2667679)
It may turn out to be too verbose, but in terms of my motivation, and conciseness vs. verbosity, the goal was to achieve:

1) conciseness of expression of intent ... I feel that this is the most important thing to get accross 2) conciseness of implementation logic: having chainable condition statements would hopefully lose a lot of if...else... conditionals within implementation logic 3) conciseness of conceptual mapping of the bound element to its name, eg. 'The "New Post" link" vs. "a#new-post" ...

Again, this is all just an argument from motivation rather than experience. It may turn out that this was a really, really bad idea.

Re:What if cucumber and jQuery had a baby? by paulca on Friday June 17, 2011 @09:30PM (#2667681)
I guess a follow on point is that unlike Hypertalk where the implementation is written in a DSL, whenever.js is just a way of _describing_ an implementation.

Everything else is plain javascript, and you can use whatever language features you want within the definition functions.