r/ProgrammerHumor • • Apr 23 '19

Yeet!

Post image
23.9k Upvotes

547 comments sorted by

View all comments

1.7k

u/Eznix Apr 23 '19

Try making a working program with this and ask someone else to fix your bugs.

183

u/LicensedProfessional Apr 23 '19

We could uniquely identify all of the symbols in a given file using a "Binary Yeet-encoding" where lowercase is 0 and uppercase is 1, and all numbers take the form y-XXX-t, then automatically generate a bunch of macros and update the file with them.

200

u/RJCP Apr 23 '19

"binary yeet-encoding" sounds like something I was born to dedicate my life to.

I am willing to donate $5 towards the crowdfunding campaign to turn this into a reality.

117

u/thirdegree Violet security clearance Apr 23 '19

born to dedicate my life to

--

willing to donate $5

43

u/Siniroth Apr 23 '19

The real joke is that everyone here is in crippling levels of debt and being $5 in... Not .. Debt? would be a staggering improvement

→ More replies (4)
→ More replies (1)

28

u/thewildjr Apr 23 '19

The crowdfunding campaign is at https://www.paypal.me/thewildjr you can trust me

don't actually send me money

34

u/Shingo__ Apr 23 '19

Too late I’ve already sent you my entire bank account

→ More replies (2)
→ More replies (2)

23

u/Homunculus_I_am_ill Apr 23 '19

In python you can return all the functions in a module as a list of strings with dir(module). Just use that to obfuscate all the functions within a module without showing any of the define statements.

import math

counter = 0

for x in dir(math):

    definition = "foo%s = math.%s"%(counter,x)

    exec(definition)

    counter += 1

> foo42(foo36)
-1.2246467991473532e-16

foo42 was defined as math.sin and foo36 as math.pi.

Now just replace my counter with something that generates variants of Yeet and do it for a bunch of module and you're in business for a very obfuscated yeet code.

→ More replies (2)
→ More replies (9)

769

u/x32byTe Apr 23 '19

this program actually works, try it yourself its c++

570

u/Eznix Apr 23 '19

Well i was thinking of a full-fledged application tho.

Must be a hell to maintain tbh.

431

u/pm-me_your_vimrc Apr 23 '19

Nah, you can always find-replace all the yeets

245

u/Eznix Apr 23 '19

Well thats just taking the fun out of it.

131

u/Sneakr1230 Apr 23 '19

Just make it case-insensitive

219

u/CarryThe2 Apr 23 '19

jUsT mAkE iT CaSe InSEnSiTIvE

29

u/[deleted] Apr 23 '19

Thank you Mr Microsoft Windows.

25

u/MoffKalast Apr 23 '19

How case-rude.

→ More replies (1)

22

u/yurisho Apr 23 '19

Well thats just taking the fun out of yeet.

FTFY

→ More replies (1)

34

u/SuperOP535 Apr 23 '19

Or you can just run it through the preprocessor (cpp -P src/file preprocessed/file). You can even use it with other languages like e.g. Java!

→ More replies (5)

15

u/NeinJuanJuan Apr 23 '19

You can always yeet the yeets.

→ More replies (10)

58

u/Dmium Apr 23 '19

Using a reverse equivalent of the classic Bee Movie Script c++ code this should be relatively easy to reverse.

I'm tempted to make this for yeet now though

→ More replies (6)
→ More replies (16)

33

u/Pure_Decimation Apr 23 '19

Excuse me, but do you expect me to type that all out? Please copy paste it to stack overflow so that I can copy paste it from there like any sane programmer would.

→ More replies (2)
→ More replies (9)

33

u/cholantesh Apr 23 '19

OP could make it worse by putting his #defines in a header file

→ More replies (1)

23

u/[deleted] Apr 23 '19

Ever heard of the international obfuscated C code contest? https://www.ioccc.org/

→ More replies (5)
→ More replies (13)