Reputation
29,381
Next tag badge:
93/100 score
32/20 answers
Badges
11 70 136
Newest
 Enlightened
Impact
~688k people reached

Nov
28
reviewed Close Exceptions: What to handle, what to throw
Nov
28
reviewed Close How to DRY decorator pattern and other delegation in java
Nov
28
reviewed Close Push instead of pull on a list that might change due to a command in addition to events?
Nov
28
reviewed Leave Closed Does this code solve the square/rectangle Liskov Substution Principle example?
Nov
28
reviewed Reject Patterns for passing context through a method chain
Nov
27
reviewed Close Is it always better to use __construct() in CodeIgniter's Models and Views, even if it's not needed?
Nov
27
reviewed Close Enterprise Architecture: Where to put persistence/dbContext management?
Nov
27
reviewed Leave Open How to reconcile “not mocking what you don't own” with “expectations” in unit tests?
Nov
27
reviewed Close Docstring convention for Python __str__, __unicode__, and __repr__ class methods
Nov
27
reviewed Leave Closed How to write highly changeable, highly complex software?
Nov
26
reviewed Leave Closed Data input validation - Where? How much?
Nov
26
reviewed Leave Closed Why does an unsigned int compared with a signed character turn out with an unexpected result?
Nov
26
reviewed Leave Closed Where to put very specialised functions which heavily use one class?
Nov
26
reviewed Leave Closed Why '-5<(unsigned)5' is false?
Nov
26
reviewed Leave Closed Private variables and the old FORTRAN common blocks
Nov
25
revised How harmful is using switch(true) as a way to handle multiple conditional statements?
Slightly shifted focus of the question. See also: http://chat.stackexchange.com/transcript/message/25686575#25686575
Nov
25
comment How harmful is using switch(true) as a way to handle multiple conditional statements?
-1 for "Generally said, there are no draw back's of such an way to do something." and then following up with explaining that there is a risk to the programmer's health for writing code like this. There are many drawbacks to writing code like this, only one of which is the risk to personal safety.
Nov
25
comment How harmful is using switch(true) as a way to handle multiple conditional statements?
For the record, I voted to close as too broad and not as a duplicate. There's a number of things wrong about the code example, especially since the example breaks a lot of expectations most programmers would have regarding a switch comparison statement. Calling this code "clever" would be a bit too kind. Is this a good way of using a switch staement? No, definitely not. Is it likely to cause harm? Quite likely to the program yes, and most definitely there's a risk to the original programmer as well.
Nov
24
revised Would UTF-8 be able to support the inclusion of a vast alien language with millions of new characters?
fixed UTF typo
Nov
24
revised Would UTF-8 be able to support the inclusion of a vast alien language with millions of new characters?
rolled back to a previous revision