Ask Rumen Again
by in CodeSOD on 2011-05-25"As you might imagine," Misho writes, "there is a lifetime supply of Whiskey Tango Foxtrot when you work on a project that Rumen helped develop."
"But this one in particular stood out."
Code Snippet Of the Day (CodeSOD) features interesting and usually incorrect code snippets taken from actual production code in a commercial and/or open source software projects.
"As you might imagine," Misho writes, "there is a lifetime supply of Whiskey Tango Foxtrot when you work on a project that Rumen helped develop."
"But this one in particular stood out."
Earlier this year, Manuel started working as a consultant in a big service company.
The project he was assigned to has an interesting history - the entire dev team that started the project over a year before had suddenly evaporated a couple of months before he arrived.
"Most software developers haven't had the misfortune opportunity to work with National Instrument's Labview," writes Alex, "it's a unique, development environment designed to automate processing and measuring equipment in laboratory setups."
"That said, you certainly don't need to be an expert to understand why the following program is a problem. It's a small selection of a program which controls some of my company's test equipment."
"If you've got a public-facing web site that gets millions of hits a day," Luke writes, "chances are you have a middle-tier services layer you hit via HTTP. And every now and then, some of those HTTP requests will fail."
"What's the best way to handle this condition? Get to a known condition by shutting down the entire JVM and Application Server, of course!"
Robert V. writes, "I was investigating an issue that came up with one tool in our test automation framework and found following code:"
Select Case DataConnection.GetDataCellValue(_ "Document Marketing", DataConnection.CurrentBlockID, _ "TaxExemptionMatrix", "ClickButton", iRow) Case "No", "NO", "no" Connector.Connection.PressItem("0", 2, "3", 0) 'No Case "Continue", "CONTINUE", "continue" Connector.Connection.PressItem("0", 2, "1", 0) ''Continue Case "Chancel", "CHANCEL", "chancel" Connector.Connection.PressItem("0", 2, "2", 0) 'Chancel Case Else End Select