HNHacker News
TopNewBestAskShowJobs

nathankleyn

197 karma · joined April 1, 2013

[ my public key: https://keybase.io/nathankleyn; my proof: https://keybase.io/nathankleyn/sigs/00n65O3Jew1SwXNq3zKSYlg5iiFhOXQZDbBSsk9M_fg ]
submissionscomments
nathankleyn··on Backdooring JavaScript using minifier bugs
Edited, that's a mistake - I meant to write "HTTP2 + Web Assembly" (which will take the place of file concatenation and minification).
nathankleyn··on Backdooring JavaScript using minifier bugs
Sorry, that's a mistake - I meant to write "HTTP2 + Web Assembly" (which will take the place of file concatenation and minification).
nathankleyn··on Backdooring JavaScript using minifier bugs
Almost certainly not, if only because it's another layer of indirection when debugging and for this use you're not limited by distribution size.

There is a potential benefit if the minifier can apply some performance optimisations, but one would hope V8 et al are already doing most of these and more.

Even for client-side applications, HTTP2 + Web Assembly will eradicate concatenating and minifying JS files soon.

nathankleyn··on The Future of Developing Firefox Add-ons
You're absolutely right, as indeed pcwalton says above - but it's a step in the right direction from "let anybody have access to anything they feel like".
nathankleyn··on The Future of Developing Firefox Add-ons
Said add-ons can also access your entire browsing history, listen to you type in your passwords to your online banking account, get access to your emails and hence online identities, and generally know everything there is to know about you in a very short amount of time and code.

I'd argue the threat here is that malicious extensions at this level can be done by somebody with little to no experience, compared to kernel extensions which actually require some modicum of skill.

Requiring signing is a recognition of the fact we are increasingly moving our lives online, and hence into the browser.

nathankleyn··on Lessons Learned from Reading Post Mortems
Wow, this is a great list.

It would be fantastic to take this set visualise their causes. It would be really interesting to see whether the causes are that different for large corporations vs smaller startups. I suspect, as in the article, it remains that configuration, error handling and human causes are still the most popular regardless of whether you have vast quantities of process or money for tooling.

nathankleyn··on Explaining the browser's event loop, tasks, and microtasks
Really great article, spending your weekend making the animated step-by-step diagrams was worth it!

The fact that browsers don't get this stuff right by now is pretty worrying. Makes it difficult to imagine the web being the platform of the future and complex applications being built atop it.

nathankleyn··on Samsung unveils 2.5-inch 16TB SSD
If anybody ever asks me what Hacker News is, I'm going to screenshot this thread and send it to them.
nathankleyn··on GitHub forking has one big flaw (2011)
Amusingly, Bitbucket has since removed a lot of their useful fork information after a redesign that took place between now and this article's publish date (2011) [1].

One approach to this problem, as the article mentions, is to list by popularity - however what would this mean? If it's by the number of "stars", not many people curate their list to keep them up to date. It would have to be some kind of rolling popularity measure, perhaps number of unique users who've cloned a repository in the last month or something.

[1]: https://bitbucket.org/site/master/issue/5009/list-of-project...

nathankleyn··on Samsung disabling Windows Update?
First thing I do when I get a new laptop is wipe it completely and do a fresh install. You can selectively restore the drivers/software you actually need.

Of course it goes without saying that this isn't something most of the millions of unknowing Samsung customers are likely to be able to do themselves, let alone be aware it's even a good idea.

nathankleyn··on Management things I learned at Imgur
He probably obfuscated that fact so people wouldn't judge him just by his age; it would seem based on some of the comments in this thread that he was right to do so.

Some of the best lessons in life can come from those who haven't been tainted by long stints doing the very thing they're commenting on.

nathankleyn··on Improved organization permissions
I can't overstate how useful it would be to at least restrict write access to certain branches. Bitbucket has had it for a while now [1], so I'm surprised GitHub haven't followed suit.

[1]: https://blog.bitbucket.org/2013/09/16/take-control-with-bran...

nathankleyn··on Show HN: Watermark.js – Functional ES6 lib for watermarking in the browser
Yep - that's totally possible. Actually, now you phrase it like that, I see what you mean about using it that way for a CMS, and it's an awesome idea.
nathankleyn··on Show HN: Watermark.js – Functional ES6 lib for watermarking in the browser
That's all fine until Googlebot-Image comes along, collects up all your unwatermarked images, and displays them in search results for the world to use.

I can see this being useful for running as a batch process in Node/IO.js and uploading to, say, S3.

nathankleyn··on Becoming Productive in Haskell
The Haskell wiki has a page called "Haskell in industry" [0] which lists all the people using Haskell in the real-world.

Some notable ones include:

* Facebook Haxl, an abstraction around remote data access [1]

* Microsoft Bond, a cross-platform framework for working with schematized data [2]

* Google Ganeti, a cluster virtual server management tool [3]

* Intel Haskell research compiler, a custom Haskell compiler used internally at Intel Labs [4]

---

[0]: https://wiki.haskell.org/Haskell_in_industry

[1]: https://code.facebook.com/projects/854888367872565/haxl/

[2]: https://github.com/Microsoft/bond

[3]: https://code.google.com/p/ganeti/

[4]: http://www.leafpetersen.com/leaf/publications/hs2013/hrc-pap...

nathankleyn··on Show HN: Distributed ID Generation with Redis and Lua
Op here! One of the primary reasons for using Redis here is not so we can use Lua (even if it is great!) - it's so that we can generate IDs using a service we already have. This idea could be extended to anything that allows user scriptable behaviour - for example, we know at least Instagram are doing this using PostgreSQL stored procedures.
nathankleyn··on Learning Haskell – A Racket programmer's foray into the land of Haskell
I really enjoyed reading what you've written so far, and I'm hoping you continue to write more.

It was really refreshing to see somebody write about the struggle to pick up Haskell - indeed, I had a lot of the same issues. I often feel the Haskell community is burdened with this stigma of "if you have to ask questions, you're probably too stupid to get it". This is despite the fact that there is actually a really great group of people always willing to help in #haskell. It's primarily an image problem, one a lot of FP languages suffer from.

We need more articles talking about the pain points of Haskell so we can get better at making this stuff accessible. We need to be honest with new starters, tell them it's okay to find this stuff challenging and show them where to find help. More than that, though, we need to think about what we can do in the language to fix some of these pain points in a way that the community is happy with.

nathankleyn··on What is good code? A scientific definition
I cannot upvote this more than once, so I feel obligated to let you know how much I agree with this.

"Readability" may be a personal thing, but you'll reach convergence pretty quickly by following the approach you outlined. I see it as no different to something like writing, in that respect, in that an editor and a writer begin to converge on a style together without really setting out in the first place to do so.

nathankleyn··on What is good code? A scientific definition
I've always felt that it's a fools errand to define things like that. Certainly things like "readability" are completely community/language centric, it would seem. I wonder if this post presents enough focus for respective communities (both languages and workplaces) to converge on their own definition of these things.
nathankleyn··on What is good code? A scientific definition
I would have expected better to mean, in this circumstance, less likelihood of there being issues that impact the user - something that almost certainly has a correlation! No amount of "good practice" will protect again an idea being rubbish.
nathankleyn··on What is good code? A scientific definition
It's on this list as "does well what is intended to do". In fact the article specifically discusses the fact that people, when surveyed, did not mention "it works" as a priority:

Works: writing code should always have one purpose, deliver some value to somebody. Writing code that works, that it’s actually deployed somewhere making somebody happy is one of our top priorities. So we were kind of surprised every time a developer didn't include that item in the answer.

nathankleyn··on What is good code? A scientific definition
Good code is written so that is readable, understandable, covered by automated tests, not over complicated and does well what is intended to do.

Couldn't agree more.

nathankleyn··on Docker 1.2.0, with restart policies
You guys are doing a fantastic job, anything that can give you a bit more of a breather between releases and increase quality is something I'm certain the community will embrace.
nathankleyn··on Building Scala at Scale
Looks like the site is getting trampled; here's a Google Cached version for those who want it: http://webcache.googleusercontent.com/search?q=cache:xXcsxR3...
nathankleyn··on “Game Programming Patterns” is now finished
Congratulations Mr Nystrom! I've been reading through each chapter as you posted them, and I've found your writing style throughly enjoyable and your ability to describe complex code patterns with ease.

It's really hard to get the motivation to finish such a project, serious kudos to you; I shall be buying that e-book!

nathankleyn··on Show HN: Make your app handle going offline
You'd need to take care of this anyway, since almost any asynchronous action otherwise carries the danger of being dispatched twice if the UI is left active.

Most frequently, this is done by disabling submit buttons or debouncing asynchronous function calls that happen as a result of a UI action.

← PreviousPage 2 of 2