Phillip Brooks Posted November 8, 2011 Report Share Posted November 8, 2011 that database application that everyone hates to use, that was written 10 years ago (by a hack) has a 'problem' that should be easy to fix. You open the top level BD and VI hierarchy. You see something that made you shudder two years ago when you tried to fix something last time and you just want to run away... Maybe I should just rewrite it... Yeah... Thats it. A rewrite... How hard can it be to devine the undocumented requirements from this steaming pile of... Quote Link to comment
Phillip Brooks Posted November 8, 2011 Author Report Share Posted November 8, 2011 Thank you LAVA! The hacker of yore did not know that Uniterated For Loops do not pass References! The database is queried and sometimes (seldom) returns ZERO elements. A subsequent UPDATE statement was trying to update ZERO records in a loop and there was no shift register for the DB Connection reference. The next function after the loop was querying the DB with a null connection ref. Now I can relax before going for my echocardiogram today... 1 Quote Link to comment
crelf Posted November 8, 2011 Report Share Posted November 8, 2011 Admit it: You still want to rewrite it... 1 Quote Link to comment
Phillip Brooks Posted November 8, 2011 Author Report Share Posted November 8, 2011 My new version would become an xkcd comic Quote Link to comment
jcarmody Posted November 8, 2011 Report Share Posted November 8, 2011 Maybe I should just rewrite it... Yeah... Thats it. A rewrite... How hard can it be to devine the undocumented requirements from this steaming pile of... You may have already read this from Joel on Software - Things You Should Never Do, Part I It's an urge you must resist. Quote Link to comment
Phillip Brooks Posted November 9, 2011 Author Report Share Posted November 9, 2011 I'm just grateful that the problem was in LabVIEW and not an SQL statement like this: http://thedailywtf.com/Articles/The-Query-of-Despair.aspx Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.