Better HN
topnewbestaskshowjobs
Log inSign up

MetaCosm

1,665 karma · joined Aug 6, 2011 (15y ago) · 708 submissions

[ my public key: https://keybase.io/robertmeta; my proof: https://keybase.io/robertmeta/sigs/UgvPNSEcpGbldHtQnQ_-c8SyRvBKjKTr_CLh0lpK0h0 ]
Submissions

comment 12y ago · link · parent

I actually own the dual-bowls keyboard. :)

As a contractor working on laptops for years, it never become my "normal" keyboard.

comment 12y ago · link · parent

I tried emacs for two weeks without evil -- I felt the nagging start of RSI in two weeks. I did rapidly teach me proper coording... but damn, the use of that many modifiers hurts.

I experimented with god-mode, which seems like a good middle, but I am a highly competent 2 decade vim user, the vim keys are virtually hard-coded into my brain.

comment 12y ago · link · parent

q/ and q: are improved versions of : and / -- when you type q: or q/ it brings up a split with your : or / history in it -- so now you can use normal vim editing commands to edit an existing command or type in a new one, and then hit return and it runs the / or : on that line.

Once you get used to using them, you will only use / or : when the search or command you want is absolutely simple and straightforward.

:normal lets you use normal commands at a command line, often used for automation or scripting stuff... so you can do :normal 5j to go down 5 lines.

C-n is just normal complete

comment 12y ago · link · parent

Spacemacs is interesting... it has the idea of additional layers on top of it, might be usable... still will take a lot to pull me away from my well configured vim setup.

comment 12y ago · link · parent

I learned to touch-type playing Quake. So I can type in very short, curse-infused sentences before getting back to fighting.

comment 12y ago · link · parent

Hangouts continues to build itself an Island as it sheds any even hand-wavy notion of being XMPP.

Slack has a lovely web client and both XMPP and IRC gateways -- meaning most everyone can use their favorite interface.

comment 12y ago · link · parent

The good news is that Slack/Hipchat/Campfire seems to be bringing channel based communication back in the workplace. Most of the places that use them use it as the hub.

There are obviously lots of additional little features (emoticons, inline images, etc) -- but at least with Slack, you can setup an IRC connector and just use your plain old IRC client.

comment 12y ago · link · parent

You nailed it -- I am so sick of the overly cozy backrub style relationship between the media and Uber... Emil Michael and Sarah Lacy are obviously in love!

comment 12y ago · link · parent

"the gear" huh? Exactly what "gear" do they rent?

comment 12y ago · link · parent

You must live in an area with good to great taxi service.

There are areas where taxi service is so spotty as to be scary, were simply getting a cab is a huge pain (IE: called and ordered) and flagging one down is a non-starter. Even after calling in a cab, they often end up being no-shows (get a better fare en-route, etc)... it is scary when you can't get dependable public transit home from a location (stuck alone, outside, waiting for sometimes hours).

Uber started and initially flourished in areas were taxi service was insanely poor due to bad regulation and/or corruption. Uber was basically a response to the godawful taxi situation in SF.

I know I feel far more comfortable when the people I care about are able to get an Uber/Lyft/(similar) service.

comment 12y ago · link · parent

Go is a spec, not a compiler.

comment 12y ago · link · parent

No, going fast is about not doing work twice. It is about the dependency graph. Go was developed to make dependency analysis very simple, so you recompile a tiny number of files even on massive, complex apps... and don't spend massive amounts of time deciding what to compile, or building stuff up just to tear it down (include all the things, use macros to exclude, etc).

comment 12y ago · link · parent

Yeah, I simply think that this is hard to explain in a comment how useful and easy it is. But, I gave it my best Go...

comment 12y ago · link · parent

Then you need to scale and your library isn't actually built in C... or only runs on 2.x (or 3.x) and the cocoon seals up and you can't escape... you scream but no one can hear you... you look for help, desperately clawing at cython, numpy, jython, pypy and C extensions -- they all require you to leave your cocoon far behind... you struggle and break free... suddenly you are exposed to the big wide world outside of your cocoon... you look back and realize the cocoon was just a cleverly disguised prison. /hackernewsstorytime

comment 12y ago · link · parent

No, io.Copy was just the example that everyone would recognize in Go, and likely the first interface you will touch.

My point was implicit, exceptional simple interfaces are sorta magic. They are effortless, and because they are implicit, there is no harm in creating a 1 function interface (or 10 of them). Because your caller is never going to have to do an ... Implements ThingA, ThingB, ThingC, ThingD, ThingE, Thi... it implicitly supports an interface if it fulfills the signature.

So your interfaces end up being tiny (just what you need) and pervasive. This means the way your system ends up working tends to be far more aligned along interfaces than anything else.

When I speak of composition (in this case the composition of functions) I am speaking of the ability to use functions together rather freely and with little effort. This is a bit hard to explain, but it feels a bit like a modern shell, you can wire together lots of commands (functions), from lots of places that have no awareness of each other with the pipe | operator. In Go, simple, minimalistic interfaces act as the glue and let you compose lots of diverse functions together exceptionally quickly.

comment 12y ago · link · parent

Go has nothing unique (and maybe that makes it special). I mean that sincerely, everything it has, has been done dozens of times. Interfaces in Go are implicit (which is important, IMHO) and really, tremendously simple. These two features make them exceptional easy to use, and ACTUALLY used.

