Quadrilingual Crazy Programming
mtve writes: "Have you ever seen source code that is valid on four languages: Perl, C,
Befunge,
and BrainF*ck?
During last Perlgolf
season famous Perl hacker Jérôme
Quelin submit such inconceivable masterpiece and now he published expanded explanation
of his solution. Caution: that text can hurt your mental health. Play
Perlgolf!"
I have enough trouble making my code compile in ONE language, 4 at the same time is a bit much
"The United States has no right, no desire, and no intention to impose our form of government on anyone else." - Bush 05
He should seek professional help. Soon. That's right up there with self-mutilation.
It's not enough to bash in heads, you've got to bash in minds. - Captain Hammer
Now this is exactly why I am proud to be a programmer. Screw Picaso and DaVinci, this is what real art is all about.
This presents an interesting dilemma though. What Emacs mode do I use to look at the code??? perl-mode, c-mode, I dunno. Fontifying just complicates it even more.
At any rate, this shit is going up in my cube. If they should this in a frame, I would buy it and hang it in my house.
int func(int a);
func((b += 3, b));
Well, I guess that is one way to keep people from saying that your implementation isn't portable enough.
Note that, even though this is standard C, gcc won't compile it, complaining about the lack of a "main" function.
It's hard to be religious when certain people are never incinerated by bolts of lightning.
Ironically, the article isn't even valid in one language.
Any sufficiently well-organized community is indistinguishable from Government.
Befunge is,
Holy mackerel! I am in love. I've found the object of my dreams.
In this file, if I change the problem-solving logic slightly, I have to change it in several places. What would be truly cool (and incredibly difficult), in my opinion, would be to completely eliminate redundant logic.
What?!? Eliminate redundant logic? That would put microsoft out of business!
MacOS ~ Windows
Java ~ C#
Diablo ~ Dungeon Siege
This is left as an exercise for the reader.
Wow, if I saw that a few years ago, I would've been so scared I would've never touched another programming language again! Slashdot, please think of the children before you post things like that.
Looking for a computer support specialist for your small business? Check out
Huh?
Of your list only C++ is a language. However one could right an Apache module in C++ that accesses a MySQL database... err wait actually that been done!
--- Nothing To See Here ---
Don't mind him, he's just a troll...
/. ... I'm starting to recognize the trolls by username.
Gees, maybe I need to stop reading
int func(int a);
func((b += 3, b));
Try to get a website to look the same in every web browser.
That's an impressive feat?
Netscape 4.X = Worst browser ever!
Poster named Damiam, you are in violation of the terms of my license. You are hereby asked to cease and desist from distributing your code, and will be contacted shortly with a cease and desist letter saying the same message.
If you do not pay royalties to me, I shall strip you of all your Karma, and fart in your general direction. :)
By the way, if you claim prior art, this is not true. I came up with this program back in 1984 when I was banging enter on the keyboard of my Commodore Pet computer and realized that I was programming it without my knowledge.
/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i
News Reporter: So how'd you do it?
Guy: Well, the nanotech was already there. I just wrote a small program in BrainFuck in order to hunt down the virus.
Well, at least censorship would go out the window the same time we cure World Disease.
/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i