3,896 reputation
634
bio website
location
age
visits member for 2 years
seen 12 hours ago

21h
reviewed Approve suggested edit on How has an increase in the complexity of systems affected successive generations of programmers?
1d
comment Is there any performance benefit in checking the item count prior to executing a foreach loop?
Checking for null and count are two different things. Doesn't checking SqlParams.count if SqlParams is null throw and access violation?
2d
comment Is there a term for the coding error that resulted in heartbleed, or the code that exploited it?
@Doval no it's not. It's very basically, I send a keep-alive packet which gets assigned a buffer and ask the server to reply to me back that buffer of "length". The attack is to specify a larger length then the keepalive packet you sent so you get more information then is put into the buffer.
2d
revised Is there a term for the coding error that resulted in heartbleed, or the code that exploited it?
edited body
2d
comment Is there a term for the coding error that resulted in heartbleed, or the code that exploited it?
CWE is closest I can find as to "official naming". That and the term is widely used and describes the problem at hand.
2d
answered Is there a term for the coding error that resulted in heartbleed, or the code that exploited it?
Apr
15
comment When do you use subquery in SQL?
As a rule of thumb I use a subquery when I forget how to do the same thing with a join.
Apr
11
comment Functions returning either “OK” or “error message” instead of procedures
EInsufficientUserPrivileges, ERecordAlreadyExists look like some pretty common paths to me so you should write code for it to handle the condition, not throw an exception, because expected exceptions should never be exceptions but handled.
Apr
9
reviewed Approve suggested edit on Why do JavaScript frameworks/libraries have functions which already exist in pure JavaScript?
Apr
6
awarded  Yearling
Mar
28
reviewed Approve suggested edit on what is the difference between Soak testing and Stress testing?
Mar
28
comment Should static data be stored in a database or somewhere else?
@gbjbaanb my reaction wasn't to the OP but to you and your comment about weekday names. Just recently I had to fix an application, where the initial programmer thought exactly that: those don't change. So he came up with the nice solution: if the name starts with an "s" it's weekend. Now fastforward and the application got internationalized and suddenly the weekend was only 1 day. And nobody knew why. Must be a European thing.....
Mar
28
comment Should static data be stored in a database or somewhere else?
@gbjbaanb my illustration wasn't nitpicking it was about how easy it is to make a wrong assumption on the: "this will never change."
Mar
27
comment Should static data be stored in a database or somewhere else?
"Static data that never changes (eg days of week names) are good to go in code" And even then you can go wrong: wait till your app goes international. Weekday names are NOT static at all.
Mar
27
comment Should exceptions do things other than tell the user something went wrong?
No, exceptions can leave your program in an unknown state. And one exception is not like the other.
Mar
25
comment Joel Test: Quiet working space as a developer?
Please don't let me hear conversations of others. I have an opinion about pretty much anything and need to process all info that enters my brain.
Mar
6
comment Should I refactor large functions that mostly consist of one regex?
How can a 100 line regexp do only 1 thing?
Mar
6
reviewed Reject suggested edit on Whats a good structure to save and retrieve locations of images?
Mar
6
reviewed Approve suggested edit on Design pattern for bidirectional signals/events
Mar
5
comment How to get better understanding of the users as a programmer
So basically you want to go sit in the chair of the business analyst? Become one? And then make user stories....you know where I'm going?