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 9y ago · link · parent

> Churchill's decisions directly lead to the death of millions of people in India. He's no better than Hitler

It gets even more ironic than that. During the 1940s Bengal famine, things were so bad that the Axis powers offered to step in and send humanitarian aid. Churchill not only refused, but he tried to prevent the newspapers from printing news of the offer, so that people wouldn't know how truly unnecessary their starvation was.

Lest I be mistaken, this is not to say that the Axis powers were somehow anything other than evil themselves. But it does highlight the level of hypocrisy of the British to claim the moral high ground when their own leader was intentionally starving millions to death out of spite. (And yes, it was spite - read what Churchill himself said on the topic).

comment 9y ago · link · parent

> Even though they mention it, I came across this chart a while back that shows just by how much bigger it was than the recent largest corporation

FYI, that's the Dutch East India Company, which was separate from the British East India Company, which this article is about.

The British East India Company was actually much larger.

comment 9y ago · link · parent

> It is actually amazing how little British folks today know about their own historical misdeeds, they may accept the issues towards USA and other countries but tend to downplay atrocities magnitudes higher in India and other countries

To add to this, it's not just the British. The Portuguese, French, Dutch, Danish, and Swedish (among others) colonized parts of India long before the British did, and the Portuguese and French also kept their colonies in India much longer. When people talk about India's independence in 1947, that's just referring to the independence of British India. The French stayed until 1962, and the Portuguese held their colonies until 1975.

Amusingly, most Portuguese and French people I've talked to under the age of forty[0] or so are genuinely shocked to learn this.

On the other hand, most British people are apparently proud of their colonial plundering[1], so I guess everyone has a long way to go still.

