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

Nov
4
comment In general, is it worth using virtual functions to avoid branching?
an O(1) operation isn't necessarily faster in real-world execution time than an O(n) or even O(n^20).
Nov
3
comment Who should read Exception.Message if at all?
I don't agree with the bold claim of "Never". I think it depends on what the exception type is. There are plenty of situations where specific exception types can carry messages to be shown to the user, as the alternative is tons of boilerplate code.
Oct
28
comment Use of electronics in programming
@RichardTingle: I write software for medical devices for a living, and often have to use a scope to debug stuff. You're telling me my electronics knowledge is not even slightly important to my abilities?
Oct
27
comment develop crossplatform GUI based DESKTOP application with HTML5/CSS
Just use winforms already. Everything html/css is just one hackjob piled upon another.
Oct
22
comment How can I represent a flowchart, complete with conditional logic using JSON or XML?
Look at graphviz and the dot language.
Oct
18
comment What are the advantages of matrix multiplication over individual variables (graphics)?
You're incorrect in thinking you can do less with non-matrix math. Matrices are ultimately just a way of ordering the required informarion. If you use '6 floats' you'll just end up reinventing the operations provided by the matrix model. You're forgetting about the z axis.
Oct
16
comment When are enums NOT a code smell?
Not everyone works on huge enterprises systems where every class has 20 layers of inheritance.
Oct
8
comment Does context (like as an argument in a function) allow for numbers in code that aren't magic numbers?
@SimonB: numeric literals aren't necessarily magic numbers. There are situations where numeric literals are the best option.
Oct
8
comment Does context (like as an argument in a function) allow for numbers in code that aren't magic numbers?
@KilianFoth: I would not say it's particularly likely. Requirements changes have the annoying behavior of changing where you don't expect and staying frozen where you do.
Oct
2
comment Classes with one public function replaced with a constructor
You might as well just have a static function
Sep
25
comment What are the key differences between low-level C development and higher level OOP development?
Is the OP interested in comparing low-level close to the metal development with high-level application development, or programming in C vs OOP languages? C development isn't necessarily low-level and you can talk close to the metal in higher level languages.
Sep
21
comment Why do build tools use a scripting language different than underlying programming language?
Look at it from another angle: Why not use make to write application software?
Sep
16
comment Super user powers in development environment?
For many tools, what development uses has no consequence regarding what support uses. Also most shops with onerous security/legal policies are often waterfall shops.
Sep
1
comment What exactly is model driven software engineering (MDSE)?
I suspect a buzzword free description is unlikely as they seem to be integral to the concept's very essence.
Sep
1
comment Checking for null pointers or allowing a math library to segfault?
@RobertHarvey: but what is the library supposed to do about it? This is C, so if you want some sort of error reporting mechanism, that's more complexity, more expense, more risk of bugs. The GSL puts the onus of preventing those segfaults on the callers, and in many situations that's the right thing to do.
Sep
1
comment Checking for null pointers or allowing a math library to segfault?
It makes no sense, and it provides no value to test for invalid inputs if there is nothing useful you can do about it.
Aug
22
comment When to use absolute path?
The practice is still common. Any time you use hardcoded paths you can't place the file where it suits you. There are many legit reasons the (many different) conventions won't always suit everyone.
Aug
18
comment Is it okay to return the “wrong” HTTP status code in order to show a more user-friendly error page?
I've never seen those called flash anything. There is definitely an Adobe Flash haters club though.
Aug
18
comment Unit Testing without DI
Why don't you use constructor injection? That gives you 90% of the DI benefits for virtually no work.
Aug
18
comment Is it okay to return the “wrong” HTTP status code in order to show a more user-friendly error page?
Whatever you do, ditch the flash.