Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jimmydo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
Django on Heroku running with Celery
(gist.github.com)
83 points
by
jimmydo
15y ago
|
40 comments
2.
▲
by
jimmydo
16y ago
It doesn't seem like they currently do this, but it would be great if Amazon applied file de-duplication (like Dropbox) to at least music files. If I'm trying to upload a song that Amazon already has on its own servers, it should just use t
3.
▲
by
jimmydo
16y ago
That was a really interesting talk--thanks for the link! Something that initially confused me was that Eich's use of the term "prototypal" (a pattern for implementing class-based inheritance) was different from Douglas Crockford's use of it
4.
▲
by
jimmydo
16y ago
The mostly likely reason is probably familiarity. Most languages use the 'new' operator to create new objects, so it seems natural to follow the same pattern when creating a JS API that will likely be consumed by people who come from other
5.
▲
by
jimmydo
16y ago
You're right! Fixed. Thanks for letting me know.
6.
▲
by
jimmydo
16y ago
Yup, I agree. I recently submitted a pull request for changes I made to expose a primitive Base class in Backbone: https://github.com/documentcloud/backbone/pull/276
7.
▲
by
jimmydo
16y ago
That's really what I liked the most about the Backbone implementation. It stays very close to the standard JS pattern--essentially mirroring what someone would do if they wanted to setup the prototype chain and attach methods manually. It a
8.
▲
by
jimmydo
16y ago
CoffeeScript does have really nice syntax for OOP, but I think JavaScript deserves some lovin' too. Well-written JavaScript (such as Backbone) looks pretty beautiful. Another plus is that new devs (if you have to worry about that sort of th
9.
▲
Simple JavaScript Inheritance with Backbone
(blog.usefunnel.com)
47 points
by
jimmydo
16y ago
|
18 comments