HNHacker News
TopNewBestAskShowJobs

Hurtak

413 karma · joined January 11, 2015

submissionscomments
Hurtak··on 25 Days of ReasonML
I have heard about the Messenger where they have 25-50% of the web client codebase in Reason, but I have not heard about the Instagram story. Can you share more info or some links about that?
Hurtak··on Half-Life and Team Fortress Networking
It is a 17-year-old article. Did the fundamentals stayed the same or has there been any significant paradigm shifts in how game networking is done?
Hurtak··on Tesla Roadster
Are people just not testing their websites on non Apple devices or why are there 2 vertical scrollbars next to each other?
Hurtak··on Alibaba hits nearly $18B in ‘Singles Day’ orders in 12 hours
Are the sales numbers inflation adjusted?
Hurtak··on iPhone X – Not Yet
On Windows Phone the story was the same. Upgrade from 8 to 8.1 made the phone noticeably slower, another upgrade to 10 made it almost unusable. So this is not exclusive to Apple.

It is probably that Android users usually do not receive updates, so they can't complain that updates made their phones slower.

Hurtak··on ES7 brings two new features
> ['my','mom','hates','me'].indexOf('mom') // 1

> life.includes('girlfriend') // false

That are some depressing code examples, is the author ok?

Hurtak··on Npm v5.1.0 Released
Is there any reason to use Yarn now that NPM has comparable speed and lockfiles?
Hurtak··on Apple's cash hoard swells to $246B
I somebody started doing this, wouldn't it make the stock price skyrocket and make the whole plan unprofitable?
Hurtak··on Angular 4.0.0 Now Available
The website seems like a mess. The title of linked page changes from `(v4.X.Y)` to `(v)` to `(v4.0.0)`. At the start it displays empty page shell, then fires two ajax request, each causing the page to redraw. This all could have just been statically generated web page.
Hurtak··on Star Citizen developers intend to drop DirectX support and only support Vulkan
How much faster is it? I saw a few random videos comparing Vulkan vs. DX11, and the difference was usually in the 10% range in both ways (sometimes Vulkan won, sometimes DX won).
Hurtak··on To www or not www
They do
Hurtak··on The broken promise of Web Components

    > The advice to "touch the DOM as little as possible" stems from the fact that the DOM has so many performance pitfalls.
What are those performance pitfalls?

The only ones I know are that if you read something related to the layout size (offsetHeight), it might cause layout recalculation. And obviously if you modify how element looks like (innerHTML, changing class, etc).

This doesn't seem like much (assuming I dit not forget something). The first one is not obvious through.

Hurtak··on Ask HN: Will front end development ever move away from JavaScript?
'use strict' solves the forgotten 'var' and dangerous 'with' by prohibiting these parts of language. Also if you are using ES2016+ you are most likely compiling your code with Babel (to have more backwards compatibility) it will turn on the strict mode on by default.
Hurtak··on Ask HN: Will front end development ever move away from JavaScript?
- ClojureScript I forget and it is good alternative, but it doesn't seem to be on the rise either

- I have not seen anyone using ScalaJS

- These two are probably fine alternatives to do frontend for Clojure/Scala shops, but outside of these circles, they do not seem to have much traction.

Hurtak··on Ask HN: Will front end development ever move away from JavaScript?

    "There is plenty of languages which compile to JavaScript if you want a different style."
I hear this a lot, but when you actually look at the list, there is not much to choose from.

- Dart - not used outside of Google.

- CoffeeScript - people are leaving this for ES6+, does not provide anything other than nicer syntax.

- TypeScript/Flow - is just javascript + types. This is bad because it doesn't solve any of JavaScript problems and good at the same time because it is easy to introduce incrementally and there are 0 problems with interaction with plain JavaScript code). This seems to be good enough for most people, as you mention.

- Elm - Second most promising ATM but not mature enough, you still need to fall back to JS for lots of the browser API. You need to buy into the Elm world 100%, simple stuff like creating an element and using JS library which will modify that element still requires hacks (my info might be out of date, last time I worked on Elm project was ~4 months ago).

