Hacker Newsnew | past | comments | ask | show | jobs | submit | jlyke's commentslogin

Replying late. This is also one of the best ways to ensure that you are eating better food. In my experience, it is much easier to cook a dinner with good food than to buy one. If I have leftovers of good food, I can turn one decision to eat better into two the next day.


Excellent read, thanks for sharing.


I totally agree. Thanks for sharing.


Great advice. Other examples include extra standing (desk?), biking to work, and taking the stairs.


1) Open Firefox, browse to http://www.ubuntu.com/tour/ 2) Open another Firefox. Isn't happy about browsing to http://www.ubuntu.com/tour/ :(

Looking forward to installing and checking out the improvements!


If you google "ubuntu tour" with the fake firefox, you can get there, and then go deeper and deeper within each instance.

Well I thought it was fun anyway.


I'm not sure that we used the same method to get to this part, but I too ran into this output.

Interested in seeing how my solution was off, and if I was thinking about it the wrong way. Any luck?


Continuation Passing SPOILERS:

f_success = function() { gC(success, failure); }; f_failure = function() { gC(failure, failure); }; fC(f_success, f_failure);

For me, the trick here was to forget about the words "success" and "failure" because they have too much semantics embedded. I had to re-word the problem like this: call f3, if first argument of f1 and f2 are called. All other roads lead to f4. Both f1 and f2 has to be called in the chain no matter what.

Also, this is the first time I've seen such a pattern. Is there a practical application of such pattern? I think it's ok to have a single level of closure to continue execution, but if it goes to that many levels like the sample problem, it'll be a nightmare to maintain for people who have not seen your code yet.


Contact info?


aaron@academicworks.com


This technique reminds me of Lambda Lifting: http://en.wikipedia.org/wiki/Lambda_lifting


Do you have any better examples? I'd like to learn more about where this would fit in a real app.


Sure ... some of these have source code available, and some do not.

http://documentcloud.github.com/backbone/#examples

In particular the TileMill example (launched yesterday) is a really sophisticated map editing application, with annotated source code available, here:

http://tilemill.com/docs/models.html

(Use "Jump To", at the top right, to get around)

If you'd like to get your feet wet, and play around with models a little, try visiting http://www.documentcloud.org/public

Pop open a JS console, and try...

    Documents.length

    Documents.first().set({title: "Changing the Title Syncs the View"})

    Documents.first().set({description: "Lorem Ipsum Dolor Sit Amet"})
... then click on "Annotated Documents", at the top left, go back to the console, and try:

    Documents.first().notes.fetch()

    Documents.first().notes.first().set({content: "Writing a Note."})
You get the idea.


I'd like to second the architecture side of this question. I'd love to see more on why and where a particular technology fits into web apps. Recently there has been a lot of popularity with Node.js, Backbone.js, and even Knockout.js. How and Where do these fit? What design decisions were made to achieve this?


That was an interesting read. So, any alumni still in Austin working on a start-up?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: