8,065 reputation
1920
bio website
location Mid-Atlantic NorthAm
age 52
visits member for 3 years, 9 months
seen Jul 25 at 21:08

Software by day, hardware by night, beer on the weekends.


Jul
25
answered How should I approach storing single boolean results for a whole table?
Jul
25
reviewed Approve suggested edit on Why would programmers ignore ISO standards?
Jul
25
answered In a large statically-typed software project with non-dynamic manual sql statements inside of it, how do you verify all the sql syntax?
Jul
25
reviewed Approve suggested edit on Why is polling accepted in web programming?
Jul
24
comment Does it make sense to break fluid interface if a bad argument is passed?
I think the word you want is "fluent" interface, not "fluid".
Jul
24
comment Is it allowed to distribute a program which source code is under Ms-PL to paying customers?
Consider: if you're distributing it, you'll be expected to provide support for it. Meaning if your customers have any problems with it, they'll call you instead of calling MS or searching the MSDN forums. Telling them "Oh, that's not ours, check with MS" may not go over well.
Jul
22
comment When I test out the difference in time between shifting and multiplying in C, there is no difference. Why?
@Bergi: I'm guessing he means that both shift and add are single machine instructions. You'd have to look at the instruction set documentation to see the cycle counts for each, but yes, an add is often a multi-cycle operation whereas a shift is usually performed in a single cycle.
Jul
22
comment When I test out the difference in time between shifting and multiplying in C, there is no difference. Why?
@NicholasFolk: Optimizations at this level are almost always obscured or rendered moot by the CPU architecture anyway. Who cares if you save 50 cycles when just fetching the arguments from memory and writing them back takes over 100? Micro-optimizations like this made sense when memory ran at (or close to) the speed of the CPU, but not so much today.
Jul
11
reviewed Approve suggested edit on How to handle divide by zero in a language that doesn't support exceptions?
Jul
9
comment Why do operating systems do low level stuff in C and C++? Why not just C++?
@Mehrdad: It appears I overgeneralized, I was doing some heavy tablet development and may have misunderstood some of the evangelizing that MS doing at the time The RT kernel was going to be the next big thing, along with Windows 8. The landscape has changed somewhat in the last year and a half.
Jun
3
answered Does anyone still use logic analyzers for debugging real time systems?
Apr
14
reviewed Approve suggested edit on In Java, would you sacrifice type safety for a nicer programming interface
Mar
27
awarded  Custodian
Mar
27
reviewed Approve suggested edit on packages tag wiki excerpt
Mar
27
reviewed Approve suggested edit on packages tag wiki
Mar
24
answered How to design my code so that it can use alternative information to help create an object
Mar
24
comment Is it bad software design to mix JDBC SQL calls and use an ORM in an application?
Not sure what you're asking. Having your SQL statements in your Java code will save you the trouble of reading them from a file, but if you use dependency injection you can declare them in a configuration file and have them injected into your objects at creation time. That way you can store the strings externally, but still avoid having to explicitly open and read a file at run-time.
Mar
24
answered Is it bad software design to mix JDBC SQL calls and use an ORM in an application?
Mar
21
comment Is better Show() + Hide() or SetVisible(bool visible)?
SetVisible() doesn't suggest (to me) that you are actually displaying anything. It reads more like you're setting the visibility property of an object, possibly leaving it up to a corresponding Refresh() or Redisplay() method to check the value of this property to determine if the object should be displayed or hidden.
Mar
12
answered When to pay for C++ compilers