101 reputation
4
bio website darkhogg.es
location Madrid, Spain
age 23
visits member for 7 months
seen 11 hours ago

Multi-language developer and enthusiast of game programming


1d
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.
Mar
26
comment How to data model more than one 'last name'?
+1 for the link at the end, I was searching it right now!
Mar
25
comment Should an API be aware of client versions?
To avoid exactly this most APIs are versioned from day 1.
Mar
10
comment Why are string resources generally kept external to the code and not inside the code?
Extra: It may be ok for a translator to edit an XML file, but don't ever let them fiddle near actual code...
Feb
3
awarded  Supporter
Feb
1
awarded  Autobiographer