- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Yeah. The only reason I could come up with for doing that is he was too lazy to DTD or Schema validatee the doc to make sure the requisite data is there.
Admin
You're looking for justification about the developers actions?????? When the risk of row1col5 is extreme!!!! Not to mention row2col5!! There are more important things to be worrying about here then justification! I'm packing my family and heading for the hills before it's too late.
Admin
"I'm packing my family and heading for the hills before it's too late."
I felt just like that :)
Admin
The thing that befuddles me is that this weblog post taunts me that the author is "really enjoying the comments posted that justify the actions of the developer", but doesn't tell me where I can go to enjoy those comments myself.
Admin
I'm more interested in seeing the code snippets that parse that XML.
for(int i = 1; i <= 5; i++)
for(int j = 1; j <= 5; j++)
{
...
XmlNode xmlNode = xmlDoc.SelectSingleNode("/riskappetite/row"+i+"col"+j);
...
}
Or even worse...
while(xmlReader.Depth == 1)
{
switch(xmlReader.LocalName)
{
case "row1col1":
...; break;
case "row1col2":
...; break;
case "row1col3":
...; break;
...
}
}
Wouldn't be surprised. Actually, those two attempts are still too optimized.
Admin
Hey thats my code!
Admin
Based on the data structure it looks like one of our competetors systems, LOL!
Admin
Maybe it has something to do with backward compatibility.
Admin
It's XML, it supports attributes since it's conception, so no, the backward compatibility thing doesn't pull.
Admin
Hey Mario, I agree. I don't think earbullet was being ironic. Not even a little bit round the edges.
Admin
Mildly amused: Converting to one character shows: LMHHE LMHHE LLMHH LLLMH LLLLM
The first row of "Low","Moderate","High","High","Extreme" seems out of place with the pattern. More fitting would be: <row1col1>Moderate</row1col1> <row1col2>High</row1col2> <row1col3>High</row1col3> <row1col4>Extreme</row1col4> <row1col5>Extremely Extreme</row1col5>
MHHEE LMHHE LLMHH LLLMH LLLLM
And then anyone can predict what row6 will be.
Admin
Oh I know, LLLLE right?