Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
judofyr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
113 ms
·
541.
▲
by
judofyr
14y ago
Clang has -Weverything which does indeed include everything.
542.
▲
by
judofyr
14y ago
Public/private key-pair. It wouldn't stop people from faking values, but at least only Blizzard can read them.
543.
▲
by
judofyr
14y ago
You can also use Coccyx [1] which clears events on all objects (not just this.model and this.collection) and also adds recursive view disposal. [1]: https://github.com/onsi/coccyx
544.
▲
by
judofyr
14y ago
Yes, but even from a user's point of view I'm delighted when I use stateless web "apps". Facebook is an excellent example: There's quite a lot of AJAX-magic, but it still feels (and functions) as a stateless web site. No silly "double loadi
545.
▲
by
judofyr
14y ago
Let me tell you why I don't care about Ember.js at the moment: It's an "all or nothing"-solution. I couldn't care less about Stateful Single-Page Applications. I'll take a stateless, curlable, crawlable (remember Google?), old-style web sit
546.
▲
by
judofyr
14y ago
You're not supposed to put these into your models. You should create a different class/method that accepts models and returns HTML: class TweetWidget def initialize(tweet) @tweet = tweet end def conten
547.
▲
by
judofyr
14y ago
Ruby has had these type of libraries for years. The original is probably Markaby, but today there are alternatives that are both faster ( https://github.com/camping/mab/ ) and has more features ( http://erector.rubyforge.org/ ). It's an int
548.
▲
by
judofyr
14y ago
> Once again the point is that if you want to learn how to program in a specific language, you need to understand it's concepts and patterns. And it's perfectly fine to initally learn that `.each { |name| … }` as a concept for looping o
549.
▲
by
judofyr
14y ago
Interesting. Any examples of where you find for more clear than #each? I feel #each is inheritly more clear because it's explicit. Every time I see a for-loop in Ruby I have to remind myself that "oh, that's actually just calling #each". It
550.
▲
by
judofyr
14y ago
a = 0 [1, 2, 3].each { |a| } a # => 3
551.
▲
by
judofyr
14y ago
This is called computed (or assigned) goto and is a GCC extension (that is, not in the C standard): http://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
552.
▲
by
judofyr
14y ago
Well, he's already built Celluloid (for handling concurrency) and DCell (for handling the distributed part).
553.
▲
by
judofyr
14y ago
> It seems as though folk are starting to see that in most environments caching ought to be driven by POSTs, not GETs + timeouts. HTTP supports that too (through ETag and 204 Not Modified).
554.
▲
by
judofyr
14y ago
Hacker News stories which contains plenty of book recommendations (sorted by points, labeled by topic): Science Fiction: http://news.ycombinator.com/item?id=2978027 Computer Science: http://news.ycombinator.com/item?id=3595599 General:
555.
▲
by
judofyr
14y ago
> I don't know why the author dismisses Bitcoin as an anonymous payment mechanism. As he said: "No bitcoin service accepts any anonymous funding source; most only accept bank transfers." The problem here isn't bitcoin per se, but the i
556.
▲
by
judofyr
14y ago
Akamai just recently released their statistics, which shows a completely different picture: http://www.akamai.com/io
557.
▲
by
judofyr
14y ago
> Would be even better if I could invite people without Google accounts by e-mail, to make it generally usable for everyone. You can do this now. Just type in an email address in the field where you add people/circles. The user who rece
558.
▲
by
judofyr
14y ago
I find that the opposite way is way harder to debug: I see that a controller causes a bunch of SQL queries, but where do they come from? In the view? In a helper? In another library within the app?
559.
▲
by
judofyr
14y ago
vender prefixes are broken. What happens if the same vendor wants to implement another version of the same (still experimental) property? What we need is draft prefixes. WebKit implements one type of gradient? Great, they define a prefi
560.
▲
by
judofyr
14y ago
Callback-based code will always be more complex than synchronous code (and I believe that's an objective observation), but please let's not go there. My remark was against their "Keep your code small and light". Making your code lighter doe
561.
▲
by
judofyr
14y ago
I like how the 10th tip is completely opposite of the 1st one. 2 is just a bad tip. Socket pooling is a useful feature. Opening up more connections than you (or the server) can handle will lead to poor performance. 3 and 5 isn't Node.js-spe
562.
▲
by
judofyr
14y ago
And now the history repeats itself: - In the same way that apple- and potato-certificates could have different values, how do you know which IOUs you can trust? - Someone says: "Hey, instead of giving IOUs to each other, come to me. I'll fi
563.
▲
by
judofyr
14y ago
> Skepticism about these things doesn’t require knee-jerk Apple fandom. It simply requires an open set of eyeballs. This is why I don't read Daring Fireball regularly. It's a blog solely focused on being skeptical about everything. The
564.
▲
by
judofyr
14y ago
Premature optimization is not about "optimizing before you need it", it's about optimizing before you've measured it. In this case, you have already measured it; you know the cost. There's nothing premature of optimizing at this moment. I
565.
▲
by
judofyr
14y ago
> - With a computer of 8,000 NOK (~ 1400 USD), you can do a few hundred million attempts per second. Are you kidding me? LinkedIn stored their passwords using (salted) SHA1 using no iterations? Jesus.
566.
▲
by
judofyr
14y ago
There's a demo here: http://www.cliws.com/p/rjson/ It comes it to: { "users": [ { "first": "Homer", "last": "Simpson" }, [ 2, "Hank", "Hill" ],
567.
▲
by
judofyr
14y ago
> My observation is that it is a combination of timing, title, content, and luck. And friends/followers in other communities/media.
568.
▲
by
judofyr
14y ago
It works both ways: More eyes on HN = more chance everyone else gets quick up-votes
569.
▲
by
judofyr
14y ago
This has nothing to do with bind variables. It was not a bug in how variables were bound/escaped. The bug was that Rails treated a variable (which sometimes is a user input) as a column name in certain cases.
570.
▲
by
judofyr
14y ago
My thoughts on this 630 days ago — http://news.ycombinator.com/item?id=1671437 : I’ve been doing some research for this earlier, and my conclusion was: This is very hard, if not impossible, to implement automatically. The main problem is t
More ›