- 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
$
Admin
Why do I suspect your Anonymous source just sent you the output of a Java obfuscator?
Admin
Actually, I think that this is a manual obfuscation performed exactly because the original developer didn't trust the obfuscator.
Admin
My guess is someone used a form creator tool that output a class file and then decompiled it to get the source
Admin
Do you mean "fri$t"?
Admin
I'd expect an actual obfuscator would be obfuscating the parameter names, too, though. And I'd expect a form creator tool to have a more consistent pattern in its names. I mean, the ArrayList as a list of "$"s just seems like something someone would DECIDE to do.
Admin
My thoughts exactly, more than a wiff of decomposed variable names
Admin
Array.java:18: error: incompatible types for (Shape i : $$$$$$$$$$) ^ required: Array.Shape found: Object Note: Array.java uses unchecked or unsafe operations.
Admin
This looks more like someone was annoyed at his/her coworkers and had a field day with find/replace in order to frustrate the bejeezus out of the next person to touch this code. A decompiler would de-obfuscate variables more along the lines of int i1, i2, i3, i4; unless the bit code was also obfuscated. Then you'd get jibberish (Javarish?) source. Most definitely done intentionally.
Admin
For every one with dollar signs in his eyes There must be hundreds that look at you as if you're some kind of Rhythm section want ad
Admin
The code doesn't do all that much so perhaps it's just a silly exercise? As in determining the capability of understanding programs without having to be led by suggestible names such as isRectangle, x0, ... (as opposed to draw/tp, $$_, ... )?
Admin
This website sucks
Admin
Why, yes, I do occupy time. It's very confusing some...er...times..
Admin
In this thread: Otherwise sane developers analyzing turd-code.
Admin
Dolla dolla bugs, y'all https://www.youtube.com/watch?v=c764JWVt5Fw
Admin
I think it should be $COMMENT_COUNT
Admin
The real wtf is people still use $ as money.
Admin
Manual obfuscation. I used to do this as a kid when I was programming. For school I programmed everything minified by default. But you know, I was a teenager, teenagers are eccentric and do odd things.
Admin
Well, demand your money back then.
Admin
It'd be fun writing the regex to find and replace these things, having to escape each '$', and many of them being substrings of each other.
Admin
Yeah, BTDT. Back when I was TA, I gave my students a bubble sort with variables named _ and $, all conditionals rewritten to ternary operators, and the loops condensed into one loop that would div and mod into two loops. I like to think it made them choose better variable names.
Admin
Try that ($ signs) in PHP, ha ha ha.
Admin
If I have to modify this, I'm getting my revenge by refactoring the names to A, B, C, D... I'm using I and O, too. And after I run out of 26: A0, A1, A2...
Admin
Code Rules Everything Around Me