Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tomchristie
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
151.
▲
by
tomchristie
14y ago
No not really, I wanted to say something about the attitude. I didn't think the points merited response, because it's self-evident that the blanket statement of 'the data is useless' simply isn't the case. Anyway, let me be specific: 1. I c
152.
▲
by
tomchristie
14y ago
> Github appeals to the self-improvement, tomato-timer, fitbit crowd here. What a bunch of bullshit. It's a tool. Thousands upon thousands of people use it daily because it helps them get stuff done. If you don't happen to like the way
153.
▲
by
tomchristie
14y ago
I think it works really nicely. I wouldn't necessarily treat it as a measure of productivity, but it does help give an indication of consistency and trend. I also like the idea of annotating it (perhaps that'll come as a feature sometime)
154.
▲
by
tomchristie
14y ago
I'm sure there must be other sites documenting this too, but that's a very well written and prioritized bit of documentation - nicely done. Your echo service is pretty nifty too.
155.
▲
by
tomchristie
14y ago
If using the generic CBVs you can override .get_queryset() to implement filtering just as you would with regular Django CBVs. There's also an outstanding pull req to build in support for django-filter and other filtering backends which now
156.
▲
by
tomchristie
14y ago
There's so much work has gone into REST framework 2 that it's hard to present a single definitive migration guide. Best way to get an idea of migration plan would be to work your way through the tutorial first to get an idea of how everyth
157.
▲
by
tomchristie
14y ago
It uses the client's 'Accept:' header which specifies which media types it prefers for the response (eg. 'text/html', 'application/json') Browsers will indicate that they prefer HTML, so that's what REST framework serves them.
158.
▲
by
tomchristie
14y ago
Note that there's a live version of the tutorial project available for testing here: http://restframework.herokuapp.com/
159.
▲
by
tomchristie
14y ago
Pretty trivial. I'm planning on having integration with django-oauth2-provider added any day now. Here's the outstanding ticket for OAuth: https://github.com/tomchristie/django-rest-framework/issues/... There's a link to a gist on there
160.
▲
by
tomchristie
14y ago
Seriously, take a look a 2.0 - it's a huge, huge step up from the previous version, practically every aspect has been reworked and redesigned. The initial version made some design compromises in order to support the Browseable API, and didn
161.
▲
by
tomchristie
14y ago
REST framework's serialization isn't tied to the ORM, so it should play perfectly well with mongodb.
162.
▲
REST framework 2 released: Simple, beautiful, browsable Web APIs for Django
(django-rest-framework.org)
153 points
by
tomchristie
14y ago
|
58 comments
163.
▲
by
tomchristie
14y ago
> They don't compromise on a single letter +1. I think that's why the Hemingway snippet works so perfectly. The tone both perfectly captures Hemingway's voice, and the design qualities of beautifully engineered code. > I believe t
164.
▲
by
tomchristie
14y ago
The Hemingway snippet is genius. Spot on.
165.
▲
by
tomchristie
14y ago
Overloading the request method using URL paramaters, as the author mentions is a bad idea. What is accepted behavior, is overloading the request method using hidden form data in a POST request. The later is what Rails actually does -
166.
▲
by
tomchristie
14y ago
> "how many golf balls can you get in a double decker bus"... > 1) i don't have enough information and 2) its not relevant to this position. Whilst I agree somewhat with the sentiment, I don't think that's at all an unreasonable que
167.
▲
by
tomchristie
15y ago
Not sure that's quite true really. (I think tastypie is really good tho, btw)
168.
▲
by
tomchristie
15y ago
we're working on it hard. :) sprints at djangocon this thurs+fri, so hopefully will pick up some more contributors and really get things rolling...
169.
▲
by
tomchristie
15y ago
> Roll your own (surprisingly common since it's not too hard) Easy to roll your own. Deceptively hard to do it really simply and really well. Hence the proliferation of frameworks. I like a comment by Fielding here: "most people just ma