I have used interfaces (or equivalent concepts) in dozens of languages and they always felt like far more of a chore, explicitly using X interface or Y interface, ugly complex declarative specs, etc. Go just makes it painless.

comment 12y ago · link · parent

Composition. That is the single biggest thing that has impressed me as my codebase has grown. Concurrency and messaging is nice, but I come from Erlang... I am not easily impressed by concurrency and messaging. Composition, the power of interfaces in complex systems is the key for me. It is what makes me stay with Go, and why I will probably stick around for a long time. It is so obnoxiously useful, without ever getting in my way. Let's talk for a second about the tiny little function

io.Copy(dst io.Writer, src io.Reader)

It reads data from reader and writes to writer... simple. Now what makes this little function so darn useful is it takes anything fulfilling its interfaces (io.Writer and io.Reader). The first way you will probably use it will be to copy between some stream and a file without having to eat up all the memory to store the buffer (not using ioutil.ReadAll for example)... but then you realize you can use a gzip compressor on the writer side, or a network socket, or your own code... and io.Copy works with anything that fulfills its interface.

As you build out a complex application, you start by creating your own functions that take advantage of existing interfaces foo.OCR(dst io.Writer, src img.Image). After that you start building out your own interfaces... like a MultiImage interface that has ImageCount and ReadImage methods that returns the count of images and binary data... but then you realize the images could be big, so you make the ReadImage method return an io.Reader... and now you have gone full circle and are using io.Copy to copy imageX from a stack of images to return to your OCR function that will output the data to an io.Writer which you made actually a gzip writer because text compresses well.

Beyond composition -- obviously, the concurrency and messaging is nice and when you need it vital. The other thing that will help make Go "click" is being very "data oriented" in your design... be vicious and minimal: http://youtu.be/rX0ItVEVjHc (great talk on data oriented design) and be absolutely pragmatic, focus on getting shit done, always...

comment 12y ago · link · parent

Motorcycle statistics are accurately dire, but the reason for this is rather obvious. Most "miles" in cars are commuter miles... getting to work, getting to the store, getting home again.

Motorcycles on the other hand are generally not commuter vehicles, and riders tend to be self-selected for high risk. From people obsessed with speed, to motorcycle gangs who were no gear, to the weekend rider who has very little experience... It even applies to route selection, the trip to the store is well understood, but if you want to have a nice ride on the weekend, you will probably go far off your normal path. Different vehicle type, less miles logged, unfamiliar territory and often inappropriate gear do lead a high risk of injury.

Riding on a motorcycle is risky business, but so is riding a pedal bike in a city. It can be done practically and reasonably, I even used it as my primary form of travel for a little over a year... but it requires proper gear, a full understanding of the bike (and your place on the road), how avoiding an accident differs on a bike from a car.

It will never be as safe as a car, but in the hands of a conscientious intelligent rider, it isn't the death trap it is often saddled with... it is a calculated risk, like many others people take...

comment 12y ago · link · parent

http://golang.org/pkg/html/template/ - data driven, context aware (smart escaping) templates in the standard library and gobs of 3rd party libraries.

comment 12y ago · link · parent

I can't decide if that terrifies me or inspires confidence. But, it is great to see it on the radar and out in public.

comment 12y ago · link · parent

> Are there any reasons besides being new and not-so-popular for that?

It has a level of flux that is astonishing (even compared to other pre-1.0 languages)... now, it could be argued that this is how a pre-1.0 should be, but it makes it very hard to build any serious project around it (note: a few companies have).

comment 12y ago · link · parent

I hope that when Rust hits 1.0 -- they take backward compatibility exceptionally seriously. The pre-1.0 path has been exceptional wild ride, and it has made me a bit gun shy about the language as a whole.

I am no stranger to pre-1.0 languages, I have worked with lots of them, but none have been as frustrating (or interesting) as Rust... the question as to will Rust grow into a production language or an academic toy still remains an open one in my book.

Reserving judgement until 1.0 is out.

comment 12y ago · link · parent

I have been using the tried and true ostrich technique to avoid the topic (the whole systemd debate). But honestly it feels like the file on the right is a whole lot more opaque. If (or when) it goes horribly wrong, I am not certain I would know where to start, as compared to a simple script file where I would walk it / debug it.

comment 12y ago · link · parent

If you are lucky enough to live near a MicroCenter -- they seem to have gotten good stocks and still have a few kicking about.

comment 12y ago · link · parent

Yeah, a lot of magic lives at the tooling layer, and Go is going to leverage that with Go Generate in Go 1.4+. A lot of great tools already leverage that core.

I like that fact that a lot of the tooling/editor support is not picking a winner nor demanding an IDE. Tools like errcheck, goimports, gorename (announced today), oracle, gocode, godef, godoc, gofmt, golint, gotags, ... (on and on) ... all can be leverage by IDEs, emacs, sublime, vim and others equally... or just used from a console or in your own stacks.

comment 12y ago · link · parent

Yeah, it was horrible to read. It is a rare mix when someone is -- self-important, offensive, long-winded, ill-informed, and manages to invoke Godwin's Law.

For awfulness: 5/5

comment 12y ago · link · parent

Do you feel docker and 0install fill the same space?

comment 12y ago · link · parent

Wow -- I consider this "The Missing Manual" for Erlang production developers. A lot of this you learn over time -- as you work on production systems, but this will cut down the pain significantly.

Nice to see another boon to the community come from Fred.

1
456
24