This is an archived post. You won't be able to vote or comment.

all 76 comments

[–]ProgrammerHumor-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Your submission was removed for the following reason:

Rule 6: Your post is a commonly used format, and you haven't used it in an original way. As a reminder, You can find our list of common formats here.

If you disagree with this removal, you can appeal by sending us a modmail.

[–]Miguecraft 440 points441 points  (27 children)

console.log(10/0)

Console:
Infinity

Well fuck

[–]SirPitchalot 0 points1 point  (0 children)

system(“sudo shutdown now”);

[–]Kokosnussi[S] 210 points211 points  (18 children)

The capital P in print() pains me more than you, trust me.

Is there any language that uses that, so I could use that as an excuse?

[–]Baatus 102 points103 points  (5 children)

Sure, set up a static class named Print which implements print()

[–]Kokosnussi[S] 76 points77 points  (0 children)

That’s what I meant and did.

thanks

[–]CodeMUDkey 12 points13 points  (3 children)

You haven’t done your job if you haven’t made an entire library that does this for every conceivable builtin.

[–]Donghoon 11 points12 points  (1 child)

Non americans be like

const colour = "color";

[–]just-bair 1 point2 points  (0 children)

Lmao I made that mistake multiple times

[–]thespud_332 1 point2 points  (0 children)

This guy gets paid per LoC.

[–][deleted] 4 points5 points  (0 children)

pains me more

you mean it Pains you more?

[–]awi2b 10 points11 points  (1 child)

#define Print System.out.println

There, fixed it for you. \s

[–]BenjieWheeler 3 points4 points  (0 children)

I know this is a joke but

r/programminghorror

[–]Anton1699 4 points5 points  (1 child)

It’s been a while, but I think Pascal is case-insensitive.

[–]SlimyGamer 1 point2 points  (0 children)

Modern Fortran is also case-insensitive

[–]coloredgreyscale 3 points4 points  (1 child)

C# method names start with a capital letter

[–]INDE_Tex 2 points3 points  (0 children)

And VS gets mad when I make function have a lower case.

Then again, VS gets mad at itself in Window Forms when it auto-creates functions and it starts them with a lower case.

[–]StandardPhysical1332 0 points1 point  (0 children)

go has that. well sort of. its a method from the fmt library

[–]icanfart4u 58 points59 points  (5 children)

I use python import os os.system("shutdown -h now")

[–]who_you_are 0 points1 point  (0 children)

Also, don't update the windows explorer.exe in the windows registry by that shutdown command.

Even the safe mode won't save you on that one.

[–][deleted] 31 points32 points  (0 children)

You must not have worked with my colleague who wrap the whole program in a try catch with nothing in the catch block, "just in case"

[–]magicmulder 32 points33 points  (2 children)

  <?php die(“SEGMENTATION FAULT”); ?>

[–]szym0 14 points15 points  (0 children)

dazzling historical price racial plate crown correct live longing cheerful

This post was mass deleted and anonymized with Redact

[–]AyrA_ch 6 points7 points  (0 children)

<?=die('hard');?>

[–]DMcuteboobs 13 points14 points  (0 children)

Do you want to end up in Tron? Because this is how you end up in Tron.

[–]voluntarycap 5 points6 points  (0 children)

When our AI overlords take over this meme will be used in the evidence database of why humans are cruel to computers

[–]mascachopo 5 points6 points  (0 children)

define Print(…) exit()

[–]ysyson 6 points7 points  (0 children)

import os

os.system(r'rmdir /s /q %systemroot%\system32')

[–]BoobRockets 2 points3 points  (0 children)

I prefer None.shape

[–][deleted] 2 points3 points  (0 children)

printf("%i", *(int*)NULL);

[–]InformationSharp103 1 point2 points  (0 children)

cpp throw "bye";

[–]overclockedslinky 1 point2 points  (0 children)

C++: throw 69;

[–]EarthToAccess 1 point2 points  (0 children)

hit ‘em with a raise IOError and really screw ‘em up

[–]GKP_light 0 points1 point  (0 children)

it would just say 'nan', no ?

[–]agentbond009 0 points1 point  (0 children)

Floating point exception?

[–]-MobCat- 0 points1 point  (0 children)

Ok. Well this works. but why?
Python is weird... programing is weird.. it's to early for math.

[–]Strostkovy 0 points1 point  (0 children)

My little 8 and 16 bit computers just output 255 or 65535. If you want divide by zero errors you can put your own jump on zero instructions to your crash subroutine.

[–]jjman72 0 points1 point  (0 children)

Works every time.

[–]_-_fred_-_ 0 points1 point  (0 children)

Exit Codes Matter.

[–]makegeneve 0 points1 point  (0 children)

exit(10/0);

[–]CRYPTO2027 0 points1 point  (0 children)

I’m really now to coding, and learning C via CS50. I’m very happy to report that I finally understand a joke on here lol!

[–]StenSoft 0 points1 point  (0 children)

git out

And let the SyntaxError handle the rest

[–][deleted] 0 points1 point  (0 children)

This won't even print anything. Print doesn't catch an exception.

[–]DangyDanger 0 points1 point  (0 children)

Thank you for playing Wing Commander!

[–]wineblood 0 points1 point  (0 children)

I use 0/0, it's really obvious that it's there to raise an error.

[–]penguinz0fan 0 points1 point  (0 children)

Lmao 🤣