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

> It's worth noting that some of the Go inconsistencies derive from the language designers desire to make the grammar regular

FYI, the grammar is context-free, not regular.

comment 13y ago · link · parent

> But all the inconsistencies in the language design have made learning it feel like a chore.

That's interesting. Go is one of only two languages that I've been able to learn by writing production code without feeling like I'm getting "held back" by my inexperience (or, on the flip side, holding others back). It never felt like a chore to me; there was only one "gotcha" that caused me a significant amount of frustration.

> So what’s the response from Go’s designers about the requests for nullable strings? To treat the empty string as a special value. Sometimes it’s like they haven’t even read their own design justifications.

The only time I've run across this is with JSON encoding/decoding, but there's a really easy solution to this (take a look at gobson, for example[1])

[1] http://labix.org/gobson

comment 13y ago · link · parent

> Gmail often snips emails I receive, meaning the Unsubscribe link at the bottom is cut off.

It also makes these emails 100% unreadable on a mobile device, because they don't include the link to the full message on phones for some reason, even though they do on their web interface.

comment 13y ago · link · parent

I'd say it's much more in line with Alan Kay's definition[1] of OO than most other languages.

It's statically typed, so it can check at compile-time that the "messages" being passed are valid, but the dispatch of the messages (ie, methods) is determined by the struct itself, which has the same effect as "extreme late binding" (Kay's words) - the only difference is that Go's type system permits much of this to happen at compile-time anyway.

[1] Which, incidentally, explicitly mentions inheritance as not being a defining point of OO programming.

comment 13y ago · link · parent

While I appreciate the sentiment, some of the supporting facts are dead wrong.

> If we didn't do this, the city where I live, New York, would have a freeway running down the middle of it.

That's not really the reason that Robert Moses's LOMEX project failed.

> There would be no Central Park.

Again, 'national landmarks' are not the reason Central Park was created, nor are they the reason it still exists

> The East Village would only have NYU dorms.

That's kind of the way Greenwich Village is heading as it is. National landmarks haven't stopped NYU from taking over the neighborhood.

comment 13y ago · link · parent

My Japanese is really, really rusty, but isn't "anata" considered disrespectful?

Also, I thought the accepted transliteration was "wa", not "ha", but don't quote me on that.

comment 13y ago · link · parent

Nah, that's the one that's popular ("pleasant") to recognize.

If I had to hazard a guess, I'd imagine Dijkstra would have a word or two to say about callbacks, given his famously strong beliefs about GOTOs....

comment 13y ago · link · parent

Also, while some dog breeds are indeed endangered (or newly extinct) on the verge of extinction[1], many are dramatically overpopulated beyond sustainable proportions.

[1] http://en.wikipedia.org/wiki/Tahltan_Bear_Dog [2] http://en.wikipedia.org/wiki/Category:Extinct_dog_breeds

comment 13y ago · link · parent

> As far as I know, the only organisation that you're required to give it to is the tax office itself. Interestingly, by virtue of this number being so 'secretive' it really is usable as an identifier only to the tax office.

Amusingly, the IRS doesn't actually ask you for your SSN as your identifier when you need to do basic things (like replace your social security card). I know of someone who was prepared to give it to them, and the agent actually scolded him, "Your social security number isn't an identifier".

comment 13y ago · link · parent

> I can see my raw passwords by clicking properties and ticking 'Show Password'.

As opposed to what? They need to have access to the plaintext passwords somewhere; it's just encrypted when it's stored on disk.

> Shocked as well, not to mention seahorse is launched without asking my password.

The default keychain uses your login password, and it's unlocked at login. This is easy to change if you want to have to unlock it every time you use it.

comment 13y ago · link · parent

I was just making a joke, but I was pointing out that if you have 2FA enabled, I could (theoretically) call up customer support and try and convince them that you're the attacker and I'm the legitimate account holder.

comment 13y ago · link · parent

How did you come to this conclusion? If you've found a bug, please file a ticket.

Gnome keyring definitely uses encryption to store passwords; they take security pretty seriously: https://live.gnome.org/GnomeKeyring/SecurityPhilosophy

comment 13y ago · link · parent

Feinstein has always been one of the best friends of the law enforcement lobby. Which has made her one of the most disappointing senators on issues of privacy, drug policy, etc.

It's especially disappointing given how out of line her beliefs are with certain areas of California, but that's what often happens when a massively diverse state elects a single representative democratically.

comment 13y ago · link · parent

> If you don't want to enter your password every time, you can set it as imap_pass (for reading) and smtp_pass (for sending).

If you're on Linux, it's also rather simple to store this in a keyring such as gnome-keyring (Seahorse).

comment 13y ago · link · parent

> In the event of 2FA/MFA, I'm assuming one needs to generate an application-specific password and keep that in the .rc?

As far as I am aware, this is currently a limitation of any third-party client that connects to Gmail.