- Reason - Probably the most promising because Facebook backs it, but nowhere near production ready. At least it seemed to me last time I checked - no tutorials, even installation was not straightforward and required some consultation with GitHub issues.

- the rest is in the toy/abandoned/not mature enough territory.

Hurtak··on Jest 19: Immersive Watch Mode and Test Platform Improvements
Can anyone explain to me why the `expect` type of assertion library caught on so much in the javascript land?

I mean how is

    expect(2).toBeLessThanOrEqualTo(3)
more readable than

    assert(2 <= 3)
Especially when we have packages like power-assert (1)

[1] https://github.com/power-assert-js/power-assert

Hurtak··on Node v7.5.0 Released
From my experience majority of async functions that I used are from the fs package and for that, there is nice wrapper called fs-promise (1) which converts all the functions from callbacks to promises.

For other stuff, I just create my own promise wrapper (if I feel like that promise interface would be better), which is like 5 lines of code.

[1] https://www.npmjs.com/package/fs-promise

Hurtak··on Simple test env – quickly switch operating systems / language versions
Thanks for the tip.
Hurtak··on Cards Against Humanity is digging a hole in the earth
Their FAQ is also pretty good.

Q: Why aren’t you giving all this money to charity? A: Why aren’t YOU giving all this money to charity? It’s your money.

Hurtak··on Removing Shadow DOM boundaries from text editor elements
It does not, it is still about 5 times slower than Sublime (just random measurement of how long it takes to start editor & initialize workspace on my machine). But speed is good enough that VS Code became my main editor.
Hurtak··on Removing Shadow DOM boundaries from text editor elements
I wonder if there will be any performance benefits from removing Shadow DOM in Atom.
Hurtak··on Node.js v7.0.0
I have read this comment which suggests async/await in Node 7 (V8 5.4) is buggy. Anybody has some more information about that?

> I'm glad to hear so much excitement about async/await. However, Node v7 is based on V8 54, whose async/await implementation has some bugs in it (including a nasty memory leak). I would not recommend using --harmony-async-await in production until upgrading to V8 55

source: https://github.com/nodejs/promises/issues/4#issuecomment-254...

Hurtak··on Overview of JavaScript ES6 features
I heard interesting argument against const, it went like this:

Const very rarely saves you from bugs and the bugs that saves you from are very easy to find and fix. On the other hand the time wasted by thinking where whether to write const or let and the time wasted by switching consts for lets (and other way around) outweighs the time saved by potentially preventing these easy to find bugs. To sum it up, if consts does not really provide any extra value, why not make your life easier and just use let everywhere.

It was from very senior c++ programmer, so I am not sure how well that translates to JavaScript.

Hurtak··on NPM v4.0.0
> Keep an eye out for npm@5 in Q1 2017. We're planning a major overhaul of shrinkwrap as well as various speed and usability fixes for that release.

So the most interesting part of npm4 release are the announced improvements that are coming in npm5 :)

Hurtak··on NPM v4.0.0
It's explained 2 paragraphs bellow
Hurtak··on Google HTML/CSS Style Guide – Omit Optional Tags
Why didn't they decide to keep the strictness, but only in dev mode? Lets say after you checked some checkbox in browser settings or if you had dev tools opened.
Hurtak··on Blazing Fast HTML: Elm vs. React vs. Angular vs. Ember
1. That benchmark is rather outdated - React 0.10, Angular 1.2.14 ...

2. Article seems to compare most popular frameworks, so no surprise Mithril didn't make it since more popular frameworks like Vue are also not on the list

Hurtak··on Essential Electron
Does anybody have experience with both Electron and nwjs? How do they compare?
Hurtak··on Steam in Docker
How big is the % FPS decrease if you run the game inside container, compared to just running it regularly?
Hurtak··on Why Infinite Scrolling is probably a bad idea (2015)
Why is it considered harmful, what are the alternatives?
← PreviousPage 2 of 3Next →