- 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, that reminds me of BASIC on the C64. It let you ... RunEverythingTogetherLikeThisOnlyItWasAllInUPPERCASE.
Oh and variable names could be about twenty characters long, but only the first THREE characters were actually used to differentiate one variable from another. So, for example the variable ABC123 would be the same as ABC321.
Furry cows moo and decompress.
Admin
In all probability? No.
Admin
Admin
andybean=no
Admin
Admin
The real WTF is they didn't pursue legal action against the developer who intentionally destroyed their software and get the developer thrown in jail for unauthorized access.
And that they didn't have backup tapes of a pre-obfuscated version of said code.
Admin
Did you hire four hundred thousand bad developers?
Admin
I was thinking this story was going to have a happy ending, where ANDY was the original developer, and setting ANDY=YES somehow magically unobfuscated everything.
Admin
Reminds me of VIC20 BASIC. Removing whitespace and reducing all variable names to one or two characters was actually best practice, given how little memory you had to work with (3.5KB if memory serves).
CAPTCHA: dignissim ... couldn't have said it better myself
Admin
Andy went to pieces?
Admin
dangermouse, I suspect that you need to read this:
http://en.wikipedia.org/wiki/Compiler
and probably (just a guess), compare that with this:
http://en.wikipedia.org/wiki/Integrated_development_environment
as I suspect you are confusing the two. Depending on the version of BASIC, you might also wish to read up on:
http://en.wikipedia.org/wiki/Interpreted_language and http://en.wikipedia.org/wiki/Compiled_language
Admin
Admin
Just kick his face in. Not sure how it would help but it would probably help reduce stress.
Admin
Dunno, but I seem to recall that being able to use something close to natural language constructs was part of the point of COBOL.
I've noticed from reading articles on COBOL that a lot of the code makes more sense if you just read it as a sentence, in stead of code.
The example snippet on Wiki for the abbreviated conditional constructs is
IF SALARY > 9000 OR SUPERVISOR-SALARY OR = PREV-SALARY
Which makes perfect sense if you just read it as "If salary is greater than 9000 or supervisor-salary or is equal to prev-salary".
If you're used to reading code written in a language like C, C++, Java, etc, you'd probably end up assuming SUPERVISOR-SALARY is a boolean.
Admin
Sounds like a bad word filter to me... "I told the program to Go-heart itself!"
Admin
Don't think you really thought this one through. Search and replace 'IF' with ' IF ' and you'll get some very broken code such as:
LIFF=3 becoming L IF F=3
What he actually needs to write is a parser for the language which 'cross compiles' to something readable.
Ever written a compiler?
Admittedly there are tools which make this easier (LEX/YACC), if, of course, you have the language grammar to hand or can perfectly write one from your knowledge of the language.
I'm not sure I could rattle off the grammar for any language I profess to be 'expert' in.
Admin
Admin
Admin
Admin
Although big parts of both BASICs would be the same, as they were both supplied by MicroSoft. With bugs and all.
Admin
ANDY=NO is so apropos. At my last job, there was a guy named Andy who would create tons of WTF's.
Admin
Forget the lawsuit, this guy's looking at criminal charges of extortion.
Admin
I think that, after finding that, I would have written a parser to inject whitespace back into the code.
Admin
Actually, in FORTRAN II you really could redefine numbers. We occasionally did this, in my student days, and it resulted in fascinating "bug hunts".
Admin
Oops - forgot quote for reply. This was response to: "and I'll further imagine that the compiler will choke on trying to redefine a number."
Admin
no doubt the obfuscation increased as a result
Admin
Very curious whether the "destroy your code so you must hire me as a contractor on a high rate" technique actually worked here. Also very curious whether he was sued or charged with anything. This sort of behaviour cannot possibly be legal. I would personally go out of my way to ensure this man never worked in the industry again.
Admin
This takes me back to my days of VIC-20 programming. I figured out how to embed backspace characters inside the code, such that when someone typed "list" to list the code, entire lines of code could be completely hidden, but they still execute of course. You could even replace what appears in the listed output by following backspace characters with a different string. So you could replace the first few lines of code of a program, which intentionally contained critical values and computations, with some kind of copyright message, for example.
Admin
This thread made my day! Yesterday I nearly mentioned wooden tables in a meeting because someone mentioned that the online version of some data we want is a pdf of a scan of a book and they need someone to 'digitize' it.
Admin
But I do.
Admin
feh-splat-ick
Admin
And it's particularly satisfying if you're writing for a French project, as French readers will tend to see "1,10" as meaning "1.10" :)
Admin
Separates us old folks from the kids.
In COBOL we would never
if a then
but rather
if a is equal to true then
So we can easily parse those COBOL statement. It's a matter of asking yourself 'how does it read in English'
Admin
Eff-stark.
Admin
Why did you leave? You obviously knew what you were getting into and you had a opportunity to be a hero with very little chance of failing. If you knew the compiler was generous with white space you could have used that to your advantage and probably learned a ton of stuff along the way. You let the problem win...
Admin
Actually yes. In the high school that I attended, in grade 10 (3 years ago), we learned to program small robots using PBASIC.
Admin
No way is this story true, no company would allow themselves to be blackmailled in this way, and they would just sue the ex-lead developer.
Admin
Hmm, since I wrote my first programs on a C64, I don't find it that strange. None of the keywords had a mandatory whitespace suffix. The display was 40 columns wide so if you had unnecessary spaces or variable names longer than 2 characters, what you wanted to do wouldn't have fit onto the line anymore (it would wrap the text and you could write a statement spanning more than one line, but that was just as unreadable as it is today).
So maybe this BASIC dialect was the same kind (Microsoft BASIC).
Admin
a LONG time ago i wrote a simple game in Apple Basic, and tried to use a variable called "score", but the compiler read it as "sc OR e"...