Live data from Hacker News

Viewing profile — ahoge

ahoge

HN member
Joined
Sun, Dec 11, 2011, 10:05 PM UTC
HN karma
1,026
Public activity
464 items

About ahoge

No profile information was provided.

Recent public activity

  1. comment
    Comment #10821141

    Most of the weight comes from images. The average website (Alexa top 1M) contains over 1.4 MB of image data: http://httparchive.org/interesting.php Be sure to pick the most suitabl…

  2. comment
    Comment #10753865

    Those lines are showing up because the old algorithm can't produce all possible values in the 0-1 range. 32 bits of internal state simply aren't enough for that. The problem is hig…

  3. comment
    Comment #10740976

    You can write your Angular 2 application code in ES5, ES6, TypeScript, Dart, or to-JS languages like CoffeeScript. TypeScript is pretty popular and it does work really well. Writin…

  4. comment
    Comment #10653211

    > Want to bang up a quick solution, as in MVP? Use bare-bones Javascript Actually, adding the bare minimum of type annotations (fields & function signatures) and type casts (e.g. c…

  5. comment
    Comment #10653158

    Edge 13 does support generators. http://kangax.github.io/compat-table/es6/

  6. comment
    Comment #10640078

    https://quixdb.github.io/squash-benchmark/

  7. comment
    Comment #10622530

    > Research found that the number one cause of errors in learning Python was its case-sensitivity You don't make that kind of error in other case-sensitive languages which offer bet…

  8. comment
    Comment #10590861

    Atom and VS Code are built on top of Electron. http://electron.atom.io/

  9. comment
    Comment #10588114

    I'm quite happy with VS Code and this Markdown CSS theme: https://github.com/mahonnaise/vs-code-markdown-theme The automatic table formatting was pretty cool though (even if it's p…

  10. comment
    Comment #10581046

    The timing of the beam racing down the screen is used by the more modern guns which were used by the SNES, PlayStation, or the Dreamcast. So, it's really not much of a "myth". Most…

  11. comment
    Comment #10568839

    > Any major complaints from users? AltGr is still broken. The problem has been known for almost 2 years and there are about a hundred duplicates. https://github.com/atom/atom-keyma…

  12. comment
    Comment #10528247

    That's string interpolation. That line writes either "00" or "01". It's essentially the same as `'0' + state`. 'x: $x, y: $y' is a lot easier to type than: 'x: ' + x + ', y: ' + y …

  13. comment
    Comment #10527377

    Dart: import 'dart:async'; import 'dart:io'; main() { var file = new File('/sys/class/leds/beaglebone:green:usr0/brightness'); var state = 0; new Timer.periodic(new Duration(second…

  14. comment
    Comment #10424119

    The reduce one needs an initial value of 0 for that to work. Then both versions will return 0 if the array is empty. array.reduce((a, b) => a + b, 0);

  15. comment
    Comment #10421851

    function sum(array) { return array.reduce((a, b) => a + b); } With a loop: function sum(array) { let acc = 0; for(let val of array) { acc += val; } return acc; }

  16. comment
    Comment #10328144

    > Web fonts done properly don't require JavaScript. NoScript blocks fonts, video, audio, and JavaScript.

  17. comment
    Comment #10326975

    As a NoScript user, I rarely see web fonts and I prefer it this way. The text shows up instantaneously and the font will look great and be perfectly readable. Most web fonts don't …

  18. comment
    Comment #10309518

    Safari 9 has the lowest score on HTML5test and the ES6 compat table. To make matters worse, Safari 9 isn't even out yet.

  19. comment
    Comment #10308469

    Non-standard: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRende...

  20. comment
    Comment #10308463

    Taking screenshots of the full page or individual elements was also possible before via Tools -> Web Developer -> Developer Toolbar (Shift + F2)... and then using the `screenshot -…

  21. comment
    Comment #10282656

    In case anyone wonders about the `!+[1,]` bit: In modern browsers, `[1,]` is the same as `[1]`. If you coerce it to number, you get 1. (You get "1" if you toString it.) In IE8, `[1…

  22. comment
    Comment #10271809

    As somone who doesn't like to configure and tweak stuff for hours, my favorite Markdown editor is VS Code. You only have to set "editor.wrappingColumn" to zero (viewport wrapping) …

  23. comment
    Comment #10265648

    Firefox's Brotli support is already done. Chrome's isn't. By the way, new features are generally created this way. They are added to browsers way before they are standardized. You …

  24. comment
    Comment #10234498

    The keyboard handling seems a bit off. If you hold S and then press C, you'll stop moving backwards even though you're still holding S. I often thought I was running into a wall or…

  25. comment
    Comment #10232810

    Fun game. Works really well. However, after playing 4 or 5 levels with Firefox 40 the sound got really stuttery and it never recovered.