Reputation
Next privilege 125 Rep.
Vote down
Badges
5
Newest
 Editor
Impact
0 people reached

Aug
20
comment Checking array size in C/C++ to avoid segmentation faults
You might want to check out std::array
Aug
15
awarded  Editor
Aug
15
revised Using 'reduce' vs 'for' loop for returning boolean
corrected "time" to "team"
Aug
15
comment Using 'reduce' vs 'for' loop for returning boolean
Also be aware of Array.prototype.every for the and version of the short-circuiting reduce.
Aug
15
suggested approved edit on Using 'reduce' vs 'for' loop for returning boolean
Jan
30
comment Should Latin-1 be used over UTF-8 when it comes to database configuration?
@jon LATIN-1 is not English specific. Spanish is contained perfectly there, as well as French if I'm not mistaken.
Jan
17
comment Is catching general exceptions really a bad thing?
@Patrick that would be OutOfMemoryError, which is separate from the Exception inheritance tree for that very reason
Dec
22
comment Is every language written in C?
@reirab Posible AND true. GCC is written in C and usally compiled using GCC.
Dec
3
comment Which are the cases when 'uint' and 'short' datatypes are a better fit than the standard int(32)?
I was about to complain for the hours since epoch thing, then did some math. It overflows an int32 (signed!) in year 246953, so I think we're safe.
Sep
17
comment Unit testing classes that have online functionality
@Paul Usually your application is divided between a "library", which is directly tested and should use this kind of dependency injection, and application-specific code. The latter usually boils down to some GUI, some web service or some command line interface that directly calls the library with user-supplied data. Essentially, application-specific code will create the concrete implementations that the dependency-injected library expects.
Jul
12
comment Programming for future use of interfaces
All those are obviously either subclasses of or convertible to Date!
May
13
awarded  Commentator
May
13
comment Should you throw an exception if a method's input values are out of range?
@Katana314 Ceylon, for example.
Apr
12
awarded  Citizen Patrol
Apr
9
comment Kibibtye or Kilobyte to represent 1024 bytes
I personally don't use the full word (kibibyte) EVER, but always write it a KiB because (a) is clerarer what I mean (b) I like that the uppercase K is correct (as kilobyte would be kB and not KB)
Apr
7
comment Are closures considered impure functional style?
"If the answer to those two questions is no" Shouldn't 1 be answered with yes?
Mar
31
comment Why is CPU cache memory so fast?
Not to mention the fact that making SRAM bigger makes it WAY slower.
Mar
30
comment When allowing a user to change passwords, should I generate a new salt?
I think I just found my answer, I'll link it for completeness security.stackexchange.com/questions/39821/…
Mar
30
comment When allowing a user to change passwords, should I generate a new salt?
This might be enough for another question, but... Would changing the salt from time to time (say, 10-30 days) after a successful login be better, worse, or just useless?
Mar
26
comment Is it fine to make a default constructor unusable?
@FredLarson Explicitly deleting it expresses the intent of deleting it so no one thinks it was a mistake.