Additionally, what would be those massively positive effects? I can see less car accidents and reduced amount of mundane driving, but I wouldn't consider those effects as dwarfing everything else.
270 karma · joined March 30, 2010
Additionally, what would be those massively positive effects? I can see less car accidents and reduced amount of mundane driving, but I wouldn't consider those effects as dwarfing everything else.
- How can you patent something like online flight planning? [--] Were you just first ones to think of patenting it?
- According to the Patent Office, that is correct.
The interviewer tries to squeeze information out from the man, but he just talks his way around the actual question, saying things like IANAL, It's in the Patent, the Patent is very specific, that's what the Patent Office says.
I wish the interviewer wasn't so soft with him.
In order to thwart piracy, she refused to allow her latest novel to be released as an audiobook since the format is popular with file-sharers and also denied the publication of Russian and Chinese versions.
Isn't it like taping on the cover of the book: "Only for white"?
* The arguments order is just the opposite of common sense. It has taken me years to really remember it, and I still have to think a little every time I use it.
* The default is to create hard link, which you almost never want. And if you do want them, you are probably doing it wrong. Making hard links is just asking for trouble.
I've read that Plan9 has somewhat corrected this whole problem. At least there is no ln command at all. Instead one uses bind, mount, and unmount. Of which bind is most similar to ln -s, but with arguments in reversed order.
* Number of projects containing a language. * Number of projects having most of the code in a language. * Lines of code in a language. * Number of users having a language in some repository.
Plus there is this whole forking thing going on...
> In addition to improving peak performance as measured by the V8 benchmark suite, Crankshaft also improves the start-up time of web applications such as GMail.
As I understand it, there is more to Crankshaft than just startup time improvement.
IMHO the simple boolean answer doesn't really tell you that much. There is a big difference between someone having only a few unit-tests for a huge codebase, v/s someone having most of the code covered by unit tests.
Additionally JavaScript is used a lot for user interface related stuff, where unit tests can often be more trouble than they're worth; instead full-scale functionality testing (like with Selenium) could be more useful thing to do.
Sorry. I don't understand this comment.
Is it trying to say, that electronic voting is by definition a failure? It doesn't seem to criticize any specific aspect of the Estonian e-voting system.
Or is it just calling names?
The problem is that String.fromCharCode takes multiple arguments and Array.map also passes multiple arguments to the callback, therefore the equivalent of numbers.map(String.fromCharCode) is actually:
numbers.map(function(x, y, z){return String.fromCharCode(x, y, z);})
Which of course is slower as the end result will actually be array with longer strings in it.* In the first version each time the anonymous function is executed interpreter has to lookup String and from it the fromCharCode method => 2n lookups.
* In the second version the String and fromCharCode have to be lookud up only once => 2 lookups.
Therefore according to slow-lookups-theory the first version should be slower. Except when I measure it, the opposite turns out to be true.
My first idea was:
numbers.map(function(x){return String.fromCharCode(x);}).join("");
This was pretty fast already, but why not eliminate the anonymous function completely and pass String.fromCharCode directly to map(): numbers.map(String.fromCharCode).join("");
I timed it and... ...this was ~100 times slower than the previous version. WTF!Somehow passing this native function directly to Array.map() is way slower than wrapping it inside another function and passing that to Array.map().
I have tested it so far in Chrome, Firefox and Opera - the results are the same. I also tried forEach(), which behaves similarly.
Does anybody have an idea why this is so?
Update: I tried the same with Math.round and Math.sin, and with these the results were as one would expect: passing the function to Array.map() directly was a little bit faster than using intermediate anonymous function. So it seems the problem is with String.fromCharCode specifically.
* Java has a really repetitive syntax, but it's libraries might make up for that.
* C++ with all it's features has bazillion ways to shoot yourself, but it's arguably fast and the syntax is bearable.
But php has both an ugly syntax, horrendous stdlib, and fame of security issues.
Maybe COBOL or MUMPS could be worse than php... haven't used these though.
It almost works with Android, except for the special-characters-menu, the tooltip of which gets hidden under textarea.
Unfortunately not every popular language has a truly great mode available. And the whole mode-ecosystem feel like a pita (especially for newcomers), but at least you have a choice, which you don't have with most other editors/IDE-s.
But your talk about syntax highlighting is just unfair. I for example use a JavaScript mode written by Steve Yegge, which actually contains a full-blown JavaScript parser which pretty much ensures that under normal circumstances I don't make syntax errors. Oh... and it also has syntax highlighting :)
IMHO it would be a good idea to patent all evil business practices and then disallow companies to use them :)
It's like the source code and comments being out of sync - you don't know which one is wrong.
The author seems to confuse self-learning with learning only the theory.
The real title should be: "Theory without practice is overrated".
And when you word it this way, it's hardly anything surprising.