(P.S. If you're thinking of responding to this with a comment about how the British "improved" India by industrializing it, or all the "benefits" India got from being plundered for 450 years, please save us all the trouble and don't. These are typical revisionist talking points that are easily debunked as ahistorical with some basic research, and they're put forth to distract from the sheer volume of wealth that was stolen, the amount of infrastructure that was destroyed by colonial regimes, the genocides and other war crimes that were committed by the colonizing countries, and so on. For most of recorded history, India (Bengal in particular) was the world's largest economy - over 25% of the world's GDP[2] - and every discussion that attempts to rationalize that loss after colonization without recognizing the value that was destroyed, stolen, or outright murdered ultimately into revisionist white supremacist history, which is not what HN is for.)

I know I'll get eventually downvoted for this, because talking about the brutality and legacy of European colonialism is always unpopular on HN for obvious reasons, but it's important enough that it needs to be said.

[0] ie, young enough that this wasn't in their lifetimes

[1] http://www.independent.co.uk/news/uk/politics/british-people...

[2] https://www.coursera.org/learn/passport-to-india/lecture/uYU...

comment 9y ago · link · parent

> Almost all "ordinary humans" manage to keep and use a pair of physical keys to there home, among other things

And what happens when someone loses their encryption key? This happens often enough with house keys that there are entire businesses set up for emergency locksmith services.

comment 9y ago · link · parent

> They only record debts that last longer than 3 months and of those delete all record of them after 5 years after being paid off

That's the same as the US, except that here they expire after 7 years instead of five.

> Mortgage interest rates are currently 1-2 points less in The Netherlands than they are in the USA, so there's no correlation I can see between America's vampire capitalism credit model and cheaper loans.

That's a rather meaningless way to look at it, because there are a myriad of factors that affect aggregate mortgage rates, and credit ratings are just a tiny piece of it.

It's like saying "Well, they keep tell me that the world is getting warmer, but it's still pretty cold in my neighborhood".

comment 9y ago · link · parent

> - What is the best way to map objects to/from JSON? - What is the best way to map objects to/from a database?

I'd recommend using the JSON to generate your struct definitions, in a schema-like fashion. I wrote a tool to automate that process: https://github.com/ChimeraCoder/gojson

I use this as a step in the build system for the projects, which ensures that the definitions stay in sync with the API clients/servers themselves.

comment 9y ago · link · parent

> You get a bump from flying more expensive fares for MQMs too, not just straight distance, but not as much as you might like if you're paying 3-4x for a fare...

Hm, maybe if you're flying first class/Delta One, but I'm pretty sure you don't get any bump from any of the various fare classes that comprise Basic Economy/Main Cabin/Comfort+, even though some are more expensive than others for the same seat.

comment 9y ago · link · parent

> Interesting. Wondering if this means earning only redeemable SkyMiles[1][2], or actual Medallion Qualifying Miles (MQMs) - the ones that actually count towards status on Delta's loyalty program.

I would bet absolutely anything that there is no way Delta's going to allow people to earn MQMs off of Lyft, except maybe a fixed number as a one-time signup promotion (the way they do for the higher-fee AmEx cards). But even that's unlikely.

The whole point of MQMs is that there's basically now way to earn them except by butt-in-seats flying, measured as the crow flies. If you pay $195 or $495 for the two higher-end AmEx cards and spend $25K/year, they throw in a tiny number as a token gesture. But they introduced this system specifically as a result of people complaining that it was too easy to get medallion status on Delta without actually flying.

Beyond that, I'm not aware of any generally-available way to get MQMs on Delta.

comment 9y ago · link · parent

> Out of curiosity, what is your take on clojure then ?

I have a lot of respect for Clojure, though I don't have much of a use case for it.

At the time I tried it, I was annoyed its semantics for '() and nil - they're sort of a hybrid between how Common Lisp does it and how Java does it. Which makes sense - the Common Lisp approach would be a nightmare to implement on top of the JVM while maintaining interoperability, but as someone whose primary language before that was Lisp, it was a bit weird to try and get used to.

I love functional programming - before Go, Lisp did pay a number of my bills, after all! - but to me it feels more like art than work. It's fun to figure out the most elegant, Lisp-like way to approach a problem. It's fun to convert an arbitrary task into a language-recognition problem and then write the compiler to recognize that language as the implementation to the solution. I get the same feeling from it that I do when I finish a drawing and stand back to look at it. I don't want to touch it, lest I smudge it - I just want to sit back and appreciate the finished result.

But it's a completely different kind of satisfaction that I get from writing Go - there, the fun is in how quickly I can solve a problem, and how confident I am in the reliability, robustness, and long-term maintainability of my initial effort. That's where Go really shines for me, and it's not like the joy of having created an beautiful work of art. It's more like the satisfaction of having built a solid American Colonial house for yourself to live in.

I like them both, but for my professional work, I'll choose Go every time.

comment 9y ago · link · parent

I've been writing Go professionally, full-time, for the past five years.

I'm a polyglot, so before Go, I loved exploring every new language I could get my hands on[0]. I still do, for fun, but Go is the one language that has kept me hooked all this time. It's not for any single feature, or for the community (though that's a great part of it). It's because it's the only language which I feel gets out of the way for me and lets me write powerful, robust, and maintainable software quickly without having to think or struggle against the tools.

For me, Go is like trying to do surgery wearing latex surgical gloves, instead of wearing thick woolen mittens.

[0] Seriously: if you can name it, and there's a working Linux x86_64 compiler/interpreter for it, I've probably tried it.

comment 9y ago · link · parent

> If you fail to see how the American public would have a negative reaction to some kind of redistribution of wealth I think you should think about the average American's reaction to the idea of a socialist politician.

That's not it - I'm not saying that the American public wouldn't have a negative reaction to "redistribution of wealth". I'm saying that the American public has a negative reaction to "redistribution of wealth" when they don't think it benefits them. In other words, they're generally fine with wealth being redistributed from other people to them, which is most evidenced by people of all income levels usually (though not always) being on board with federal money coming in to their district. This generally takes the form of federally-funded infrastructure projects or targeted subsidies.

I'm using that to explain why people in between welfare-level poverty and comfortable wealth would have a different reaction to a stipend that (they think) is coming out of other people's tax dollars than they would to current welfare programs (which [as they perceive] don't benefit them).

comment 9y ago · link · parent

> I don't think richer people would think that the government giving $1000 a month to everyone would see that as benefitting themselves, there's your opposition to increasing BI or having it at all.

Huh? No, the point isn't what the richest people would think - they have an incentive to oppose either welfare or cash handouts. The point is that currently, welfare only targets the people with the lowest voting power, because they're both a very small bloc and also a bloc that doesn't vote very consistently in the first place. So there isn't a huge political incentive to increasing welfare.

As soon as you make that a handout that targets everyone (or appears to target everyone), you've suddenly put the largest voting bloc - those who are neither very wealthy nor on welfare - in a position where they will start to clamor to increase it more and more, because they'll see that as money flowing towards themselves.

comment 9y ago · link · parent

> If heat lamp slop is your thing, by all means. Not sure it's that comparable, though.

Not sure where you get the idea that that's what I'm eating.

High-quality prepared food is pretty cheap in Manhattan, compared to the price of groceries and compared to the price in other places in the US. When you think about the underlying economics of it and the region, it's not surprising.

comment 9y ago · link · parent

> The way that question was worded was a straw man. I’m referring to a general principle regarding transfer payments. They’re usually more simple ways to reach a desired outcome than alternatives.

Yes, and I'm explaining that that statement isn't true (in the sense of consensus among economists) in any way that is applicable to public policies. Certainly not this one, because that's explicitly not a dichotomy being proposed - there's no tradeoff being proposed between the $1000 stipend and all of the other forms of public assistance that the participants could be or are receiving.

It's only true (in the sense of consensus) on a micro level, looking at the value to an individual of cash vs. in-kind payments, ignoring secondary factors, ignoring externalities, and ignoring positive or negative feedback. That's not a relevant framework when discussing public policy.

comment 9y ago · link · parent

> Is everyone currently clamoring to elect politicians that want to increase welfare and other "Great Society" programs?

People aren't clamoring to increase welfare because the people whom it's perceived to benefit aren't the ones who actually have the largest voting power.

People absolutely do reward politicians for securing funding for their constituents, usually in the form of earmarks, targeted tax breaks (e.g. disaster relief, geographically targeted bailouts), and stipends. In fact, it's one of the strongest predictors of support for politicians representing smaller districts.

Only at the national level (ie, when running for president) does it become problematic to be perceived as having spent Congressional funds on your own district, because the new constituency includes people who had their money "taken away" in order to provide those earmarks.

comment 9y ago · link · parent

> The irony of it is that this sort of a system was one of the few things Keynes and Friedman agreed should be part of public policy.

Milton Friedman did not say that this should be part of public policy, though his words are commonly interpreted very generously to imply that he did, by people who wish to demonstrate that this is a policy with "conservative support".

What Friedman actually said is that the cash value of all welfare and other support systems is greater than the in-kind value. That's a pretty narrow statement. In theory, that sounds like it's a statement of support, but it's really not. In practice, basically nobody is actually proposing doing away with all welfare, social security, government subsidies, etc., because it would be a political non-starter. Even if we scope this discussion to the context of the YC research experiment, that's plainly evident, because there's no stipulation that the participants abstain from all other forms of public assistance, as well as deduct the cash value of every other stipend and subsidy that they receive from the $1000 payment.

Comparing what Freidman wrote about to this proposal is like trying to discuss Adam Smith in the context of the political left, on the basis of the common term "liberal". Yes, there technically exists a frame of reference in which that's a meaningful comparison, but it's not a particularly useful or relevant frame of reference, and it does nothing but mislead and obfuscate the actual details of the underlying facts.

comment 9y ago · link · parent

> Economists largely consider payments like this to be the best way to enact policies. It gives people more options instead of trying to control through legal pressures.

That's not true at all, and in fact, the last time a large number of economists were surveyed about a proposal, the response was overwhelmingly in opposition: http://www.igmchicago.org/surveys/universal-basic-income

Many economists would agree that, ceteris paribus, cash is "better" than an equivalent amount of earmarked money in most situations, because cash is more flexible. But that's a very narrow statement that isn't applicable here, because it's assuming that the set of people receiving the money would be the exact same (it's not, by the definition of "universal"), and it's also assuming that there are no other external consequences to the proposal (another topic which is, at best, debatable). So even that point of agreement among economists isn't relevant to this proposal.

comment 9y ago · link · parent

> Unfortunately the epic comment thread, very talky, none of the key stack holders involved, largely irrelevant chatter... Is a case in point of why github isn't the answer for everything.

Many of the important stakeholders, both those employed by Google and those who are not, are weighing in on the topic.

And the comment thread looks fairly similar to the mailing list discussion of any moderately controversial issue, which is not unique to Github (or even the Go project).

comment 9y ago · link · parent

I live midtown, and yes, it is incredibly easy to find prepared food for dinner that is cheaper than what these meal kit services charge, or even cheaper than the equivalent in groceries. I'm not talking about street carts either.

comment 9y ago · link · parent

> Where can you eat for less than $10 besides McDonald’s or a pizza place?

Depends on where you live. In New York, for example, it's incredibly easy to find good food for under $10, even for dinner.

comment 9y ago · link · parent

Where do you live?

I had the same experience with Blue Apron, but I also live in Manhattan, where it's about 20-30% cheaper for a single person to get takeout/delivery than it is to buy groceries and cook - and that's before accounting for the cost of time.

Comparing the prices in the suburbs, though, that's not the case. And as soon as you add a second person (or more) to the mix, of course, it becomes cheaper to cook.

comment 9y ago · link · parent

> I seem to recall hearing that was finally being fixed, but a quick search of the docs suggests not. I think it's just GOROOT (another bizarre idea) rather than GOPATH that's no longer strictly required in the latest version of Go.

GOPATH is set to `~/go` by default, and if your projects use vendoring (which they should), you can almost completely ignore that it exists. Packages in `./vendor/` will take precedence over anything in your GOPATH.

comment 9y ago · link · parent

> I like Makefiles and Makefiles for Go are especially simple, but they don't play well with "go get", do they?

They don't (`go get` won't execute anything defined in a Makefile), and the approach that the author takes to vendoring is also going to cause problems.

It's possible to have a Makefile that serves as a shim for the standard and recommended Go workflow, but it's not very easy, and it's ultimately an uphill battle. It's also not going to be cross-platform, unlike the Go toolchain.

comment 9y ago · link · parent

There are a lot of problems with this approach and a few errors in the post, but I'm just going to highlight the most significant one:

> If the project uses CI/CD or just for consistency, it is good to keep the list of dependencies used in packages. This is done by the “deps” task, which should get all the necessary dependencies by “go get” command.

This is a very strong anti-pattern. Everyone should be using a dedicated version management tool (ideally dep[0], but there are others), which handles this seamlessly and behind the scenes. Introducing another place where dependencies are tracked and can be installed is a recipe for problems down the line.

[0] https://github.com/golang/dep/

comment 9y ago · link · parent

> Would publicly funded elections help this problem? I know NYC and some states have Fair Elections implemented in some form

No. New York already publicly funds elections. The problem is that the parties have constructed a system that allows them to bypass voters' wishes entirely[0], and that system is beyond voters' control[1][2].

On top of this, New York voter disenfranchisement and gerrymandering is actually way worse than pretty much any other state that you usually hear about in the news. The difference is that it has bipartisan support in New York - since both parties benefit from it equally (at the state level), there isn't any political benefit (to those in power) to drawing attention to it and fixing it.

This system also affects the state courts, so no state court case will ever overturn it. So, short of a federal court case like what happened in North Carolina, there's no way to fix it. And I doubt that it's ever going to happen, because neither left-wing nor right-wing groups actually want to fix it.

[0] https://www.nytimes.com/2017/09/18/nyregion/new-york-politic...

[1] https://twitter.com/chimeracoder/status/908486948972580864

[2] https://twitter.com/chimeracoder/status/910229632590467072

comment 9y ago · link · parent

The reason this matters:

In some (most?) states, currently-incarcerated prisoners cannot vote, but they do count towards the population of the town in which they are incarcerated for things like Congressional districting.

So, this has the effect of massively skewing political power towards the demographics of the non-incarcerated people living near prisons, at the expense of the districts where the incarcerated people actually came from.

comment 9y ago · link · parent

> Startup stock options, if you exercise before a liquidity event, are given a cap gains tax based on the de facto market cap.

That's not really the same thing. ISOs are taxed (as income) because you're purchasing something for below-market price, so the difference between the market price and the price you pay is income. If you hold onto it for long enough, you may then be able to qualify for capital gains tax when you sell it, but that's different.

And in addition, that's the individual who's being taxed on it (the value of their own income).

If you think of how this works similarly for publicly-traded companies, it's easier to understand.

comment 9y ago · link · parent

> Slack is also used for some casual communities as well. For instance if I were to use the Screeps/EVE Online slack like I do a work one, I'd never be off my phone.

Slack's been pretty clear that they don't want their product to be used for this use case, and have even nudged some larger "casual" communities and open-source projects off. So it's not surprising that they plan their feature roadmap according to what (they think) will be useful to businesses.

comment 9y ago · link · parent

> In contrast, Google has said in the past that GCP is not used by Google engineers (and it shows, occasionally GCP goes down but actual Google products do not!)

Amazon (the shopping website) is generally online when AWS goes down, so that doesn't really indicate anything.

Also, GCP is directly modeled after the infrastructure that Google uses to develop internally. I don't know if it's actually the same exact infrastructure that they sell as GCP, but it's not like they're developing GCP fresh and selling it.

comment 9y ago · link · parent

> Not doing so is way worse though. You could be leaking all sorts of internal requests to a malicious attacker who does register that domain name.

It is, but again, it doesn't help that none of the reserved TLDs actually address the primary use case here for a lot of companies. We can both agree that the companies should be registering their private domains, but clearly most aren't, and there's no reason they shouldn't have a free, reserved-for-private use space that does address it.

1
818283
202