"I stumbled upon this curious function," wrote Johannes, "perhaps the coder of this function doesn't know about replace()?"
protected String parseStringData(String str)
String frag = str.split("\"");
String result = "";
for (int k=0; k<frag.length;k++)
result += frag[k];
"Like many fellow developers, the codebase I work on each day is terrible and devoid of any structure," writes Daniel, "but at least I get to enjoy comments made by previous programmers."
// THIS SETTING SHOULD NOT BE 'TRUE'.
// 'gumdrops' is used here because the variable must
// be set (to anything - call it 'monkey' if you want),
// but setting it to 'TRUE' will cause unwanted behaviour
"I found this in a simple import script," Matt writes, "it quickly became unclear what the link between the 3 numbers is."
# Find the last 200 transactions
logging.debug( "Finding the last 600 transactions" )
ConnMysql.query("select Id from Transactions order by ts desc limit 0,10000 ")
"We have a Classic ASP application," writes Matt Spicer, "and it has some 'classic' ASP code."
' DEBUG for kkieller user
If Session("UserID") = 1 then
' Phrase = "[" & Phrase & "]"
' DEBUG for jmacpherson user
If Session("UserID") = 9 then
'Phrase = "[" & Phrase & "]"
Jeremy shares a few different interesting snippets from his codebase...