Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
anderse
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
anderse
8y ago
Do you mean your database driver doesn’t supply you with field names, that you rely on order to map up data?
2.
▲
by
anderse
8y ago
Probably something like: to_select = fields - [:created_at, :updated_at] Though there’s always a slight uncomfort in not being 100% sure the array elements aren’t strings, so might throw in a cast here just to be sure.
3.
▲
by
anderse
14y ago
Calling it a DSL is bit weird to me, it's a single instance method. You'd use the same kind of thing to set the appropriate caching headers for Varnish.
4.
▲
by
anderse
14y ago
subject.should_receive(:popular).and_return(subject) Now you're testing that your piece of code is calling the "popular" method, but you have no idea whether or not that method even exists in your implementation. Too much mocking is
5.
▲
VimGolf - Prime Numbers
(vimcasts.org)
3 points
by
anderse
14y ago
|
0 comments
6.
▲
by
anderse
14y ago
Beware that proxies sometimes strip the accept header. I know of at least one European ISP that does this for its 3gs users.
7.
▲
by
anderse
14y ago
While you basically built this country? It happens that Swedes who are actually paid to think(or paid at all) don't often share your views. This might be because they are not expecting life to be a free ride just because they were born here
8.
▲
by
anderse
15y ago
Here's a helpful two-part Berkeley lecture on the topic: http://academicearth.org/lectures/streams-i
9.
▲
Show HN: Greasemonkey script - filter old HN comments
(userscripts.org)
1 points
by
anderse
16y ago
|
0 comments
10.
▲
by
anderse
16y ago
What if the other guys do "Content + Links" as well(seeing how this has been the general consensus SEO silver bullet for 5+ years now), we all win? Link building is to on-page optimization what marketing is to product development. You can c