Reputation
1,710
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 11 27
Newest
 Good Answer
Impact
~89k people reached

Jul
26
comment What's the name of this pattern involving multiple inputs and what to do based on an input?
This seems to match perfectly, and I'm glad to see it's not an antipattern. Plus, a fractional percentage decrease in runtime performance but an integer percentage increase in maintainability and productivity usually leads to better overall code written ... slow implementations of faster algorithms probably wins over fast implementations of slow algorithms.
Jul
26
asked What's the name of this pattern involving multiple inputs and what to do based on an input?
Jul
13
awarded  Nice Answer
Jul
9
comment Is an 'if password == XXXXXXX' enough for minimum security?
I don't see a problem storing the salt per-row, as long as its unique per row. Here's a hash: "fd84235a55bbfeb1585a3dd069d48127989c9753058b51b6ba2056fd6c5a0a91" (SHA256), here's the salt: "671254bdf7944f8fa88e6c9913b948ee". Think you can get the password? There's no rainbow table for that salt (even if you're given the salt), you're stuck brute-forcing it.
Jul
2
comment Is this a decent use-case for goto in C?
Aw that's a neat control structure.
Jun
25
awarded  Popular Question
Jun
24
awarded  Good Answer
Jun
22
comment General programming techniques to speed up coding time
@Konamiman: heh, yes I am. I couldn't tell if he meant "I am preparing, in C++, for a programming contest" or "I am preparing for a C++ programming contest". Oh well, chips lie where they may. Still, nothing beats a very fast RAD environment for programming competitions, where literally every second counts.
Jun
21
answered General programming techniques to speed up coding time
May
21
comment If your algorithm is correct, does it matter how long it took you to write it?
Starting your IDE and creating a blank project takes five minutes? If you don't already know Towers Of Hanoi, at least do them in the opposite order so the IDE is loading (from a VM over the internet apparently) while you're researching!
Apr
27
comment Queries about commercial products about using freewares libraries
That, or figure out how to call their library from an open-source "shim" in your application. This is done often with a little RPC module.
Apr
27
answered Queries about commercial products about using freewares libraries
Apr
20
comment What naming convention for C# file that contains multiple classes?
@Felice: look at MSpec :)
Apr
16
awarded  Quorum
Apr
11
comment Difference between “String” and “string” in .NET and which is best?
How is "one might break" vs. "one will never break" with all else being identical not a good enough reason?
Apr
11
comment Difference between “String” and “string” in .NET and which is best?
It's possible to trick String into working, it's never possible to trick string.
Apr
11
comment Improving the speed of writing code in C#
This is all around pretty terrible advice. "Don't test business problems" -- those are exactly the ones you want to test. They're easy and important. "Keep tests out of the dev loop" -- CI is a final gatekeeper for broken code. Why check it in broken? "Use public fields instead of properties" -- until you need a property and all things compiled against your library need recompilation. That's what auto properties are for.
Apr
11
answered Difference between “String” and “string” in .NET and which is best?
Mar
28
comment How many lines of code can a C# developer produce per month?
The 10LOC guy sounds like in one day he did 3 days of your 100LOC guy's work.
Mar
8
comment Avoiding inline JavaScript with dynamic content
@Raynos: +1 for the honesty of "I'm a bad developer" that nobody else wants to accept. Too many people are thin-skinned these days...