News for hackers. Stuff that matters.
Re:Hacker News Karma Tracker by RKoutnik on Sunday February 03, 2013 @12:07PM (#5160196)
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.
Re:Hacker News Karma Tracker by kens on Sunday February 03, 2013 @01:51PM (#5160623)
Looking 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 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.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 :-)

Re:Hacker News Karma Tracker by martin-adams on Sunday February 03, 2013 @12:16PM (#5160233)
Maybe there's no database and it's all just stored as files on a unix file system, thus inheriting the case sensitiveness.
Re:Hacker News Karma Tracker by dbaupp on Sunday February 03, 2013 @12:30PM (#5160291)
Usernames could still be normalized to lower (or upper) case before creating/reading/writing the file. (Admittedly, the simplest method is without doing this.)