12,138 reputation
43354
bio website
location Minneapolis, MN
age
visits member for 4 years, 2 months
seen 6 hours ago

Dec
8
comment Adding non distinct elements to a dictionary
While I agree exceptions shouldn't be used for flow control, option 1, in multiple thread situations along with bad luck, can lead to a race condition resulting in an unhandled exception. There are scenarios where 2 is more appropriate.
Dec
6
comment Efficiency of C# dictionaries
Your quote says "Retrieving a value by using its key is very fast, close to O(1), because the Dictionary class is implemented as a hash table.", so the OP could confuse the two concepts. In otherwords, I wanted to make it clear that big O does not tell the whole story concerning "speed".
Dec
6
comment Efficiency of C# dictionaries
O(1) isn't necessarily "fast". Looping through a list could still be quicker than a hashtable for the collection sizes the application is dealing with.
Dec
4
comment Is “White-Board-Coding” inappropriate during interviews?
Whiteboards are immutable? You just wipe something off and rewrite it on a whim, that's what makes them useful, especially teaching. You must live in an alternate universe.
Dec
4
comment Testing vs Don't Repeat Yourself (DRY)
If a test fails unexpectedly, whether you have one assert or many, you're going to have to fire up the debugger to fix why the test failed either way.
Dec
3
comment Various methods manipulating same member variable versus each takes inputs and provides output
@Ahmad: a lot of them also maintain their own state.
Dec
3
comment What can C++ do that Python cannot?
Run on the bare metal.
Nov
19
comment What is grouping?
My guess is structs.
Nov
19
comment How to send data between HTTP requests without user modifying it?
@CraigAnderson: if you want to detect if the client is sending bogus cookies, you don't need to both hashing, just do a plain-jane comparion.
Nov
18
comment How to send data between HTTP requests without user modifying it?
@CraigAnderson: That makes no sense to do. The server doesn't have to accept data the client sends if it doesn't want to. If you don't want the client to change data, just ignore whatever the client says!
Nov
18
comment How to send data between HTTP requests without user modifying it?
Assuming the user is authorized resource 4, you can't.
Nov
16
comment Do I have to distribute my code if I use GPL based jquery controls in my commercial application
possible duplicate of What constitutes "distributing" for LGPL v3
Nov
16
comment Do I have to distribute my code if I use GPL based jquery controls in my commercial application
Please read the GNU FAQ, or the text of the GPL for that matter, as that will answer all your questions.
Nov
12
comment Using PHP or C++ for in real world electronic devices
@M.K.Hunter: the touch pad on a microwave for example is pretty much guaranteed to be soldered into place and have no interface you could access without an oscilloscope and a lot of EE skill.
Nov
12
comment Using PHP or C++ for in real world electronic devices
To start, you'll need a degree in EE or the equivalent training and skills.
Nov
10
comment Is it imaginable to teach a machine how to program itself to a defined specification?
@Telastyn: comparing the input/output for a parser generator to the input/output for a human mind as being "more picky" is disingenuous at best.
Nov
10
comment Is it imaginable to teach a machine how to program itself to a defined specification?
@florian: it's not just "random" design choices. The answer to your question basically boils down to: "is it hypothetically possible to make a machine with a "mind".
Nov
10
comment Is it imaginable to teach a machine how to program itself to a defined specification?
@raptortech97: No, you cannot. Not 'complete' in the meaning of this question. In order for your spec to be so complete as to be capable of being mechanically transformed into an executable program, it essentially has to be written in a programming language. Otherwise, your spec will have undefined behavior, or you are just writing code in an MSWord document.
Nov
9
comment Is it bad to feel guilty using lots of libraries?
Do you think a carpenter feels guilty when they use off the shelf trusses and fasteners?
Nov
5
comment How to avoid spaghetti code when I have a lot of conditions?
A rules mechanism is often the first step down the road to the Inner Platform Effect.