News for hackers. Stuff that matters.

anderse

Re:Selecting All Columns Except One in PostgreSQL on Saturday May 19, 2018 @10:49AM (#17108090)
Do you mean your database driver doesn’t supply you with field names, that you rely on order to map up data?
Re:Selecting All Columns Except One in PostgreSQL on Saturday May 19, 2018 @10:41AM (#17108063)
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.
Re:Reducing server load with Redis on Monday November 12, 2012 @05:24PM (#4775122)
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.
Re:RSpec Best Practices on Wednesday October 03, 2012 @03:04PM (#4609100)

  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 worse than "no mocking", because "no mocking" is slow but it doesn't tell you lies.
Re:So you want to offer a public API … on Wednesday July 25, 2012 @08:45AM (#4290613)
Beware that proxies sometimes strip the accept header. I know of at least one European ISP that does this for its 3gs users.
Re:Responding to Beggars on Saturday May 12, 2012 @02:17PM (#3964682)
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.
Re:Introducing a new data structure, streams, in Javascript on Sunday September 11, 2011 @12:10PM (#2984020)
Here's a helpful two-part Berkeley lecture on the topic: http://academicearth.org/lectures/streams-i
Re:Ask HN: how to buy SEO? Can SEO be automated? on Thursday October 21, 2010 @06:02AM (#1814853)
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 conquer worlds with crappy products and brilliant marketing, but the reverse is also true. Doing both with passion = highest chance to win.

Depending on the type of site and how many links you already have, fortunes can be made by clustering your data/pages better, naming your stuff differently, changing your internal linking etc.. .

"And yes, I think _that_ part of the problem is ripe for automation, and I suspect probably _has_ been automated by the very successful people" You have gotten it backwards. A lot of link building (read: blog spam, paid bloggers, paid articles, link brokers etc..) has become automated, far beyond the level of automation of on-page optimization.