News for hackers. Stuff that matters.

clux

Re:Fair Trending: Objectively-Ranked Trending YouTube Videos on Sunday September 23, 2018 @05:12PM (#18053246)
Not sure if it helps much. It still looks like the same clickbaity garbage that's in my regular trending tab.
Re:Hands on with Linkerd 2.0 on Friday September 21, 2018 @04:11PM (#18042321)
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.

Re:Turning Down a Blockchain Job Offer on Monday January 22, 2018 @02:36PM (#16207212)
Crypto still just means hidden or secret though. Both sides here probably ought to increase their specificity by one level.

Interestingly, r/crypto is the cryptography subreddit and has https://www.reddit.com/r/crypto/comments/7jrba2/crypto_is_no... stickied.

Re:Fish: A user-friendly command line shell for macOS, Linux, etc on Wednesday December 13, 2017 @07:06AM (#15913697)
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.

Re:Umask setting is ignored by npm for some directories on Wednesday October 26, 2016 @12:45PM (#12798064)
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..
This is cool. A few funny ones I found:

ExampleTester

Commanater

java-cruft

Generatter

the-git

Damn that Fermat margin.
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.

Re:CryEngine out on GitHub on Tuesday May 24, 2016 @02:22PM (#11764183)
There are also 3 gotos in that function.
Re:English Syntax Highlighting on Wednesday March 16, 2016 @11:02AM (#11297854)
I would totally install a sublime plugin or something like that for this.
Re:GitHub Outage on Wednesday January 27, 2016 @07:42PM (#10984935)
Yeah, got that too. Maybe time to go to bed.
Re:Advantages of Monolithic Version Control on Monday May 18, 2015 @11:00AM (#9564814)
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.

Re:Stop Using Constructors in JS (2012) on Thursday November 06, 2014 @10:56AM (#8567572)
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.

Re:Hide this in your coworkers' JavaScript code tomorrow on Monday March 31, 2014 @09:53AM (#7501435)
Alternatively, put this in your code tomorrow to pre-empt all the April 1st bastards:

    Object.freeze(console)

Or safe JS up entirely: https://gist.github.com/clux/3823024
Re:Doge2048 on Wednesday March 19, 2014 @08:54AM (#7428262)
Managed a 4096 piece (more than I've done on normal 2048). Unfortunately, the 4096 background is the same as 1024 (derp).

Here is a picture of my layout before it collapsed into a 4096: http://i.imgur.com/SnmhESY.jpg

Re:An open question (rant) about Node.js on Friday March 14, 2014 @11:14AM (#7399277)
Asynchronicity isn't an optimization, it's a simplification. Blocking code and threads are hard to reason about, but callbacks are simple. You still have to deal with errors in a synchronous world, and an evented system allows you to deal with branching event possibilities sanely.
Re:In Praise of Haskell on Monday November 04, 2013 @12:34PM (#6669885)
I did use cabal-dev, and it only moved the problem from being a global problem to a local one. Is the problem that you cannot have several versions of the same package solved? Because this really needs to work, otherwise you effectively have a limit on how many modules you can use sensibly without expecting things to break.
Re:In Praise of Haskell on Monday November 04, 2013 @12:12PM (#6669728)

  What's not to like?
Cabal, which unsurprisingly is not mentioned. Dependency hell makes it stupidly difficult to rely on other people's code on a large scale. I'd rather write uglier code in JavaScript if it means having access to other people's packages immediately and without complications.
Re:Yeoman 1.0 Released on Saturday August 24, 2013 @05:33AM (#6268193)
I am sure this is good, but just how much it pulls down to do something basic is ridiculous:

  $ yo webapp
  $ npm ls | wc -l
  240
Re:Fun with JavaScript Arrays on Wednesday June 12, 2013 @06:31AM (#5867397)
The default lexicographical sort order on an array of integers is unexpected, yes.
Re:Stay away from rebase on Tuesday April 30, 2013 @12:46PM (#5633299)
Ad hominems generally are nothing else..
Re:Don’t worry that your job is pointless on Thursday March 14, 2013 @09:44AM (#5374867)
There's plenty of ways to make a difference in the world without having a job that is immediately altruistic.

http://80000hours.org/career-advice has a lot of good information along these lines.

Re:Ember.js or Angular.js? on Saturday February 16, 2013 @04:15AM (#5230980)
Neither. Small modularized CommonJS files that serve the need of what you are doing is always faster to write and easier to load in your head than large frameworks that you never fully understand. Learn to use npm and use it well.
Re:Gamma-ray burst 'hit Earth in 8th Century' on Monday January 21, 2013 @06:50AM (#5091042)
Speculative non-article..

From the last paragraph:

He said: "A solar proton event and a short gamma-ray burst are both possible explanations, but based on the rates that we know about in the Universe, the gamma-ray burst explanation is about 10,000 times less likely to be true in that time period."

Re:3D TV is Dead on Wednesday January 09, 2013 @11:03AM (#5032151)
From near the end of the article: "This isn’t to say that 3D TV is dead — but it’s certainly no longer the next big thing."

Linkbait title.

Re:Fay: a subset of Haskell that compiles to JavaScript on Tuesday January 01, 2013 @04:15AM (#4992252)
I'm not big on the glaringly inefficient transpilers that Haskell has come up with. You can replicate a lot of Haskell's functionality in JavaScript very elegantly.

See for instance:

* https://github.com/clux/autonomy - prelude like thing

* https://github.com/clux/subset - basically Data.List

* https://github.com/clux/operators - currying helpers

* https://github.com/clux/interlude - a collection of the above 3

It has made my JavaScript development very enjoyable. JavaScript really doesn't suck have to suck. You can write very elegant code in it. It's just not as elegant as Haskell.

Sorry, didn't get it.
You're saying arguments are more convincing if it wasn't for ad hominem x? Says more about you tbh.

Older »