TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

DoubleDollarJS.com

76 点作者 DaNmarner超过 12 年前

18 条评论

jv22222超过 12 年前
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.
评论 #4608384 未加载
评论 #4609106 未加载
ilaksh超过 12 年前
I can't get passed the way the code is formatted. Please just write it the way people normally write JavaScript:<p><pre><code> $$ ({ home: { route: { defaultOnly : true } } })​ </code></pre> Or in CoffeeScript:<p><pre><code> $$ home: route: defaultOnly: true </code></pre> 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.
评论 #4609742 未加载
评论 #4608555 未加载
fooandbarify超过 12 年前
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.
评论 #4609036 未加载
zacharyvoase超过 12 年前
Is this a parody? I'm genuinely having trouble discerning.
评论 #4607887 未加载
评论 #4609722 未加载
评论 #4608291 未加载
akumpf超过 12 年前
It's awesome. Really, I love it.<p>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.<p>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.<p>I say all this because our team is working on an app ( <a href="http://luunr.com" rel="nofollow">http://luunr.com</a> ) 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.<p>Keep up the good fight and continue developing $$!
duiker101超过 12 年前
Scrolling the homepage gave me a strong WTF feeling. This looks really really confusing.
评论 #4608272 未加载
johnpolacek超过 12 年前
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.
评论 #4608006 未加载
jschrf超过 12 年前
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.
评论 #4609403 未加载
评论 #4609758 未加载
ewolf超过 12 年前
That's one awful lot of parantheses for a hello world.
评论 #4607711 未加载
columbo超过 12 年前
The entire thing doesn't work in Linux/Chromium<p><pre><code> $$.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 :</code></pre>
arturadib超过 12 年前
Looks awfully familiar:<p><a href="http://agilityjs.com" rel="nofollow">http://agilityjs.com</a>
评论 #4608332 未加载
pfraze超过 12 年前
I'm having trouble understanding what the framework offers. Though I appreciate seeing code quickly, I'd like a better overview of what it does.
评论 #4607849 未加载
DanHulton超过 12 年前
I can't imagine writing in that, just... so much whitespace.
评论 #4607835 未加载
hk__2超过 12 年前
In Chrome/Chromium, $$() is a shortcut for document.querySelectorAll().
评论 #4609207 未加载
评论 #4610111 未加载
grandalf超过 12 年前
While the visual style of the code may be perplexing to most of us, I imagine it might make javascript far easier for a dyslexic person to read.
pacomerh超过 12 年前
Hm, this is a very particular way of working with Javascript. The formatting is very strange.
Zelphyr超过 12 年前
Its... I... um... Why?
Dirlewanger超过 12 年前
Another day, another ho-hum JS doo-hicky thing-a-ma-jigger...