13,449 reputation
43758
bio website
location Minneapolis, MN
age
visits member for 4 years, 6 months
seen 7 hours ago

Dec
17
comment What is a good word for the current “state” of a state machine?
I've seen plenty of state machines over the years that just call the variable "State". Never been confused.
Dec
16
comment Math model for a webpage layout?
Generating "bullet proof" html/css to do just about anything beyond hello world is serious undertaking. You underestimate how quirky browsers are.
Dec
10
comment Is there ever a reason to use an array when lists are available?
Rarely? Not everyone works on super-complicated ultra-configurable enterprise monstrosities.
Dec
8
comment Hardware accelerated text processing
Also reversal is not a basic string operation in the 21st century.
Dec
8
comment Hardware accelerated text processing
It already exists and it is already implemented in various forms in common desktop processors. String operations have been commonplace on computers since nearly day 1, and many architectures have had many different instructions catering to particular string handling schemes.
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.