- 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
The argument that the code was generated/preprocessor output/written by evil spirits etc... is preposterous. This is simply a shining example as to why you shouldn't program for job security. (It leaves a mess)
Judging by the comments, its quite effective. No one has any idea what it does, how it works, or even how to refactor it to behave in the same way it once did. I'm sure the author who wrote this gem had many episodes of epic heroism until he was called out as the hack he is.
Admin
You're right. However, when I saw you make your small mistake, I'm afraid I couldn't resist making that easy joke :)
I believe the problem is that we are confusing these operations:
100&001=000 the bitwise AND
100+001=101 the addition operation
add(), per specification, has to implement the bitwise AND, but its name strongly suggests that it implements the arithmetic addition. The WTF here is misleading people by naming it "add" instead of "and".
I can imagine a language written like this
add() implements AND
and() implements add operation :)
substract() implements XOR
xor() implements substraction
open() creates a new object
new opens a new connection
delete closes the connection
close() destroys the object
Admin
Maybe it
s not the additions that are important here, but the execution of operator +( ) ? I mean, what better way to make sure you operator is called exactly 8 times before indexing a table value..<br> <br> I have a rich imagination, I know. Frightning, isn
t it..Admin
Then the human who wrote the awful code generator is at fault.
Admin
<FONT face="Courier New" size=2>no, my original intent was to have the accumulator unable to preform addition.</FONT>
Admin
This needs to be reclassified as an "I Don't Care To Know what this does." - a DCTK. It is just that awful.
Admin
Please forgive me for overlooking the mathematical definition of "emptysetsspecialandfunctionthatbehavesquitedifferentlythanplainoldboringbitwiseand" you in fact didn't give.
Admin
Who needs TCP/IP stacks anyway? Burn all bits!
Admin
Yes, I was half-asleep when I wrote that (should have been 15, and the hex notation when I meant binary was obviously dumb), but people were claiming that 0+1+1+... was "a way to visualize a bitmask" which is just a bizarre conclusion to come to. I should have quoted one of those messages.
Admin
this code rocks it a machine intuprait code but means how are u it is increpted 4 times then each letter is incripted twice
Admin
<font style="font-family: times new roman;" size="-1">+++ SYNTAX ERROR - REDO FROM START +++</font>
Admin
Especially since there's also the reference just before: "all alone in the system". And I think there may be one more hidden in there.
-Lars
Admin
Especially since the title is "All alone in the code", which is also a B5 reference.
-Lars
Admin
I agree. In particular, I think is a simple-minded code generator that can turn symbolic constants into numerals, but not optimize them, and for some reason the index is the sum of a lot of those constants.
-Lars
Admin
<FONT face="Courier New" size=2>you totally didn't understand what i was saying. yes - i'm admitting to having fuggered up the 'and' function when i first stated it. it was amusing. if richard nixon were here, it would be enough evidence for him to assert his superiority over everyone. like the libertarian he is.</FONT>
<FONT face="Courier New" size=2>by saying "if i felt i needed to save face" i assumed that would be taken to mean i had no intention to defend my knowledge of bitwise operands using some magical scheme personally designed to confuse you.</FONT>
<FONT face="Courier New" size=2>i'm dyslexic. this makes me particularly unsuited to deal with bitwise operations in code. that's all i'm saying.</FONT>
Admin
Hardly. Generated code is ugly, but not stupid.
If you look at the code, sysobjs is actually an array of structs, and some members are actually pointers. Then the array got flattened and the pointer arithmetics expanded to index arithmetics. The only question is, why would anyone ever write it this way?!
I think, this was written by a quite capable programmer, and he wrote it using structs, as any sane person would do. After so many "your code is sooo complicated, what do all the pointers do?" and "I've never got the hand of this linked list business, can't you use an array?"'s from his cow-orkers his patience ran out, and he transformed it to the crap you see, exclaiming: "Look, it doesn't even need large numbers like 2 anymore!!!1"
Admin
This is at least an out of cheese error. Possibly even of the "Reboot universe" class.
Admin
Not the exact wording, but its from Predator, when the girls describing what happens to men in her village when it gets hot bla bla bla.
Admin
you are right it is a machine generated code and it is a fake it is a cover for an amazing virus called meder-bites it is 3 words converted in to html then it is incripted eight times then each incription letter is incripted a further 4 times then converted to pnnd. the 3 words are how are you.
how do i know this you ask well it is because meder-bites is my verry oxn creation.
Admin
u sit their thinking u know it and u dont if u wanna know what the code is mail me if not fine but dont down load it contact me on [email protected] and no thats not my name i dont exist any moore my death certificate is on my wall next too me i cant exist i am the greatest hacker since.........mmmm.......errr........ ever
Admin
u die u coppied what i said anyway that was wreong coppie my new one if u wanna be a fake mail me [email protected] and no that isnt my name i dont exist cos my death certificate is next to me now
Admin
All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy.
Admin
<FONT face="Courier New" size=2>next: pool springs a leak and makes angelina jolie pout.</FONT>
Admin
omgwtflolkthx
Admin
No!!
int i = 10; while(i--) cout << "All work and no play makes Jack a dull boy.";
Admin
Hey EmptySet: when you're all doped up does the code become more or less clear?
I'm thinking it probably helps.
Admin
<FONT face="Courier New" size=2>for starters, i've not volunteered any information regarding any drug use. i have the occasionally drink and cigarette.</FONT>
<FONT face="Courier New" size=2>second, loaded questions are stupid, and make you look like you're in grade school.</FONT>
<FONT face="Courier New" size=2>third, most of my coding is done at work, and since i'm not an alcoholic, i'm not drinking while at work. i do not have a bottle of patron silver tequila in my drawer.</FONT>
<FONT face="Courier New" size=2>i can't answer your question because i've never been 'doped up'. </FONT>
<FONT face="Courier New" size=2>for future reference, here's a short list of famous people that have been 'doped up':</FONT>
<FONT face="Courier New" size=2>1. kate moss
2. george w. bush
3. stephen king</FONT>
Admin
I'm amazed at how one single offhand remark about someone's seemingly random post can perpetuate an entire belief system. To some it is now proven fact that emptyset is on something.
Though, I do have to wonder about the specificity of the alchoholic beverage [Hint to others: This is a joke]. As for the celebrity list: I have no firsthand knowledge, but it sure explains a lot.
Admin
<FONT face="Courier New" size=2>it's what i was talking about in another post somewhere.</FONT>
<FONT face="Courier New" size=2>there's some deep, cultural bullshit in america when anyone who shows off a little creativity is immediately labeled as being on drugs, and with this, some stigma gets added in there as well.</FONT>
<FONT face="Courier New" size=2>thank you, arcade machines [0]. i thank my lucky stars everyday i'm part of some nebulous generation that narrowly escaped reaganomics and the latest round of parrots that have delightful phrases like "shock and awe" and "support our troops". i don't meet many people in my age group with such retarded world-views.</FONT>
<FONT face="Courier New" size=2>often, the harshest critics of drugs are people who haven't even seen a drug in their life. it's all ignorance. i bet they're the same people who lock their doors if they see a black guy or a mexican on the side of the road as they zoom by at 70 mph in their SUV. what are parents and teachers saying to children in grade school, middle school - to create such a societal backlash towards creative thinking?</FONT>
<FONT face="Courier New" size=2>[0] WINNERS DON'T DO DRUGS</FONT>
Admin
I haven't found this to be the case at all. I believe it is an overstatement to say that creativity = drug-use is an American ideal. And since we're both citing personal observations, any conclusions about whether this is or isn't a characteristic of American culture is shaky at best.
I also find your characterization of the relation between driving an SUV, having paranoid feelings about minorities in the US, and thoughts on drug use to be quite stereotypical. Just as you are chastising SUV drivers for stereotyping all minorities as being dangerous, I will chastise you for stereotyping all people who drive SUVs.
[Now, I'm going to make this statement but given the bullheaded stupidity you've demonstrated in the past, I doubt you'll listen to it. I drive a compact car. It gets pretty good gas mileage.]
(People often defend other people who aren't homogeneous to them. You fail to be able to grasph this. I would defend a Nazi's freedom of speech and then you would conclude I was a Nazi, right?)
Admin
<FONT face="Courier New" size=2>i agree it's an overstatement, since that's not what i said at all. i don't even see how that phrase makes sense: "creativity == drug use is an american ideal".</FONT>
<FONT face="Courier New" size=2>the observation i am making about americans is that creative people are readily labeled as drug users, and that there's this implicit stigma associated with it. i've seen people do this everywhere i go in america, and even on this forum. such labeling contributes to a culture of ignorance. in the same manner as racism.</FONT>
<FONT face="Courier New" size=2>true.</FONT>
<FONT face="Courier New" size=2>and i will chastise you for being a libertarian, thus completing the wheel in the sky.</FONT>
<FONT face="Courier New" size=2>what are you trying to prove by saying you drive a compact car that gets good milage? is this supposed to give you better arguing credentials?</FONT>
<FONT face="Courier New" size=2>it's kind of like saying, "look, i plant a ton of trees every weekend. but seriously guys, these loggers are in the right! they're getting dicked over by environmentalists!" - without clearly addressing why the loggers are right in cutting down the forest.</FONT>
<FONT face="Courier New" size=2>no, of course not. as a libertarian, you would let the free market decide which race of people to eliminate.</FONT>
<FONT face="Courier New" size=2>i don't understand how you manage to land on the stupid squares of the jump to conclusions mat. when have i demonstrated i don't comprehend your arguments? i may choose to ignore some parts of them to suit my own purposes (humor), but that doesn't mean i don't comprehend them. i don't think you can prove if i comprehend your arguments or not.</FONT>
Admin
I think we should start a campaign to ban emptyset.
His posts are annoying and pointless.
I vote YES! [:D][Y]
Admin
I say we karate chop him!
Hyyy-yah!
Back on up punk.
Admin
<FONT size=6>FATALITY!!</FONT>
Admin
<FONT face="Courier New" size=2>yup. i'm the one that's 13.</FONT>
<FONT face="Courier New" size=2>go back to slashdot.</FONT>
Admin
Hey EmptySet, you make me laugh. A lot.
Admin
To give emptyset some credit, I've written some of my best code when I was drunk as hell. [:D]
Admin
<FONT face="Courier New" size=2>compilers are written with blood, sweat, tears, and hundreds if not thousands of long island ice teas.</FONT>
Admin
Or: margaritas, piña coladas, jack & cokes, beers... etc... [:)]
Admin