In the context of React, it allows you to implement a `shouldComponentUpdate` method which simply compares the references of two objects, which is extremely fast. If the references remain the same, then there is no need to invoke `render` again.
HN user
ChrisGaudreau
Prototype-type based systems are cool in theory, but aren't much fun to use in practice. They are incredibly powerful and easy to abuse. Basically single inheritance in disguise.
Classes aren't great either, but at least using class inheritance makes you feel icky, you're not likely to have shared state on the prototype being randomly mutated, and it's pretty readable.
I think I actually had a similar problem, but using `filter`. Don't really remember though.
Separation of concerns and separation of technologies are a different thing. It would appear you haven't done your research. See Pete Hunt's famous talk:
P:
I prefer flipped smileys. (:
Would this technique work to center, say, an <img> tag with undeclared dimensions inside of a div? Or do you have to jump through hoops?
An alternative using ES6 object parameters:
function addObserver(observer, func, { weak = false } = {}) {
if (weak) {
// ...
}
}
addObserver(observer, 'load', { weak: true });the fact that it is hosted makes it a non starter.
What do you mean?
Just Ember. I'm pretty sure Ember doesn't even have a dependency on Handlebars anymore. (possibly only off stable)
A Pry for Go would be enough to make me switch fully to Go.
Except that corn is used for more than just ethanol.
It's amazing how people who should know better demand proof of something obvious that's been written about so many times, just like how Fox News demands proof that Obama isn't secretly a Muslim. Or how people demand proof that goto is a Bad Thing™.
It is amazing just how much Israel spies on America, and how nobody knows about it. If you dare to say it publicly then your reputation and career are destroyed, and you are an antisemitic terrorist sympathizer, if not also a terrorist.
Untouchable by police? That's a pretty big claim. What would happen if the government were to round up some computers and control 50% or more of the network?
Personally, I like to learn any language, regardless of how popular it is. It's just fun.
Working in technology, you probably make a lot of money. Could be wrong. $5 a month probably means more to the general population.
Personally, I feel far less privacy when making online payments and giving out my credit card or trusting some middle provider than I do when visiting a site that has ads which I can disable.
Nobody likes unpleasant feelings. For many people it is even worse than physical pain. Positive thinking and similar strategies offer a seductive way to temporarily suppress negative thoughts and feelings, but deluding yourself will likely bring only disappointment in the end.
I grew up on the East coast too. When I was ten or so, it was really common for people around here to have that installed.
I'm only 19, and even I remember a time when Netscape was still pretty popular, or at least a lot of people had Navigator installed. It was even mentioned or displayed in a lot of programming books, articles, and presentations. I wonder how he managed to avoid knowledge of it for so long.
I've had some pretty bad performance with the demo, too. It seems to be much better (but not perfect) now with the official release. I'm not really sure why.
Huh. Bing has definitely improved, but half of the features listed by the author don't seem to work for me. Am I doing it wrong?
Further, I almost always get better results from Google. If I search for "pizza" on Bing, the top local result is an obscure restaurant a few miles away with a one-star rating. The ones that are close to me and have high ratings are at the bottom or not even listed.
Seems revolutionary. Can I configure it to turn CNN off for whenever John McCain shows up?
I actually like CSS as it is now, and it's getting better (cough, flexbox). Am I the only one who finds CSS incredibly hard to master, though? I've been writing CSS for years and I still feel like a newbie sometimes, and feel like I'm just tinkering with random attributes until it looks right.
Re-read what I said:
Well, the primary goal was reflation, so by that measure, it's been a resounding success so far.
Notice "by that measure" and "so far". Please do not distort my words.
But yes, you're right; it could end as an unmitigated disaster economically. We just don't know yet.
That doesn't provide any value. Would you like to articulate your arguments?
Japan has been following Friedman's proscriptions (QE forever) for the last 20 years!
I would say that Japan has been following Friedman's prescriptions until now. The major difference between monetary policy before Abe and after Abe is that Abe has made it clear that he won't jack up interest rates as soon as there is life in the economy. Past governments made it clear they would take away the punch bowl as soon as there was a hint of growth.
Basically, Abe has convincingly promised to be irresponsible. And so far, it has worked to beat deflation. Many other indicators are looking better, too, but it'll take some time before we know if it really works. (Hyperinflation? Wages? and so on)
but most of what I've read (and that's not a lot, I'm no expert) seems to have indicated that it hasn't really worked.
Well, the primary goal was reflation, so by that measure, it's been a resounding success so far. Growth, exports, and consumer spending have been boosted a lot, too. I'm a little worried that the sales tax increase will reverse this trend, but we will see.
It can hurt their reputation, at the very least. Beyond that, I doubt it.