Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mjw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
211.
▲
by
mjw
16y ago
Good questions. > What are the responsibilities of a resource? What actions does it know how to perform? You mentioned responding to the HTTP verbs, so clearly it knows about HTTP. Yep, it's entirely a HTTP-level concept. It is aiming t
212.
▲
by
mjw
16y ago
Sorry just noticed this, here's the link to the project: http://github.com/mjwillson/doze Warning: rough edges, etc :)
213.
▲
by
mjw
16y ago
I liked this answer in particular: "These are actually metamathematical (false) beliefs that many intelligent people have while they are learning mathematics, but usually abandon when their mistake is pointed out, and I am almost certain to
214.
▲
by
mjw
16y ago
One particular thing which bothers me about controllers is the way they lump together obviously class- or collection-level methods (index, create, ...) with instance-level methods (show, update, delete, ...). IMO requests should be routed t
215.
▲
by
mjw
16y ago
I think they should get rid of controllers and instead model RESTful / resource-oriented concepts like Resource and Entity directly! A Resource is an object which responds to some subset of GET, PUT, POST and DELETE. It has a unique URL whi
216.
▲
by
mjw
16y ago
Indeed. It's absolutely trivial to write an reasonably-performing key-value store on top of even the most minimal subset of SQL. The reverse is most certainly not true.
217.
▲
by
mjw
16y ago
And while SQL is not the absolute best way of accessing structured data, the theory which it's almost-but-not-quite based on, the relational model, DOES have demonstrable and very well-researched advantages over hierarchical database models
218.
▲
by
mjw
16y ago
Yep I too was quite disappointed by this. The article contained a lot of bombast about giving up on SQL and taking the opportunity to do some blue-sky thinking about creating a better API for 'structured data'. I was hoping this meant they
219.
▲
by
mjw
16y ago
IE7 too would be nice while you're at it :)
220.
▲
by
mjw
16y ago
Heh. Yep true, although stuff like this can make it more or less likely! In the end it'll depend entirely on the people I guess. Let us know how it turns out :)
221.
▲
by
mjw
16y ago
Hm... might work ok if the hacking on projects together aspect of it was relatively low-pressure/low-commitment stuff, pitch in if you have time and find it interesting but don't guarantee anything. But otherwise mixing two big-ish commitme
222.
▲
by
mjw
16y ago
Of course, if you yammer about the tests after writing them, that's just not acceptable. Yammering must drive your practise.
223.
▲
by
mjw
16y ago
(Posted on the article too, but might be more use here) Nice set of articles, but a teensy bit one-sided in places. What about the programmer who comes across as being a prima-donna about introducing some flavour-of-the-month practise, but
224.
▲
by
mjw
16y ago
Distinctions of physical size are more important to your moral philosophy than basic questions like "is this a sentient being"? If this is even part-way serious as a justification for abuses of corporate power, then what a terrible, glib ar
225.
▲
by
mjw
17y ago
For one thing, he completely ignores the fact that the US economy doesn't exist in a vacuum. Inflation can have a big affect on exchange rates, importers and exporters, the attitude of people like China to all the USD debt they own, etc etc
226.
▲
by
mjw
17y ago
Personally I love Haskell, but I did a bunch of mathematical logic at university so that might explain it :) For practical work though I think hybrid FP/OO languages like Ruby and Scala (maybe Python and LISP too) are usually a better choic
227.
▲
by
mjw
17y ago
So long as you don't plan on lumping them all together into one big amorphous news website that tries to cater to all tastes but has no real editorial focus or voice. Give them tools to find / understand / build their own audience. Sounds l
228.
▲
by
mjw
17y ago
Ah - would be interested to hear about those too!
229.
▲
by
mjw
17y ago
I have some stuff bookmarked at work which I can dig out tomorrow. One thing was forcing InnoDB to cluster by insertion order by adding an otherwise-redundant autoincrement primary key alongside the unique index on the actual key column. Al
230.
▲
by
mjw
17y ago
Interesting. I have a few journalist friends (as no doubt do you guys) and pointed a couple of them at this. Sure you've seen this already, but you'll probably find that a lot of your target market (well-trained but under-employed journalis
231.
▲
by
mjw
17y ago
Interesting article. I've recently been doing some load-testing of key-value stores for caching, and also found that MySQL compares pretty favourably with some of the new kids on the block. Just talking a "create table (key char(64) not nul
232.
▲
by
mjw
17y ago
I'd like to see a survey which pitches the ideologically driven (on the left and the right) against the pragmatic centrists. Perhaps this is evidence that despite the attempts by the american right to re-define 'liberal' to mean what most e
233.
▲
by
mjw
17y ago
Another Sequel user here, very happy. The only thing I'd like to see would be a more flexible object mapping layer on top of the relational core. Something along the lines of Python's SQLAlchemy. Sequel::Model is a simple ActiveRecord-style
234.
▲
by
mjw
17y ago
Interesting rhetorical device, but I think a lot of people would have a hard time fitting themselves tidily into one of those categories. I'm probably more of a 3, although it can vary depending on what state of mind I'm in!
235.
▲
by
mjw
17y ago
Giving people concise syntax for passing anonymous functions allows one to implement a lot of control-flow operations, and combinators from functional programming, as libraries, rather than language constructs. In python, although they coul
236.
▲
by
mjw
17y ago
I think in those contexts, DSL is more a description of how an API feels to use, than a precise technical categorisation.` Ergonomic distinctions are useful though, as is the distinction between declarative-style APIs and more imperative
237.
▲
by
mjw
17y ago
True, although when one part of the state prints money to "lend" to another part of the state, I'm not sure how useful it is to include that as part of a total "debt" figure. It's just an artefact of the way the US chooses to implement its
238.
▲
by
mjw
17y ago
As a European this pissed me off a lot. Looking at it from the other perspective, it's an example of how an unhealthily competitive culture can lead to wastage; where everyone is forced to work harder to keep up with the competition, but as
239.
▲
by
mjw
17y ago
> After that the owners are satisfied and have enough money for a comfortable lifestyle. The entrepreneur that "dreams big" is the exception. What exactly is wrong with this? The marginal value of money decreases significantly once you
240.
▲
by
mjw
17y ago
Anyone have any tips for memory profiling tools, other than the one mentioned in the article comments? ( http://www.softwareverify.com/javascript/memory/feature.html , Windows-only, Firefox-only, non-free)
More ›