Recent submissions

Comment · 8 years ago
Not sure if it helps much. It still looks like the same clickbaity garbage that's in my regular trending tab.
Comment · 8 years ago
Honestly I'd much rather have some configurable yaml than some obscure app in the middle of your cluster that reads CRDs when what you're doing is just adding a side car.

At least this way you can tell if your local yaml is applied or not without a complicated diffing algorithm that compensates for an in-cluster modifier.

Comment · 8 years ago
Comment · 9 years ago
You can get it much of the way there by tweaking `~/.inputrc`

"\e[A": history-search-backward # Up key

"\e[B": history-search-forward # Down key.

Allows you to get press up while you have `ssh 10.2` in the terminal to cycle through ips matching, etc. It won't display like in fish before pressing it, but I find that's a reasonable tradeoff.

Comment · 10 years ago
Managing node with package managers feels like a a bit of a fools errand at the moment. They are going to be wrapping npm somehow, but when npm can't even do things right..
Comment · 10 years ago
This is cool. A few funny ones I found:

ExampleTester

Commanater

java-cruft

Generatter

the-git

Comment · 10 years ago
Damn that Fermat margin.
Comment · 10 years ago
Is there really any benefit to this over explicit child process calls? I realize the syntax is shorter, but now you're hiding the fact that you are shelling out.

Overloading require for this purpose is a guaranteed way to break static analysers and module bundlers.

Comment · 10 years ago
There are also 3 gotos in that function.
Comment · 10 years ago
I would totally install a sublime plugin or something like that for this.
Comment · 10 years ago
Yeah, got that too. Maybe time to go to bed.
Comment · 11 years ago
Biggest problem is also its greatest benefit. If everything CAN access anything, everything WILL eventually access anything.

Without any barriers, it's way too easy for things to devolve into spaghetti code.

Comment · 12 years ago
Nitpick, on the nothing can save me there part. This is arguably a failure of `your-class`'s API.

A file exposing a class SHOULD either wrap it: `module.exports = function () { return new YourClass(); }` or use `if (!(this instanceof YourClass)) return new YourClass()` guards in the constructor to stop users of a class having to worry about whether or not to use new.

At least this seems to be the convention many module publishers seem to adhere to.

Comment · 12 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton