Better HN
topnewbestaskshowjobs
Log inSign up

chimeracoder

21,186 karma · joined Oct 12, 2010 (16y ago) · 6,050 submissions

Inveterate builder.

Personal site: http://www.adityamukerjee.net/

My email is pretty easy to guess from my username.

Submissions

comment 13y ago · link · parent

I'm the Hacker-in-Residence at Quotidian Ventures, an early-stage venture firm in New York. My background is in server-side engineering in data science.

Ataub24 explained it well, though it varies widely from firm to firm. In my case, I spend a significant chunk of my time working with the partners and the rest of the venture team on managing the investment portfolio and helping with dealflow. When there are opportunities to use technology or data to improve our workflow and decision-making process, this can come in handy, though that's not always the case. A lot of this is similar to what an EIR might be responsible for doing as well, though with a technical bent.

The rest of the time can be thought of as "20% time", except without a specific % attached to it. While there's the possibility of building a project that could be spun out, this isn't an explicit goal or requirement; my value-add comes from my ability to assist with dealflow and the rest of the work on the venture side, so the rest of my time doesn't come with any obligation, so to speak. In this way, it's not too dissimilar from a traditional 'artist-in-residence'. (This is where Quotidian differs from a number of other firms).

comment 13y ago · link · parent

Out of curiosity, what kind of bad experiences did you have? What were you disappointed with?

comment 13y ago · link · parent

> Friends is bi-directional, no?

Not in Livejournal lingo - remember, this is pre-Facebook.

Livejournal's 'friend' and 'friend of' worked exactly the same as Twitter's 'following' and 'followers'.

comment 13y ago · link · parent

Ah, too bad I won't be in London then - I would have loved to hear that!

(/me is a Go coder, (former) Scala user)

comment 13y ago · link · parent

Pretty awesome to see a startup using Go as a basis for their backend.

> Interestingly, the team used Google’s Go programming language for a number of critical components. The team previously experimented with using Cassandra and Scala for its datastore, but eventually settled on Go

I've been using Go a lot myself recently, and this seems like the kind of use case it would be perfect for. In fact, when I saw the original version of the Errplane website, I assumed it was written in Ruby for some reason, and I remember thinking 'Man, it would be so cool if they'd written it in Go instead.'

comment 13y ago · link · parent

Since a number of other people have already mentioned Dropbox, I'l mention something slightly different: git-annex (http://git-annex.branchable.com/)

It's a more general piece of software, but combined with git-annex assistant and your choice of hosting provider(s), it lets you create your own cloud storage, so you have potentially no concerns over privacy[0].

If you're looking for fault-tolerance, git-annex lets you distribute this storage over an arbitrary number of providers easily, so you can get redundancy between an array of cloud hosting providers.

I've been using git-annex for several months now, and while it's still a work in progress, I haven't had any issues at all with it. It seems to be very reliable and bug-free; the main things being developed now are additional advanced features and an improved GUI interface, etc. For people already accustomed to using git on the command line, though, it should be a seamless experience.

[0] This depends on how much you trust Amazon/Rackspace/your colo/etc., but that's a separate level of trust altogether.

comment 13y ago · link · parent

Also, a regex will replace matching strings in incorrect places (like a string literal that happens to contain Go code).

You can design your regex around this, but at some point, you'll end up just reinventing a Go parser inside a hideous, unmaintainable regex. So you might as well just use gofmt.

comment 13y ago · link · parent

Go fmt is my single favorite feature about the language.

Coming from a background in Lisp, I don't find much in Go that seems very 'elegant' or 'beautiful'. What I find is that everything - including the Go source code itself - is perfectly standardized (and therefore immediately readable).

I don't have to worry about different coding styles, about semicolons vs. no semicolons[0], about having more than one way to express the same code. I can skim the code easily because the structure is so uniform across all standard and community libraries.

That's a different kind of beauty from chaining macros and cons cells, but it's beautiful nonetheless.

[0]https://github.com/twitter/bootstrap/issues/3057

comment 13y ago · link · parent

> (most bizarrely "Straight (gay)"?)

There's a whole subgenre of gay porn featuring 'straight' men having sex with other men.

It varies from 'guys who look "passably" straight' to 'guys who are "straight" and have girlfriends but get tricked/coerced into having sex with other men".

comment 13y ago · link · parent

How about forcing keyboard shortcuts that are impossible to disable?

The two biggest offenders of this are Google Groups (the new layout) and wired.com. Both have mappings for "H" (capital), which I use to go back a page (via Vimium).

However, they decide instead that this should hide all the content and leave me on the page.

In the case of Wired.com, it sends me to a random article.

Worse, Google Groups refuses to load at all if I disable Javascript, telling me I must activate Javascript in order just to load a mailing list archive.

comment 13y ago · link · parent

So all someone has to do is break into my locker while I'm at the gym (assuming I remove my ring and cell phone before I go swimming, etc.)?

comment 13y ago · link · parent

> Mr. Woo said a Grindr survey of its users found that two-thirds of them were using the application to find new friends, to network or to kill time, as well as to hook up.

I keep hearing this from friends, and I honestly don't get it. The couple of times I've gone on Grindr, all I saw were things like: http://www.douchebagsofgrindr.com/ and http://www.reddit.com/r/lolgrindr . Those certainly represent the worst-of-the-worst, but it's clear what the 'Grindr community' is looking for when they log in to the app.

On the other hand, a friend of mine just told me last week about an in-depth political debate he got into with a guy on Grindr. While I can think of of a few ways to segue from 'check out this dick shot' to 'what do you think of Mitch McConnell', it still leaves me a bit baffled to hear that this actually happens.

My perspective may be a bit skewed because of my work with more, um "traditional" online dating (a phrase which makes me chuckle to type), but I have a hard time understanding how such meaningful conversations arise from a platform where people are quite clearly on the hunt.

Sidenote: It also amuses me how many of Grindr's ads are clearly hetero-oriented ('sexy [female] strippers nearby', etc.). I know they try to keep up the pretense that it's a 'social networking app for men', not just a hookup app for gay men, but.... still!

comment 13y ago · link · parent

Yes, that's actually more or less what NullString does. It's a struct that contains two fields: String and Valid (a boolean). It also implements a couple of other interfaces, but at its core, it's what you describe.

Functionally, they're basically the same thing - it's only a syntactic difference whether you check whether a pointer is nil vs. checking whether a boolean is false. At some point, you either have to do a check or coerce a null value into a reasonable value. (Or, I guess, just risk it!).

Functional programming purists may cringe at the analogy, but this is is all more or less the same functionality as Scala's 'Option' monad - it just depends on how you want to express it. The only difference is that the Go compiler doesn't force you to check against nil before dereferencing, but if you want to ensure the safety before converting the database value to a String and forgetting about it, then the struct will do that.

comment 13y ago · link · parent

End up? That's basically where they started. The popularity of Facebook in its very early days was because they made it easy to "stalk" your friends (and/or crushes) via the photos that they shared.

If Facebook hadn't made photographic integration so central to their platform, I don't think they'd have taken off the way they did.

That's also why they were so scared of Instagram - they knew how powerful a network of photo sharing can be.

comment 13y ago · link · parent

> If you define a custom type Foo and want a nullable version, you have to write the NullFoo boilerplate yourself. This is what generics are for.

I don't want to descend down the rabbit hole of 'Go doesn't have generics', but as I said above, in this case, pointers do exactly what is needed.

comment 13y ago · link · parent

I don't know if you're using SQL or NoSQL databases, but if the latter (and your data is stored in JSON), you may find this package I wrote useful: https://www.github.com/ChimeraCoder/gojson

Instead of unmarshalling to map[string]interface{} and then doing awkward type assertions and checks, etc., this will generate structs that you can unmarshal into. That way, if the unmarshalling succeeds, you're guaranteed to know the types of all your values instead of checking them each time.

As for null values, it automatically uses a pointer in the struct definition if it finds a null value - writing that package was how I first learned about this entire topic, actually, which is why I mention it!

comment 13y ago · link · parent

> Using a pointer adds an extra heap allocation, though.

If you want to dereference it immediately (as they seem to want to in the post), this isn't really going to affect you. You probably want to pass around a pointer, anyway, so that you're not copying values over each time.

> The right thing would be to use a Nullable<T> type and define a custom marshaller once and for all... but Go doesn't have generics, so you can't do that.

Sure you can - that's literally what the NullBool, etc. types do

A pointer to a string IS a 'Nullable<String>' - what they need to do is define a way to unwrap this cleanly, which is easy.

comment 13y ago · link · parent

Well, it seems that they've just chosen the second option (no pun intended) that I've mentioned above - that is, to define a monad to abstract this. There may be some benefit to doing this instead of pointers, but as you've found yourself, using a monad requires you to pass that monadic type up the calling chain (OR to unwrap that and deal with both cases safely).

