Better HN
topnewbestaskshowjobs
Log inSign up

c001

4 karma · joined Jul 13, 2013 (13y ago) · 3 submissions

Submissions

1.

Mark Zuckerberg Buys the Four Houses Surrounding His Own House ‘Cuz He Can(newsfeed.time.com ↗)

4 points · by c001 · 13y ago · 2 comments

comment 13y ago · link · parent

The code does not seem to be neatly written: have randomly checked a few files and found that the const methods and exceptions are not properly used. Here is a sample function:

const char *CountryCode::getAbbr(int index) { if(index < 0 || index > s_numCountryCodes) index = 0; return(s_countryCode[index]); }

https://github.com/gigablast/open-source-search-engine/blob/...