|
|
MOVE CORRESPONDING
Still waiting for one of the "modern languages" to implement that one.
(I have to resort to reflection in C#).
|
|
|
|
|
Best line ever.
I think every language should have something like 'On Error Resume Next'. Once I added it, my program stopped crashing entirely! It's like magic! Imagine if we could just apply this to every application worldwide... No more software bugs!
(Before you start screaming, note the joke icon... Seriously... I'm crazy, but I'm not an idiot)
|
|
|
|
|
You'd have to go a long way to beat the eloquence of this:
$HODOR: hhodor? Hodor!? Hodor!? oHooodorrhodor orHodor!? d = HoDoRHoDoR () {
hodor.hod('Hhodor? Hodor!? Hodor!? o HODOR!? orHodor!? d!');
};
hhodor? Hodor!? Hodor!? oHooodorrhodor orHodor!? d();
Hodor Programming Language[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I would go a long way.............to beat the persons who come up with that!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Richard Deeming wrote: Hodor Programming Language[^] That would be funnier if it didn't look almost exactly like a lot of the Java code I've had to manage.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
The modern version;
catch
{
}
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Not quite - the modern version would require wrapping every single statement in its own "Pokémon exception-handling" block.
Which would mean splitting all variable declarations from their assignments, since a variable declared inside a try block can't be used outside of that block.
Which would also mean giving every variable some sort of default value, either when they're declared, or in the empty catch block for the first line that assigns them.
And don't forget to update the properties of the global Err object, in case the user gave any thought to checking for errors on the following line, and didn't just let their code trundle on regardless and destroy the program state / database / computer / world.
Having worked with VBScript many years ago, where this was the only form of error handling allowed, it's an horrendous construct. Whoever came up with the idea deserves a good beating with the clue-bat.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: Whoever came up with the idea deserves a good beating with the clue-bat. Probably someone who got paid per LOC.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
You hold 'im, I'll hit 'im.
Then we can swap places. Repeatedly.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Richard Deeming wrote: he modern version would require wrapping every single statement in its own "Pokémon exception-handling" block.
Which would mean splitting all variable declarations from their assignments, since a variable declared inside a try block can't be used outside of that block.
Which would also mean giving every variable some sort of default value, either when they're declared, or in the empty catch block for the first line that assigns them.
And don't forget to update the properties of the global Err object, in case the user gave any thought to checking for errors on the following line, and didn't just let their code trundle on regardless and destroy the program state / database / computer / world Ah!
Now I understand why you love VB so much!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
That's more like ON ERROR BAIL.
Steve
|
|
|
|
|
|
You've discovered infinite recursion
Remain Calm & Continue To Google
|
|
|
|
|
"IF THEN MAYBE", "DO SOMETHING" and "GO SOMEWHERE" have always had a special place in my heart....
MAYBEBOL
|
|
|
|
|
I like their error-handlers, at least it is honest.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
ON ERROR FORGET ABOUT IT from MAYBEBOL seems to be most directly in the spirit of the OP.
Software Zen: delete this;
|
|
|
|
|
I've worked at places where it's ON ERROR RESUME UPDATE.
(You'll have to imagine the accents)
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
DaveAuld wrote: just popped into my head
I mumble this when something goes wrong...of course the wife doesn't get it.
It's the be-all, catch-all of error handling constructs, and not a bad way to approach life sometimes! I can always apply a condition based on Err.Number!
"Go forth into the source" - Neal Morse
|
|
|
|
|
break;
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
I like INTERCAL's ABSTAIN. You get statements like:
PLEASE ABSTAIN FROM CALCULATING
Also, to exit the program, you use:
PLEASE GIVE UP
The PLEASE is optional. If you don't use it enough, through, the compiler will reject your program for not being polite enough. You do have to be careful with it: using PLEASE too often will get your program rejected for excessive politeness.
|
|
|
|
|
Does it have private and public statements, too?
e.g:
PRIVATE PLEASE SHAKE_IT_BABY
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
The only people who complain about this statement are the same ones who didn't know how to use it properly.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
The only way to use On Error Resume Next properly is to never use it.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Not the best War Games paraphrase I've ever seen, but it'll do.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|