Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jnicklas
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
jnicklas
15y ago
If you move most of the application client side, you could use something like jsdom to test it. That's obviously not going to get you the same level of confidence that a full stack test in a real browser would though. Maybe a combination of
2.
▲
by
jnicklas
15y ago
1) I don't really see how it introduces any abstractions. The only thing we're doing is moving where event bindings are declared from the controller (or Backbone View) to the template. Other than that it's really pretty much the same. 4) I
3.
▲
by
jnicklas
15y ago
1) Smalltalk 80 style design The advantage is that the controller knows nothing about the DOM, so it is usable and testable without the DOM. And while I agree that it's a single line to add a binding, that quickly becomes a single line for
4.
▲
by
jnicklas
15y ago
That's a very cool framework, I hadn't seen it. Thanks for the tip. Feels like they have a lot of similar ideas to mine. Not really sure what Serenade has to do with CoffeeScript though?
5.
▲
by
jnicklas
15y ago
You can use Serenade pretty much as a static template engine if you want to. It's quite small (9k), so not a huge dependency.
6.
▲
by
jnicklas
15y ago
It can, kind of. Though you will probably have to re-render on the client to get all the events to attach. See the section about express.js support at the bottom of the README (I haven't pushed it to npm yet, so you won't be able to install
7.
▲
by
jnicklas
15y ago
It doesn't really push towards classes and classical inheritance, you're free to use any object with the framework that you with, which is not the case with most other frameworks that I've seen. It does use them internally, but that's only
8.
▲
by
jnicklas
15y ago
Thank you :) Glad you like it!
9.
▲
by
jnicklas
15y ago
I actually wrote a todo list app as an example ( https://github.com/elabs/serenade_todomvc ), I'm going to go hide now ;)
10.
▲
by
jnicklas
15y ago
I went kind of the opposite way and rewrote the initial example in JavaScript. I'd really prefer if people didn't get hung up on the fact that it's CoffeeScript, I don't think it should matter too much to people using the framework what lan
11.
▲
by
jnicklas
15y ago
I really love CoffeeScript. I hope you don't mind I… borrowed… some parts. It was hugely helpful, especially since I'm quite new to writing parsers and lexers. I put attribution in the README and the license file, in case you missed it.
12.
▲
by
jnicklas
18y ago
I am not entirely sure what you mean, but adding or removing methods from Ruby classes is extremely simple and there are a number of hooks in place that allow you to play with the class definition on inheritance. But here is another example