- 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
Got to give them credit, I would struggle to overcomplicate things this much, but they make it look effortless.
Admin
nit: since iID0 is the frist offender, that makes lucky 14 not lucky 13 items in the array-that-is-not-an-array.
Edit Admin
To my knowledge, that was the Chinese coding paradigm about 10 years ago or so (wasn't paying attention to gossip afterwards). And I think they did this in shifts, with a quota of LoC per shift per crew.
Edit Admin
All that stuff is over 20 years out of date. Rather impressive how garbage like this survives. ArrayList, DataTable... oh man, I remember those .net1.0 days. Millennials just started to be allowed to have drinks in the US after running around with their guns for 20 years :-).
Edit Admin
I am more scared at the use of ArrayList. Mostly because I used to use it myself waaay back int he day. It was added with .NET Framework 1.0 as a way to have a linked list, and since 1.0 had no generics, it was equivalent to List<object> with all the casting and boxing nightmares that entailed. Generics were added in 2.0 including List<T> which immediately made ArrayList obsolete. Though I was self taught and didn't realize this until much later, unfortunately, and kept using ArrayList.
Admin
And of course, there is a mix of french and english language used in the code. Of course!
I hate my developing compatriots :-(
Edit Admin
Isn't there a 'for switch loop' hidden in there? (I mean - I too am assuming there's a loop somewhere so that incrementing iCompt does actually perform something useful).