1,415 karma · joined Aug 11, 2016 (10y ago) · 572 submissions
comment 9y ago · link · parent
Extract code into a function, automatically suggested by duplicated code detection. Inline functions back into call sites.
Convert imperative for-loops to functional style streams and back again.
Change function prototypes globally by adding or removing parameters.
Extract classes and interfaces.
Common sub-expression elimination (i.e. select an expression, introduce a new variable, all uses of that expression can be replaced as well)
Detect dead code and automatically remove it.
Refactorings across languages.
Replace inheritance with delegation or vice-versa.
Automatically generify code. Extraction of type variables.
Obviously a whole suite of structural code changes like renamings and other smaller things.
That's without getting into all the other code intelligence features.
Regardless of how fancy you feel the type system of a language is, these sorts of keyboard-driven refactorings are tremendously helpful for getting code and APIs right.
comment 9y ago · link · parent
comment 9y ago · link · parent
The countries seemed pretty random (that well known oil giant Germany was in there) but at the top was Russia with a bar far far larger than any other country on the chart. The graph was an obvious attempt to continue the theme of "Trump administration is owned by Russia". The problem was that the numbers next to each bar weren't labelled: the graph was totally lacking in context.
I did some googling and found that the graph appeared to be measuring profit potential in millions of acres of drilling rights. Thus it was comparing an acre of frozen Arctic ocean with an acre of Germany as if they were the same thing. There are industry standard ways to compare oil fields. I've never once seen oil fields measured in this way because it ignores extraction costs, but sure, if you want to imply that Russia will be wildly more profitable than anywhere else on earth then that's one way to do it. But it's an abuse of statistics.
I pointed this out to the friend in question who simply said that she had a policy of not taking part in political debates on Facebook.
comment 9y ago · link · parent
This leads to a situation where central bankers are publicly saying "hmmm, we've done massive QE but there's no inflation, what a mystery" whilst the average punter is seeing housing and stock market bubbles inflate right in front of his eyes. It causes people to tune out: headlines like "inflation statistics hit new low" are placed right next to "house prices reach record highs".
comment 9y ago · link · parent
comment 9y ago · link · parent
The "body of evidence" that self-proclaimed experts are frequently wrong is rarely presented statistically, but it could be so. However this would be circular, it'd be an expert using statistics to claim that experts using statistics can't be trusted. That's a time when 'common sense' knowledge is sufficient: if you've seen endless stories in the press about how experts predit X, and none about experts predicting not X, then when X doesn't happen you can safely lower your trust in experts without needing an Excel spreadsheet to prove it to yourself.
comment 9y ago · link · parent
That's fine. Not all conversations have to be open. Twitter can go ahead and eliminate their users who don't fit their preferred political profile, it's their platform. Someone will just set up a competitor with different policies.
I suppose Trump's supporters would regard at least some of his interactions as positive.
comment 9y ago · link · parent
The idea of a platform for new ideas, open conversations, and positive interactions on a global scale was powerful and compelling
She praises new ideas and openness of conversation, then tells Twitter to ban the US President because she disagrees with him.
The author has chosen not to show responses on this story
What a surprise.
comment 9y ago · link · parent
In other words it has stopped being about equal rights. Now it's about better rights for women.
where is the evidence that people who harass and abuse women online are doing it because they feel their rights and their jobs are under threat
There is a well established history at this point of outspoken 'feminists' (using the above definition) attracting disproportionate amounts of hate online. The reason is pretty simple: they dish it out themselves.
comment 9y ago · link · parent
https://www.wto.org/english/thewto_e/whatis_e/tif_e/org6_e.h...
comment 9y ago · link · parent
When people like you try to shut down debate by saying now is not the time, all you do is make things worse. That's how Trump wins: he doesn't try and "read the room" or bring things up at the "appropriate" times. He doesn't care about these rules social-justice types try and impose at all, because he knows there is never going to be a time when they're happy for their behaviour to be discussed.
comment 9y ago · link · parent
I was obviously talking in generalities: if the EU banned or tariffed its citizens from buying service X from the UK, that doesn't mean it has to be service X that is banned or tariffed in reverse. That's never how sanctions are applied.
The 'worst case scenario' is the UK is a country that trades with EU like any other
I can think of many worst case scenarios worse than that. I think what you mean is, you don't personally anticipate it getting worse than that.
comment 9y ago · link · parent
https://en.wikipedia.org/wiki/European_Parliament
From the first paragraph under "powers and functions"
The Parliament and Council have been compared to the two chambers of a bicameral legislature.[44] However, there are some differences from national legislatures; for example, neither the Parliament nor the Council have the power of legislative initiative (except for the fact that the Council has the power in some intergovernmental matters). In Community matters, this is a power uniquely reserved for the European Commission (the executive)
The thing they call a Parliament can't actually change anything about the EU. It can only ask the Commission to do so for it.
comment 9y ago · link · parent
The people who run the EU are far more concerned with prestige than the details of these mechanisms. They don't like the UK, never have, and it bugs them that London - which doesn't use the euro - is so important to the parts of Europe that do. It's an itch they can't scratch.
comment 9y ago · link · parent
The EU can absolutely impose trade sanctions on the UK in order to force business out of it. The UK can do the same in reverse. Brexit is a trade war, have no doubt about it. People just don't call it that.
comment 9y ago · link · parent
Essentially the EU just passes a new regulation (note: EU Commission can make new law that overrides national law and it is not accountable) that states you cannot purchase services in categories X, Y and Z from the UK on pain of fines or imprisonment. No different to any other trade sanction. It is not legally complicated to implement.
comment 9y ago · link · parent
EU leaders like to paint people who reject this approach as shirking their "responsibilities", or "cherry picking", or whatever other dubious analogy they came up with today. But it's just psychological manipulation. If citizens of a country are overwhelmingly convinced that freedom of movement makes sense only for similar economies, or only up to a limit, etc, then it's not the EU's place to blindly insist that they obey. It's the EU's place to convince them they're wrong, if necessary, by letting them go their own way so some years later the results can be compared. That is how you build trust and loyalty.
You know, 18 months ago I was vaguely pro EU. Like most people I had not thought about it much, in truth. The UK referendum forced me to do my research, to spend a lot of time pondering the issues, to engage with the eurosceptic arguments. And nowadays I am convinced the EU is doomed. It is a concept so flawed it cannot be fixed. It should be abolished and replaced with numerous multi-lateral treaties between whoever wishes to make them, wherever those countries are located in the world. In other words, how the global system of cooperation already operates. There is no need to artificially tie immigration with financial regulation, or medical approvals with subsidies to farmers. There is no need for a flag, an anthem, an all powerful centralised bureaucracy of people who care more about their pensions than the people they rule.
Europe would be happier, healthier and experiencing deeper cooperation if the EU had never been invented at all.
comment 9y ago · link · parent
The EU should stand or fall on its own merits. The moment people start to think, we have to make it painful for people to leave, it loses its legitimacy. It is on the way to be a new USSR. And if one day continental Europe slowly turns into a military dictatorship (it is effectively already a soft power dictatorship) I will not have any sympathy for whatever happens to people like you.