- 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
Wait, what? I see nothing vaguely identifying of ActionScript, and it's certainly not using any ECMAScript4 constructs. Looks like vanilla Javascript (i.e. ECMAScript3) to me.
...doesn't change the fact that somehow a VB <> got mixed in there...and that it makes me want to retch in generally...
Admin
I used to be an "Information Systems Administrator", now I'm just an "Analyst/Programmer" but I'm looking to become a HPC.
Admin
TRWTF is I had to scroll all the way to the bottom of 50 comments before someone FINALLY cited "browser-based interactive multimedia delivery system framework".
AND it was someone calling themselves "Swiet and Seksy". By jingo!
Admin
Wow. If I were working there, my two weeks notice would be sent in right now, no matter the job market. At least as a Fried Potato Specialist you can be sure your employer still exists a week from now.
Seriously, ships of fools are not a good place to stay on; get the hell out before it starts to look bad on the resume. :-/
Admin
Couldn't agree more;
Actionscript is the worst thing to debug:
a) no variable declaration, no typing b) accessing undefined variable is shown only at run time, no warning whatever c) arrays are accessed by self-constructed strings (of course, what else ?) d) macromedia director has more option than a boeing
Oh god, I swear I can open macromedia where I work and paste identical code...
Admin
Admin
Isnt' the trick with titles to get the shortest one you can? CEO is pretty short.
Admin
The real WTF (tm) is of course that no-one ever looked at the attribute in the blink tag. It made me smile anyway.
Captcha: bling(-tag)
Admin
Don't worry, it's ActionScript! I don't think it has any kind of actual synchronization, so calling lock() probably just puts an image of a lock in the middle of the stage or something :)
Admin
Trevor, have you tried putting insolent or nonsensical when you commit your changes? I do.
Admin
Indeed!
Admin
Noooooo, don't. Look at it! ;)
Admin
The whole coding style is entirely too familiar, I might add.
Admin
Seriously, we had some devs from a third party, who were contracted to do some work for us, tell us that we were not using our SCM correctly. Endless discussion ensued as to what the purpose of an SCM system was for, and why they were wrong. Needless to say, the third party will send some new devs who think once again, that we are doing it wrong, because we don't do things the way that they do.
Firstly, when I use SCM, I want it to have something that will compile and build. If it has been used for versioning files that don't do either of these then don't come running to me when things break because you can't tell me why you broke them.
Secondly, when you make fixes outside of the SCM and then expect them magically to migrate into the SCM when updating, but you don't provide the full set of changes, don't blame the SCM, blame you're own change tracking process.
Thirdly, when you supply changes to code that should have been working in the first place, don't expect us to be happy at having to retro-fit those changes to code based on specs that you haven't looked at.
Admin
A certain company I've forgotten the name had "Red bit wizard" and "Blue bit wizard" as their CTO/CEO (maybe in reverse order) titles. The company was ran by a couple of white beard hackers.
Admin
Lord bless SCMs for having stuff like /trunk, /branch and /tag :)
Admin
No 'Blink' tag!
Admin
Admin
What amaze me is this:
_root["hit"+i]
why not _root.hit[i] ...
Admin
ah, source control... if I hadn't installed Subversion on our server when a new developer arrived we'd be using the shout technique today. You know, when you open a file you shout so people don't touch it. Still, the best question I had was a miffed "so to merge conflicting versions I need to edit the conflicting parts line by line?!". Yes moron, it's source control, not magic. RTFM and get with the program.
Admin
Upright? I figured Darwin would have done us a favor by now.
Admin
Something like "That can't be..., Can't remember..., You logged on with my user..."
Had this several times already. And mostly in the first few weeks when they can always say "but it always worked until you arrived...", of course, my ass. Without version control you look really stupid when the "senior" programmer tells this to your boss. The culprit's always someone else.
Admin
Admin
Admin
You guys bitching about the blink are seriously in need of a sense of humor, if not a life. It says, "Obnoxiously Intrusive Interruption". It's tongue-in-cheek... a way of apologizing for nagging about the survey by deliberately overdoing it. And it's gone as soon as you scroll down the page.
Are you running out of things to whine about?
Admin
It's even better than that. When you view source, the attribute of the blink tag is: seriously="why does any browser support this any more?!?!"
Admin
_root.hit1 _root.hit[1]
All you guys bashing ActionScript would love AS3, which is just as verbose and ass-clenchingly strict as Java. Personally, the only beef I have with AS2 is that it refuses to throw a runtime error when you try to call a nonexistent function.
Admin
Welcome to ActionScript. Because "hit" is not an array. It's a group of items on the stage named "hit1", "hit2", "hit3"...
This function probably totally works. If lock() is undefined the brilliant runtime will just move on, because really who needs error handling?
I've written far worse back in the day when you basically didn't have a choice.
Admin
There are things about AS3 that are still not cool. You can still reference properties with [" "] array like syntax which is annoying when debugging. Finally having a real debugger and a mostly type checking compiler is a big improvement.
Admin
Admin
I like the "theTally". I believe that if you need to prefix a variable with "the", "my" or "current" that there's something wrong with your code.
"theTally" could easily be just "tally". "CurrentProject" could easily be "Project", etc.
Admin
Don't forget the FAR more robust delegate and event model.
Admin
But if I don't give my classes names like "MyIntContainer", how is anybody supposed to know who wrote it?
Admin
Gosh I so hate scripted languages ... Seeing all comments about AS makes me want to puke.
CATPCHA: waffles... (I live in BE, and absolutely hate em)
Admin
Tittle? Is that a small tit?
Mike :)
Admin
http://en.wikipedia.org/wiki/Tittle
A tittle is the dot on an 'i' or 'j'. =)
Admin
Why was anyone even looking at the source of the blink tag, anyway?
Admin
Someone defeated the captcha!
Admin
Anything about AS or Flash makes me want to puke - there are many sites I won't visit now because of Flash-based ads - what a way to piss off visitors to your site. The only better way would be to have your site crash the users system on every visit...
Admin
Nothing wrong with small tits - they taste just as good as big ones...
Admin
maybe Trevor works for WorseThanFailure as the compartmentalized submitting service oriented architecture engineer for WTF sending. With this guy the site will have code SOD for years.
Admin
One of the people on my team at work (great guy, btw) has the title "Information Engineer." We're still not sure if that means he engineers solutions that deal with information or if he makes up (mis)information.
Admin
Hehe, smeg.
Admin
Because CurrentProject could mean the one you are currently working with when you have a collection of projects and you just cloned to another variable to pass back a single project rather than a collection. Since this is valid, then there is no reason to argue semantics when you replace "current" with "the".
Of course arbitrarily naming your variables "currentAnything" outside of this context is pretty silly.
Admin
Dude.... No. Sure, i agree with "the", if you have to use "the" as a prefix you havn't encapsulated enough, etc, but prefixes like "current" are completely reasonable.
Say you need to compare the current project with the previous one in a given function. whatcha gonna do then, have project1 and project2? Nice WTF there mate.
Or say you have a pointer to an item in a linked list that iterates over it. its less ambiguous to have currentItem than it is to have item. (or you could have currentPointedAtItemBrillant ;) )
Worded prefixes are good form, as long as they are used to clarify a variable's meaning.
Admin
Siteworx?
Admin
Must have been written for AS1.
Found this on Adobe Flash Docs:
<> (inequality) Deprecated since Flash Player 5. This operator has been deprecated. Adobe recommends that you use the != (inequality) operator.
add (concatenation (strings)) Deprecated since Flash Player 5. Adobe recommends that you use the add (+) operator when creating content for Flash Player 5 or later. This operator is not supported in Flash Player 8 or later.
and (logical AND) Deprecated since Flash Player 5. Adobe recommends that you use the logical AND (&&) operator.
eq (equality (strings)) Deprecated since Flash Player 5. This operator was deprecated in favor of the == (equality) operator.
ge (greater than or equal to (strings)) Deprecated since Flash Player 5. This operator was deprecated in favor of the >= (greater than or equal to) operator.
gt (greater than (strings)) Deprecated since Flash Player 5. This operator was deprecated in favor of the > (greater than) operator.
le (less than or equal to (strings)) Deprecated since Flash Player 5. This operator was deprecated in Flash 5 in favor of the <= (less than or equal to) operator.
lt (less than (strings)) Deprecated since Flash Player 5. This operator was deprecated in favor of the < (less than) operator.
ne (not equal (strings)) Deprecated since Flash Player 5. This operator was deprecated in favor of the != (inequality) operator.
not (logical NOT) Deprecated since Flash Player 5. This operator was deprecated in favor of the! (logical NOT) operator.
or (logical OR) Deprecated since Flash Player 5. This operator was deprecated in favor of the || (logical OR) operator.
Admin
I'm not a big fan of bad code but as said earlier, flash actionscript tends to lead you to that direction. Also worth noting is that most flash developers have no programming skills and are basically animators, since the software originally was meant for animations and the timeline still plays a major role in normal development. Most flash "projects" are quick few day dashes which only aim is to function with not that much value put on reusability. Flash ActionScript 3 has way stricter limits btw.