I haven't used SQL databases with Go much, so I'm just looking at NullFoo types now for the first time, but every time I've thought I could improve on the design of Go in some way, the folks on #go-nuts have (kindly) shown me that I wasn't really thinking about things the right way. So, there's probably some reason that it's been designed this way, but I'm saying that purely based on prior experience with other Go matters, not with package "database/sql".

comment 13y ago · link · parent

> Go does not allow many basic types, such as strings or booleans, to be nil. Instead, when a type is initialized without a value, it defaults to the “zero value” for that type. This is frequently useful, but complicates database interactions, where null values are common.

This sounds like they weren't defining their types properly.

If your value can potentially be null, it should be a pointer to the type, not the type itself. A string can't be null, but a pointer to a string can.

(In fact, there's no magic going on here - 'nil' is simply the zero value of a pointer. So you always get the zero value - you just need to choose the type that has the zero value you want... which is, in this case, a pointer, not a value).

As explained well in this thread[0], this is the most accurate representation of the data itself. You could create your own type that automatically decodes all null values to whatever the zero value is (empty string, etc)., but then you lose that information.

Yes, this forces you to do a check for the null value before using the data for the first time (or to invent your own monad for abstracting this), but at a high level, that's what you have to do in every language.

[0] https://groups.google.com/forum/?fromgroups#!topic/golang-nu...

comment 13y ago · link · parent

For what it's worth, you may be interested in taking a look at Docracy (http://www.docracy.com/), which is doing what you describe.

comment 13y ago · link · parent

Honestly, I just like having them email me when I've unsubscribed. That way, if somebody else does it, I know because I receive a notification.

If I'm unsubscribing from a spammy newsletter, I don't mind them sending exactly one "unsubscribe confirmation" email immediately that I can then have in my records later on in case I forget whether or not (or when) I unsubscribed.

comment 13y ago · link · parent

> But http://macports.org has a solid repository of packages.

The problem comes when you start wanting to use things that aren't on Macports, and are only on homebrew (or maybe fink). But homebrew won't work with macports! So either you have to install one package or the other manually, or you have to install both macports and homebrew, which means that not only are you dealing with an unsupported setup, but you're also dealing with using two separate package managers for the same operating system.

Oh, and don't forget that anything installed via the App Store is completely independent of all of the above.

As a Linux user, I find this concept mind-boggling. I don't have time to keep track of a thousand different package managers. I just want one that handles everything.

comment 13y ago · link · parent

What do you mean? tokenadult is ALWAYS at the top! ;)

comment 13y ago · link · parent

Well, no, right now average score is meaningless. But if having a higher average score means that you have a stronger voice, as OP suggested, then people will start to care about those numbers.

I assume the goal is to encourage high-quality discussions (including extended discussions/back-and-forth), in which case average comment score will work against that.

comment 13y ago · link · parent

> Alas I don't know for certain, but my guess is that if you have a high average karma then your posts are automatically weighted higher, so you can inject your opinion into almost any topic at any time. This affords me the luxury of being a contradictory whine even if I come late to the party!

One thing I dislike about the 'average karma' is that it discourages engaging in an extended discussion. For example, if you reply to this post, you may get a number of upvotes, but probably not as many as your original post. This creates an incentive just to ignore replies (when possible) so as not to bring down your average comment score.

comment 13y ago · link · parent

Linux is pertinent here because we're talking about X11, but it should be noted that this is by no means specific to Linux - the same could be said about any OS with widespread use by different groups of people.

comment 13y ago · link · parent

> don't they just have one opening that does everything

Yes, it's called a cloaca: http://en.wikipedia.org/wiki/Cloaca

comment 13y ago · link · parent

> Adderall / Vyvanse is prescription meth (something I've heard from several of my AD(H)D friends).

No, that's Desoxyn[0].

What you may be referring to is that Adderall, methamphetamine, and MDMA have remarkably similar effects, which is true - the active ingredients in all three are metabolized in a similar manner, and the main differences are the means of ingestion, the bioavailability, and set/setting. In methamphetamine, for example, the extra methyl group simply ensures that it can cross the blood-brain barrier more easily, but it doesn't change the actual effect of the drug in itself.

[0]http://www.rxlist.com/desoxyn-drug.htm

comment 13y ago · link · parent

> but how can they justify working with an entity that has such a horrid human rights record?

As pointed out yesterday on the Bradley Manning discussion, the US is starting to get to the point where it can't credibly criticize other countries for their human rights abuses, given what goes on in this country.

I don't want this to turn into a discussion of whether the US is worse than North Korea, but both have abused - and continue to abuse - human rights in abysmal ways.

1
166167168
202