- 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
James: If you actually read the comments before yours you would see that most of us do understand the code. My comment illustrates how to implement the required functionality much more concisely in plain javascript. The solution is to accept a list of functions to handle the completion events, and create a new function which registers the next one before handling the current event.
Admin
Recursion???????
Admin
Recursion???????
Admin
You mean it hasn't even finished yet processing the If-Then construct?? Or is it still busy logging errors?
Admin
Who cares if one can understand Java's insanity. It's sufficient to understand that Java's a WTF on it's own.
Admin
"Finally, a CodeSOD again after 1 MFDs"
Admin
Looks like nobody here can spot the language, it is ActionScript version 2, you know, the Flash one.
Admin
I have written code like that myself, and although it is stupid and contains a lot of noise, it has some positive aspects to it. I.e. one will immediately recognize the pattern! It is very very simple to look at it, and to instantly know what's going on.
But I evolved. Today I wouldn't write something like this in CPS, so that one doesn't need to read this backwards. One could imagine a higher order function, that chains these actions togehter, nad which evaluates i.e. the return value of these functions the figure out, if an error occured.