The author here. This project was not ready for public release or review. Examples and docs need to be created etc. Should have been behind a firewall. Thanks for all your feedback.
=) well, live it up and go ahead and use this as a platform for your ideas – I'm sure many would like to hear about it/your plans for it in greater detail, if you're so inclined.
I can't get passed the way the code is formatted.
Please just write it the way people normally write JavaScript:
$$ ({
home: {
route: {
defaultOnly : true
}
}
})
Or in CoffeeScript:
$$
home:
route:
defaultOnly: true
Other than that, this is sort of interesting. Reminds me of Couch Apps, which I could never get the hang of and eventually had to stop messing with. Everything is declared according to a specific structure, but its hard to figure out what structure you are supposed to use for a given task. High learning curve and difficult translation from imperative thought to this type of patterned declaration.
Geez, a lot of jerks on HN today. jv22222, thanks for making this. You're obviously putting a lot of work into it. I can't say that it particularly interests me at this point, but I'm glad that you and people like you work hard on things and open-source them.
The core of it: dealing with the DOM kind of sucks, and as much as keeping 3 main file types around (.html, .css, .js) for web development isn't too much of a pain, the fact that HTML sits between everything muddies the water quite a bit.
Sure, $$ needs some more love and a community to pick it up and run, but kudos to you for getting it out there and having a solid philosophy (tiny robust kernel, super extensible, consistent docs). And yes, I'd write the code more compactly (the de facto js notation mentioned in another comment), but whatever, that's easy to translate.
I say all this because our team is working on an app ( http://luunr.com ) and toggling back and forth between HTML and JS is borderline silly (we looked at things like Angular and couldn't get behind them, feels to rigid and baked in my book). Would have loved to experiment with this a few weeks ago when we started.
Keep up the good fight and continue developing $$!
JS Devs - I think if you can open up your minds and take a look at what is actually a new and interesting approach to a JS framework, you'll be glad you did. Take a look at the examples. There's definitely some potential with this one.
I'm curious as to why numerous JS frameworks create DOM structure via string concatenation, or by putting markup in script tags. That's an automatic fail, in my books. No matter how interesting or useful a JS framework looks, I just can't get past the need to mix markup and code.
The script-markup mixture used by DoubleDollar or Backbone is really just a necessary quirk to achieve templating functionality. I haven't seen it done better honestly.
Try it, you're refusal to "get past the need to mix markup and code" is restricting you from some pretty helpful functionality if you build JS heavy web apps!
$$.js:28Uncaught SyntaxError: Unexpected token default
$$.(hooks).js:11Uncaught ReferenceError: $$ is not defined
$$.(core).js:246Uncaught SyntaxError: Unexpected token delete
$$.(router).js:1Uncaught ReferenceError: $$ is not defined
$$.(bindings).js:23Uncaught SyntaxError: Unexpected token default
$$.content.js:1Uncaught ReferenceError: $$ is not defined
$$.home.js:9Uncaught SyntaxError: Unexpected token default
$$._bootstrap.js:26Uncaught ReferenceError: $$ is not defined
Uncaught LiveEdit Failure: Failed to compile new version of script: SyntaxError: Unexpected token :
[+] [-] jv22222|13 years ago|reply
[+] [-] nateabele|13 years ago|reply
Why would one choose something like this over Angular or Ember?
[+] [-] incongruity|13 years ago|reply
[+] [-] ilaksh|13 years ago|reply
[+] [-] lukifer|13 years ago|reply
[+] [-] mattacular|13 years ago|reply
[deleted]
[+] [-] fooandbarify|13 years ago|reply
[+] [-] unknown|13 years ago|reply
[deleted]
[+] [-] zacharyvoase|13 years ago|reply
[+] [-] reitzensteinm|13 years ago|reply
He spent about five minutes on the latest show explaining it... but frankly I still have no clue what it is.
[+] [-] lukifer|13 years ago|reply
[+] [-] redidas|13 years ago|reply
[+] [-] akumpf|13 years ago|reply
The core of it: dealing with the DOM kind of sucks, and as much as keeping 3 main file types around (.html, .css, .js) for web development isn't too much of a pain, the fact that HTML sits between everything muddies the water quite a bit.
Sure, $$ needs some more love and a community to pick it up and run, but kudos to you for getting it out there and having a solid philosophy (tiny robust kernel, super extensible, consistent docs). And yes, I'd write the code more compactly (the de facto js notation mentioned in another comment), but whatever, that's easy to translate.
I say all this because our team is working on an app ( http://luunr.com ) and toggling back and forth between HTML and JS is borderline silly (we looked at things like Angular and couldn't get behind them, feels to rigid and baked in my book). Would have loved to experiment with this a few weeks ago when we started.
Keep up the good fight and continue developing $$!
[+] [-] duiker101|13 years ago|reply
[+] [-] mamcx|13 years ago|reply
[+] [-] johnpolacek|13 years ago|reply
[+] [-] incongruity|13 years ago|reply
The above seems awfully close to a dogmatic sort of "if you don't get it, the fault is with you" kind of statement.
[+] [-] jschrf|13 years ago|reply
[+] [-] bballbackus|13 years ago|reply
Try it, you're refusal to "get past the need to mix markup and code" is restricting you from some pretty helpful functionality if you build JS heavy web apps!
[+] [-] mistercow|13 years ago|reply
Probably because of this: http://jsperf.com/string-concatenation-vs-the-dom
[+] [-] ewolf|13 years ago|reply
[+] [-] ehutch79|13 years ago|reply
[+] [-] columbo|13 years ago|reply
[+] [-] arturadib|13 years ago|reply
http://agilityjs.com
[+] [-] eclipxe|13 years ago|reply
[+] [-] pfraze|13 years ago|reply
[+] [-] vidarh|13 years ago|reply
A comparison of what it offers compared to at least a couple of the major libraries offering those things would've been useful...
[+] [-] DanHulton|13 years ago|reply
[+] [-] falava|13 years ago|reply
http://doubledollarjs.com/#convention
http://en.wikipedia.org/wiki/Indent_style#Allman_style
[+] [-] hk__2|13 years ago|reply
[+] [-] yahelc|13 years ago|reply
They're over-written by a page if that page defines that variable globally in some way.
[+] [-] michaelbuckbee|13 years ago|reply
[+] [-] grandalf|13 years ago|reply
[+] [-] pacomerh|13 years ago|reply
[+] [-] Zelphyr|13 years ago|reply
[+] [-] Dirlewanger|13 years ago|reply