Reputation
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
5 41 62
Newest
 Nice Answer
Impact
~348k people reached

Mar
22
comment Defining logic without nested if-else statements
This answer represents a serious inner platform minefield.
Mar
21
comment Why can't we just use variables instead of constants?
That's a pretty lousy example as that will be insufficient precision for just about every application that needs to use Pi in the first place.
Mar
16
comment Can a purely declarative language cause runtime exceptions?
Would delivering a perfectly working dentist scheduling application when you were asked to build the flight control software for a 747 be considered "failing"?
Mar
16
comment Why doesn't C have first class arrays?
Anytime a question is asked "Why doesn't C have [blah]" just remember: 1969.
Mar
15
comment Floating point accuracy and conversions
There are libraries in existence to do this already. What is this for and for what platform?
Mar
12
comment Why is there a need for reference parameters in C++?
Even if computers had unlimited, instant access memory, we'd still have reference parameters.
Mar
10
comment What kinds of bugs can integration testing actually find?
Sometimes your mocked objects don't properly simulate what they're replacing. Integration tests help detect that.
Feb
24
comment Snap to grid functionality in drawing application
Forget about the design patterns for awhile, just think about math and information.
Feb
24
comment Is it unreasonable to implement a small domain specific scripting language?
"write business requirements in plain English that my program then tests our app to ensure it meets the requirements." is the software equivalent of a perpetual motion machine.
Feb
22
comment Solutions for floating point rounding errors
There is nothing "common sense" about floating point math.
Feb
18
comment What was the first mass-produced CPU to have an instruction for multiplication?
@CJDennis: while theres no such thing as common sense in general, there is definitely no common sense in discussing early IC features.
Feb
10
comment Visual Basic 2015 - Dynamic List of Controls
Draw some pictures please.
Jan
23
comment Resuming a project where you left off
Just don't ever close your IDE and never reboot your computer! That's how I do it.
Jan
23
comment When is it appropriate to make a separate function when there will only ever be a single call to said function?
While I agree with your post, number of times something is called does play into it too.
Jan
15
comment How is rendering a Word document different from rendering a website?
Depending on what you are looking at, a car and boat can have more similarities than differences, e.g. if you are interested in their engines and power systems they share quite a lot in common. The exact same thing is going on with HTML vs Typesetting. In principle, they are doing very similar tasks, but for different design goals.
Jan
15
comment Single Responsibility - is this class doing too much?
Much of what defines whether it is doing too much or two little depends on how its going to be used, and how it fits in with the system as a whole.
Jan
1
comment How can we be certain that the lower components of computer programming like compilers, assemblers, machine instructions, etc. are flawless?
@recursion.ninja: formal methods only ensure your implementation and specification match, but it will do nothing to save you when your implementation is correctly doing the Wrong Thing™.
Jan
1
comment Is there a design pattern to remove the need to check for flags?
@DavidPacker: writing code adhering to SOLID principles doesn't automatically make it better, easier to test, or more reliable. Writing code that doesn't adhere to it isn't automatically crappy. Everything has trade-offs and sometimes SOLID is sensible, other times it is now.
Jan
1
comment Is there a design pattern to remove the need to check for flags?
@DavidPacker: If I was in the OP's position, and asked that question, Lightness Race in Orbit's comment is what I really need. "Finding a solution using design patterns" is already starting from the wrong foot.
Jan
1
comment Is there a design pattern to remove the need to check for flags?
@DavidPacker: correct is not defined by how well the code adheres to some guideline by some author about some programming ideology. Correct is "does the code do what it's supposed to do and was it implemented in a reasonable amount of time". If it makes sense to do it the "wrong way", then the wrong way is the right way because time is money.