comment 13y ago · link · parent

Several Linux tools for this purpose have existed for a while as well - gnome-keyring (now seahorse)[1], KWallet, etc.

[1] https://wiki.archlinux.org/index.php/GNOME_Keyring

comment 13y ago · link · parent

Someone - was it Kernighan? Ritchie? - wrote a nice description of this. In short, when you find the source a bug, don't just fix it - stop and think what caused you to make that error, and think about what else in the code might be a victim of the same line of reasoning (note: not necessarily the same code - just the same design decisions).

Back in the day when you had to submit your code to the computers overnight and wait until the next day to find out if you got your output or just a one-line compiler error, you were much more careful to avoid errors, big or small.

Having a longer iterative cycle can be good training.

comment 13y ago · link · parent

> This world could be so nice, why does it have to be such a crappy place?

Nice stuff happens. It just doesn't make (or sell) the news. But that doesn't mean the world isn't nice.

comment 13y ago · link · parent

> Schools need to able to have armed guards and better locked/secured entries IMO.

Yes, treating our schools like we treat our prisons is a great paradigm to adopt for our educational system.

comment 13y ago · link · parent

> To fix this you must argue and explain with customer support that the account was hacked an that the 2 factor auth is preventing you from resetting passwords and such.

That's not a problem when it comes to Google accounts, though. Maybe Google's lack of customer support is really a "security feature"!

comment 13y ago · link · parent

> Authy's timing is rather unfortunate as I've been in the thick of the spec and care deeply about security (I work for WePay; yes, we also have a public rollout of 2FA in the works, it's in internal beta right now). My plan is to give it away for free, if not open-source it completely.

I'd be very interested in this, Authy's timing notwithstanding. I think my email is in my profile - please let me know if/when you have something available (whether in beta or general release).

comment 13y ago · link · parent

> He already stated he was wrong. Do not punish him for wanting to answer fast and be open with the Hacker News community.

First, he was way off the mark on a number of unrelated elements, not just the key-strengthening algorithm.

While it's good that he owned up to his mistake, it's clear from his wording that he was shaky on the actual principles of security and encryption, not just

My standards for a security-sensitive product are far higher than for anything else. Any person in any position of authority should have a very clear understanding of the security fundamentals being used. The last thing I want in a 2FA application is for an overeager PM to make a decision that inadvertently compromises the security of the product, in a well-meaning attempt to improve the UI, branding, monetization, etc.

comment 13y ago · link · parent

> I think most people who care about it would either (a) already have Authy installed, or (b) care enough that downloading another app isn't going to prevent them.

I care, and I have Google Authenticator installed but not Authy.

In fact, it's because I care that I don't have Authy installed - from their comments on HackerNews yesterday, I didn't get much confidence that the Authy folks understand security enough for me to trust them with something this important.

comment 13y ago · link · parent

> The major con is you have to trust that they are using a secure system.

From my discussion with the founder on that HackerNews thread yesterday (and his other comments on the thread), it seemed clear that they didn't have a good enough understanding of the space - both the technical security requirements and the existing solutions. If you're not clear on what problem you're trying to solve, I doubt that you understand the domain well enough to solve it properly - at least when it comes to security.

Security is one field where 80% of the way isn't "good enough" - in fact, 80% may be worse than nothing at all.

comment 13y ago · link · parent

> Normally, you could expect Republicans to oppose a big government program like this, but, as we all know, as soon as you say the word "terrorist", they're all suddenly in favor of big government and big spending.

It works on both sides of the aisle. I'm too embarrassed to count how many progressives I know who opposed the FISA wiretaps, the PATRIOT act, and Gitmo under Bush, yet bent over backwards to find ways to excuse Obama for taking each of those policies even further.

comment 13y ago · link · parent

> Feinstein supports the extension. Her office can be reached at (202) 224-3841.

Don't let this stop you (or anyone) from calling, but it's going to take a lot to get Feinstein to switch her stance on this.

comment 13y ago · link · parent

> So we just make shit up now, to make things look as bad as possible and as worth prosecution as possible?

Yes, though that mentality is unfortunately nothing new[1].

[1] http://en.wikipedia.org/wiki/Operation_Northwoods

comment 13y ago · link · parent

> Unsurprisingly, 4chan users are celebrating on Reddit.

Is anybody else perplexed by this statement? Why single out /r/4chan, of all places?

comment 13y ago · link · parent

I don't know what you're talking about - the kind of backup I'm talking about isn't a built-in Android feature, as far as I'm aware. There's no "who knows where" - if you back it up, you know where you're putting that backup.

Furthermore, Titanium Backup (and the like) provide you with the option to encrypt your backups.

Finally, Android ICS and later also provides full-disk encryption of the application storage area (which iOS does not).

comment 13y ago · link · parent

Yes, and a "tradeoff" and a "design flaw" are just two sides of the same coin!
1
175176177
202