4 ms·
HN overall has case-sensitive usernames. Drove me batty until I figured it out. You can ask pg why he went with that particular design choice.
by RKoutnik 14y ago
HN overall has case-sensitive usernames. Drove me batty until I figured it out. You can ask pg why he went with that particular design choice.
- martin-adams 14y agoMaybe there's no database and it's all just stored as files on a unix file system, thus inheriting the case sensitiveness.
- dbaupp 14y agoUsernames could still be normalized to lower (or upper) case before creating/reading/writing the file. (Admittedly, the simplest method is without doing this.)
- kens 14y agoLooking at the news.arc code, user profiles are stored as files in the directory arc/news/profile/, so the names there are case sensitive because of the underlying file system. The users are loaded into a map using the name as a key, and map lookups are case sensitive in Arc. Thus, both the on-disk and in-memory storage of users is case sensitive. Of course names could be converted to a case-insensitive form, but the "natural" implementation results in case-sensitivity. The code can be downloaded from http://ycombinator.com/arc/arc3.tar http://ycombinator.com/arc/arc3.tar Note the code is from 2009 and didn't exactly match the running HN code at the time, so any conclusions from the published code aren't guaranteed. I did an analysis of the HN ranking formula back in 2009 - http://www.righto.com/2009/06/how-does-newsyc-ranking-work.html http://www.righto.com/2009/06/how-does-newsyc-ranking-work.h... - but the live formula is surely very different from the published code by now. And ironically, that article got about 0 upvotes so it didn't rank well :-)