04-18-2012 08:58 AM
Kudos Ben! That is the spirit I had in mind for this thread. If this were a book a good title might be "Brave Confessions of the Brain Dead Software Engineer"
Let's keep 'em coming!
04-18-2012 01:18 PM - edited 04-18-2012 01:20 PM
OK I'll play too.
Task: Jeff quick set up a vi to cycle a temperature chamber up and down all night with this recording device in the chamber. We want to make sure these production prototypes do what they are supposed to do (Shut off when either too hot or too cold). You have 30 Minutes to set up.
Here is a simplified recreation.
04-18-2012 04:16 PM
I must have had a hundred bugs that were due to me reversing the True and False cases, or using Less Than when I should have used Greater Than. Almost seems like I do it wrong more than 50% of the time.
04-19-2012 10:05 AM
Yeah, I've been there Jeff. My recent boneheaded mistake was checking to see if an element want found in an array (Search 1D Array) and set the comparison to >0. It took me awhile before I realized that it's >=0.
04-19-2012 11:56 AM
@drjdpowell wrote:
I must have had a hundred bugs that were due to me reversing the True and False cases, or using Less Than when I should have used Greater Than. Almost seems like I do it wrong more than 50% of the time.
They're like USB connectors. 50% chance of getting it in the right way the first time, and 80% of the time you get it wrong.
04-19-2012 12:36 PM
Odd...I find that if I have a 50% chance of getting it right, I have a 100% chance of getting it wrong.
SnowMule is either smarter or luckier than I am.
04-20-2012 08:46 AM
04-20-2012 09:08 AM
@Thoric wrote:
Also, you're not subtracting the step from the previous value, but the previous value from the step? This means on the first attempt to reverse direction you end up with a negative temperature (once you fix the boolean logic error)?
go figure! recreate a bonehead mistake and make another!
05-09-2012 10:57 AM - edited 05-09-2012 11:04 AM
In benckmarking code, why the @#$@#$!#$!#$!#$!#$!#$ won't my two sums come out the same do my two sums SOMETIMES come out the same:headbang:
05-09-2012 11:14 AM
Just looking at the picture, they will be the same if you have fewer than 256 matches. 😄