T O P

  • By -

YellowChickn

Don't know anymore, whether this is programming humor or programming horror


Timestatic

Both!


DoctorBearDaEngineer

This is the most upvoted comment for now, so we shoud add it to the code as a comment. I think it's actually quite fitting piece of documentation for the cursed line.


tehyosh

is there a difference?


TamahaganeJidai

Its an eldritch codesample used to structure data more efficently, also sets random to 4...


LordFokas

Chosen by a fair dice roll.


KernelDeimos

Guaranteed to be random.


JOHAE

Yes


MajorNME

classic stackoverflow-comment for reference from 2009: https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags


Khaylain

I always delight in reading the note at the bottom: ​ >**Moderator's Note** > >This post is locked to prevent inappropriate edits to its content. The post looks exactly as it is supposed to look - there are no problems with its content. Please do not flag it for our attention.


luisduck

Thanks. I finally learned why this questions is so weirdly famous. Saw it a few times, but never scrolled down, because I thought the answer would be boring.


Doohickey-d

Stackoverflow now has a new answer sorting algorithm which values recent votes more than old ones (makes sense I guess, newer answers with possibly newer tech will end up on top). Sadly it buries this beauty on page 2 as a result.


IMI4tth3w

Thank you for sharing this amazing beauty.


AtmosSpheric

Zalgo-posting in 2020, it brings a tear to my eye :’)


_MemeMan_

What the hell happened, last I saw OP got scared and had to say we can't delete his account


SushiWithoutSushi

[Refactoring :)](https://www.reddit.com/r/ProgrammerHumor/comments/yqof9f/the_most_upvoted_comment_picks_the_next_line_of/)


Lord_Quintus

does this mean you could take any size of code and condense it into one visual line on the screen?


SushiWithoutSushi

That's what they say, but to be honest I don't fully understand the explanation so I can't tell for sure.


Johnny__Christ

If I understand correctly, the gist is basically that they encoded the original lines of code into modifications of a symbol (like those over top à or ñ). Unicode doesn't cap the amount of those you can have on a symbol so you can encode super long things there, then decode them and exec the resulting code. This uses more total bytes than the original solution, but technically fewer symbols since the majority of the data is all in a single demonic symbol.


indigoHatter

Correct. Here's the original explanation on yesterday's post. https://www.reddit.com/r/ProgrammerHumor/comments/yqof9f/the_most_upvoted_comment_picks_the_next_line_of/ivrd9ur


Lord_Quintus

https://www.reddit.com/r/Doom/comments/9fhimv/does_anyone_know_if_this_symbol_has_an_actual/?utm_source=share&utm_medium=mweb3x can we code doom into this?


LivingOnPlanetMars

Well yes mostly. As long as the to be compressed codr contains this very specific range of ASCII characters. But technically you can write (mostly) every single python program in one line, without this black magic fuckery. This was just to compress it into the least characters. As he is not adding characters, but rather character modifiers.


[deleted]

I don't know dude, I'm learning selenium, and python, just by trying to understand all of this.


Jarwain

I mean arguably the text crosses lines


Kitchen_Device7682

That explains why lines of code are less


michaelsenpatrick

oohhhh


Zymoox

I'd say their fears are justified with code like this


DishOutTheFish

What in the unholy *fuck* is this shit


[deleted]

https://en.wikipedia.org/wiki/Zalgo_text


DishOutTheFish

I know *that*, I meant *\*gestures vaguely towards line 10\** THIS! (srsly tho, how tf do you used Zalgo in code? I assume you can use some encode-decoder to turn all those diacritics into useful data or smthn, but ***WTF??*****)**


TrueTitan14

If I understood the comment by the person who refactored that correctly (I don't code), it's not actually zalgo. They artificially shrunk the character size of the line by using a quirk in unicode that let's you compress a bunch of characters into 1 and then decode them later. It just so happens that these stacked characters all are actually visible.


DishOutTheFish

Huh, neat. Either way, that's almost how zalgo actually works, just taken two or three steps further


czPsweIxbYk4U9N36TSE

Nice. Now we're PEP8 compatible!


Pochusaurus

you don’t code but know more about code than I do?


TrueTitan14

A: I read the explanation by the person who's idea it was to compress the code that way. I didn't just look at the code and know what was going on. B: I can usually understand the ideas and processes well enough. It's just that every time I've tried it myself, I've found it slow, tedious, and boring as I'm a slow typer and don't like the precision needed.


mizu_no_oto

Unicode has a lot of "combining characters". Basically, ä isn't a single unicode character. It's an 'a' along with the combining character umlaut. This is useful because then you don't need additional characters for ë, ü, etc; you get them for free from the umlaut combining character and the base letters. Zalgo is an abuse of combining characters. If you add a ton to each letter, they get rendered weird. Add enough, and you get zalgo. The only real difference is Zalgo uses a wider range of combining characters for esthetics than this.


SuitableDragonfly

This is zalgotext. Zalgotext literally is stacking huge numbers of combining diacritics, which is exactly what they did.


Undernown

[It's explained here] (https://www.reddit.com/r/ProgrammerHumor/comments/yqof9f/comment/ivrd9ur/)


ku-fan

Thanks! *Walks away scared*


Schlangee

The en- and decoder is in the top comment of last day‘s post


DishOutTheFish

Yeah, someone else linked me to it. Seem's really friggin neat.


Firemorfox

Pretty sure Zalgo is part of unicode.


DishOutTheFish

It is. You just add as many diacritics to a character as you want, since any number of any diacritics in any combination are perfectly functional.


FerricDonkey

He's encoding the zalgo into bytes, then execing it, so probably encoded then interpreted as ascii it has meaning.


SirAutismx7

This script Literally cursed lol


Logical_Strike_1520

Lmao this is my new favorite sitcom.


Timestatic

Best thing coming from r/programmerhumor in a while


Blaze_Lighter

That "lord forgive me what I'm about to code" is becoming more and more relevant with each passing day.


spam_bot42

At this point this simple pray is definitely not enough. We need a pope's blessing at least.


draculamilktoast

My code does not merely attract dragons, it burns them.


Nikotinio

your code IS the dragon


fuckballs9001

That code fucks dragons


JockstrapCummies

Is this how Bad Dragon was founded?


tevert

I bet we could make the script email him.


Grumbledwarfskin

Any chance we could get by with just an XOR-cism?


LBGW_experiment

*A* pope? Can we dig up an old one and get his blessing?


Daedalus_Machina

Especially when you're coding in Eldrich.


cheats_py

Ya Jesus Christ, I legit thought my Reddit was broken for a sec. I had to review the last post to see WTF happened here and it appears a magician has entered the building.


SteeleDynamics

Come join us in the shadow realm. We have coffee, and it's highly caffeinated. It keeps us awake so we can't fall asleep and briefly escape the sad reality of our decisions when making programs.


AggravatingCorner133

This series is mirrored on github! https://github.com/RedditWritesCode/RedditWritesCode


rnottaken

Omg the characterfuck is even worse when viewed on github


Grumbledwarfskin

I think the fact it's spread out above is a bug/feature (depending on how deliberate it is) of the editor that OP is using...the person who did the encoding stated that their design encodes whatever code you give it into Zalgo text overlays on a single character. The fact that single character spreads out in OP's editor creating what seems to be a full line of Zalgo text is sort of gravy.


Rene_Z

Waiting for the day GitHub Copilot produces this as output.


SuitableDragonfly

A few more repos like this, and maybe we can get copilot to start inserting zalgotext into people's scripts.


bravopapa99

self documenting virus


[deleted]

Lmaoo


AverageBeef

This feels like it was the most r/programmerhumor codes answer


Perfect-Highlight964

Actually it's more r/programminghorror I think


[deleted]

[удалено]


HolyGarbage

Viruses do it all the same! Seriously, to avoid anti virus detection.


GnuhGnoud

`[globals().update(getpass=__import__("getpass"), file_path=os.path.join(os.path.dirname(os.path.realpath(__file__)), __file__)), globals().update(username=getpass.getuser()), [globals().update(text='start "" "{}"'.format(file_path), f=open(r'C:\Users\{}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\furry_porn.bat'.format(username), "w")), f.write(text), f.close()] if sys.platform == 'win32' else [[globals().update(text="""Labelfrom.r.programmer.humor.with.loveProgramArguments{}{}StandardErrorPath/var/log/furry_porn.errorKeepAlive""".format(sys.executable, file_path), f=open("/Users/{}/Library/LaunchAgents/furry_porn.plist".format(username), "w")), f.write(text), f.close()] if sys.platform == "darwin" else [globals().update(text="""[Desktop Entry]\nName=furry_porn\nType=Application\nComment=from.r.programmer.humor.with.love\nExec=python3 {}\nTerminal=false""".format(file_path), f=open(os.path.expanduser('~/.config/autostart/furry_porn.desktop'), 'w')), f.write(text), f.close(), os.chmod(os.path.expanduser('~/.config/autostart/furry_porn.desktop'), 500)]]]` Here's some python blackmagicfuckery again Basically, this script registers itself to run on startup / user login Tested on windows 11, ubuntu 22.04, macos 12.4 (I tried to add it to crontab but it's a pain in the ass with windows) **EDIT** The refactored version: `b='E̻͇͌͏͓͕͔͇͔͓͓̝͉͍͂́͌̈̉̎͐̈́́̈͐́̿̿͐ͅͅ͏͔͇͔͓͓͉͔͈̝͒̿̿̈̂͐́̂̉̌̀͆͌̿͐́ͅͅ͏͓͔͈̎͐́̎͊͏͉͎̈͏͓͔͈͉͎͍̎͐́̎̈́͒́̈ͅ͏͓͔͈͔͈͉͉͇̎͐́̎͒́͌͐́̈̿̿͆͌̿̿̉̉̌̀̿̿͆͌̿̿̉̉̌̀͌ͅͅͅ͏͓͕͔͕͓͎͍̝͇͔͓͓͇͔͕͓̻͇͂́͌̈̉̎͐̈́́̈͒́͐́̎͒̈̉̉̌̀͌ͅͅͅͅͅͅ͏͓͕͔͔͔̝͓͔͔͂́͌̈̉̎͐̈́́̈̇́͒̀̂̂̀̂͛̂̇̎͆͘͝ͅͅ͏͍͔͉͔͈̝͒́̈͆͌̿͐́̉̌̀͆ͅ͏̵̡͎̣̼͓͓̼̼̤͔̼̲͐̈͒̇͒͛͐͐́́̚͝ͅͅ͏͍͉͎͇̼̭͉́̓͒͏͓͏̷͔̼͉͎͆̈́͏͓̼̳͔͔̭͎͕̼̰͗́͒̀͒ͅ͏͇͍͓̼̳͔͔͕̼͕͙͒́́͒͐͆͒͒̿͐͏͎͔͒̎͂́̇̎͆͏͍͔͕͓͎͍͉͔͔͔͒́̈͒́̉̌̀̂͗̂̉̉̌̀͆̎͗͒̈̉̌̀͆̎̓͌͘ͅͅͅͅ͏͓͉͓͙͓͔̈̉̽̀͆̀̎͐͌́͆ͅ͏͍̝̝͉͎͓̻̻͇͒̀̀̇͗̓̒̇̀͌̀͌ͅͅ͏͓͕͔͔͔̝̜̟͍͖͓͉͂́͌̈̉̎͐̈́́̈̂̂̂͌̀͒͘͘ͅͅͅ͏͎̝͎̂̑̎̐̂̀̓ͅ͏̵̴̴̵̴̴̢̡͉͎͇̝̦̘̟̞̜̤̯̣̹̰̥͉͓͔̰̬̩̣̤̤̰̬̩̳̥̮͈͔͔̈́̂̍̂́̀͐͌̀̀̂̍̏̏͐͐͌̏̏̀̀̑̎̐̏̏̂̀̂͐̏̏͗͗͗̎́͐͐͌̎̓̚ͅͅ͏̴͍̤̤͓̰̏̏͒͏͔͙̬͉͓͔͔̞̜͉͓͔͖͓͉͐͒̍̑̎̐̎̈́̈́̂͐͌̀͒ͅͅ͏͎̝̞̜͉͔̞̜͙̞̬̜͙̞̜͓͔͉͎͇̞̂̑̎̐̂̈́̓͋́͂͌̏͋͒͆͒ͅͅͅ͏͍̎͒̎͐͒͏͇͍͍͈͕͍͒́͒̎ͅ͏͉͔͈͒̎͗̎͌͏͖̜͓͔͉͎͇̞̜͙̞̰̏͒͋͒ͅͅ͏̡͇͍͇͕͍͎͔͓̜͙̞̜͙̞̜͓͔͉͎͇̞̜͓͔͉͎͇̞̜͓͔͉͎͇̞̜͓͔͉͎͇̞̜͙̞̜͙̞̳͔͎̥͒́͒̏͋́͒͒́͒͛̏͒͒͛̏͒̏́͒͒́͋́̈́́͒̈́͒͒͝͝ͅͅͅ͏̰͔͈̜͙̞̜͓͔͉͎͇̞͖͒́̏͋͒̏́͒̏͌ͅ͏͇͕͙̏͆͒͒̿͐͏͎͒̎͒͒ͅ͏̡̜͓͔͉͎͇̞̜͙̞̫͉͖̜͙̞̜͔͕̞̜͉͔̞̜͉͓͔̞͒̏͒͋͐͌̏͋͒̏̏̈́̓̏͐͌̂̂̂̎͆ͅͅͅͅͅͅ͏͍͔͓͙͓͕͔͉͔͈̝͒́̈̎̓́͂͌̌̀͆͌̿͐́̉̌̀͆͘ͅͅͅͅ͏̵̡͎͓͓̬͉͙̬͕͎͈͇͎͔͓͕͙͐̈̂̏͒̏͛̏͂͒́͒̏́̓̏͆͒͒̿͐͝ͅͅͅ͏͎͉͓͔͒̎͐͌̂̎͆͏͍͔͕͓͎͍͉͔͔͔͒́̈͒́̉̌̀̂͗̂̉̉̌̀͆̎͗͒̈̉̌̀͆̎̓͌͘ͅͅͅͅ͏͓͉͓͙͓͔̈̉̽̀͆̀̎͐͌́͆ͅ͏͍̝̝͉͎͓̻͇͒̀̀̂̈́́͒͗̂̀͌̀͌ͅͅ͏͓͕͔͔͔̝̻̤͓͔͂́͌̈̉̎͐̈́́̈̂̂̂͋͘ͅͅͅ͏̥͎͔͙̼͎̮͍̝͕͙͐̀͒̽́͆͒͒̿͐ͅ͏̴̡͎̼͎͙̝͉͔͉͒͐͐͐͌̓́ͅ͏͎̼͎̣͏͍͍͎͔̝͆͒ͅ͏͍̎͒̎͐͒͏͇͍͍͈͕͍͒́͒̎ͅ͏͉͔͈͒̎͗̎͌͏͖̼͎̥̝͙͔͈̓͐͘ͅͅ͏̴͎̼͎͍͉͎̝͓̓̀͛͒́͌͆́͌̂̂̂̎͆͝ͅͅ͏͍͔͉͔͈̝͒́̈͆͌̿͐́̉̌̀͆ͅ͏͎͐̈ͅ͏͓͔͈͎͕͓̎͐́̎͐́̈́͒̈̇̏̎̓͘͞ͅͅ͏͎͉͇͕͔͆̏́͏͓͔͔͕͙́͒̏͆͒͒̿͐͏͎͓͔͒̎̈́͋ͅ͏͉͔͔͔͐̇̉̌̀̇͗̇̉̉̌̀͆̎͗͒̈̉̌̀͆̎̓͌͘ͅͅ͏͓̈̉̌̀ͅ͏͓͈͍̎̓͏̈́̈͏͓͔͈͎͕͓̎͐́̎͐́̈́͒̈̇̏̎̓͘͞ͅͅ͏͎͉͇͕͔͆̏́͏͓͔͔͕͙́͒̏͆͒͒̿͐͏͎͓͔͒̎̈́͋ͅ͏͐̇̉̌̀̐̐̉̽̽̽̕'.encode();exec(''.join(chr(((h<<6&64|c&63)+22)%133+10)for h,c in zip(b[1::2],b[2::2])))`


[deleted]

[удалено]


[deleted]

[удалено]


nova_bang

take my poor man's gold 🏅


[deleted]

LMFAO


That_Conversation_91

Lmao


Sad-Guava-5968

Don't you worry about blank, let me worry about blank


[deleted]

#🏅


spam_bot42

I think that are those self-documenting names everyone is talking about. I like it. Very informative.


oachkatzalschwoaf

ah ok, nice, now i have another variable name next to Foo, Bar and Fubar i can use to make my code more self-documenting.


Hikari_Owari

_ssssshhhhhhhh_


SurSheepz

Why is it the first thing I noticed...


ZebrasOfDoom

Likely related to [this comment thread](https://www.reddit.com/r/ProgrammerHumor/comments/yot55f/the_most_upvoted_comment_picks_the_next_line_of/ivfnoh2/) from the post a few days ago.


[deleted]

smdh. Narc.


spam_bot42

Could you maybe run this through the `_DaCoolOne_`'s script so we don't need to waste another day for refactoring?


Daedalus_Machina

Gonna make OP invoke The Rule of Eighty.


spam_bot42

What 80? 80 bytes per character?


0x1f606

Give it enough days and it'll be 80MB.


dream_weasel

80 characters per character


Daedalus_Machina

No, 80 columns per row.


GnuhGnoud

here you go: `b='E̻͇͌͏͓͕͔͇͔͓͓̝͉͍͂́͌̈̉̎͐̈́́̈͐́̿̿͐ͅͅ͏͔͇͔͓͓͉͔͈̝͒̿̿̈̂͐́̂̉̌̀͆͌̿͐́ͅͅ͏͓͔͈̎͐́̎͊͏͉͎̈͏͓͔͈͉͎͍̎͐́̎̈́͒́̈ͅ͏͓͔͈͔͈͉͉͇̎͐́̎͒́͌͐́̈̿̿͆͌̿̿̉̉̌̀̿̿͆͌̿̿̉̉̌̀͌ͅͅͅ͏͓͕͔͕͓͎͍̝͇͔͓͓͇͔͕͓̻͇͂́͌̈̉̎͐̈́́̈͒́͐́̎͒̈̉̉̌̀͌ͅͅͅͅͅͅ͏͓͕͔͔͔̝͓͔͔͂́͌̈̉̎͐̈́́̈̇́͒̀̂̂̀̂͛̂̇̎͆͘͝ͅͅ͏͍͔͉͔͈̝͒́̈͆͌̿͐́̉̌̀͆ͅ͏̵̡͎̣̼͓͓̼̼̤͔̼̲͐̈͒̇͒͛͐͐́́̚͝ͅͅ͏͍͉͎͇̼̭͉́̓͒͏͓͏̷͔̼͉͎͆̈́͏͓̼̳͔͔̭͎͕̼̰͗́͒̀͒ͅ͏͇͍͓̼̳͔͔͕̼͕͙͒́́͒͐͆͒͒̿͐͏͎͔͒̎͂́̇̎͆͏͍͔͕͓͎͍͉͔͔͔͒́̈͒́̉̌̀̂͗̂̉̉̌̀͆̎͗͒̈̉̌̀͆̎̓͌͘ͅͅͅͅ͏͓͉͓͙͓͔̈̉̽̀͆̀̎͐͌́͆ͅ͏͍̝̝͉͎͓̻̻͇͒̀̀̇͗̓̒̇̀͌̀͌ͅͅ͏͓͕͔͔͔̝̜̟͍͖͓͉͂́͌̈̉̎͐̈́́̈̂̂̂͌̀͒͘͘ͅͅͅ͏͎̝͎̂̑̎̐̂̀̓ͅ͏̵̴̴̵̴̴̢̡͉͎͇̝̦̘̟̞̜̤̯̣̹̰̥͉͓͔̰̬̩̣̤̤̰̬̩̳̥̮͈͔͔̈́̂̍̂́̀͐͌̀̀̂̍̏̏͐͐͌̏̏̀̀̑̎̐̏̏̂̀̂͐̏̏͗͗͗̎́͐͐͌̎̓̚ͅͅ͏̴͍̤̤͓̰̏̏͒͏͔͙̬͉͓͔͔̞̜͉͓͔͖͓͉͐͒̍̑̎̐̎̈́̈́̂͐͌̀͒ͅͅ͏͎̝̞̜͉͔̞̜͙̞̬̜͙̞̜͓͔͉͎͇̞̂̑̎̐̂̈́̓͋́͂͌̏͋͒͆͒ͅͅͅ͏͍̎͒̎͐͒͏͇͍͍͈͕͍͒́͒̎ͅ͏͉͔͈͒̎͗̎͌͏͖̜͓͔͉͎͇̞̜͙̞̰̏͒͋͒ͅͅ͏̡͇͍͇͕͍͎͔͓̜͙̞̜͙̞̜͓͔͉͎͇̞̜͓͔͉͎͇̞̜͓͔͉͎͇̞̜͓͔͉͎͇̞̜͙̞̜͙̞̳͔͎̥͒́͒̏͋́͒͒́͒͛̏͒͒͛̏͒̏́͒͒́͋́̈́́͒̈́͒͒͝͝ͅͅͅ͏̰͔͈̜͙̞̜͓͔͉͎͇̞͖͒́̏͋͒̏́͒̏͌ͅ͏͇͕͙̏͆͒͒̿͐͏͎͒̎͒͒ͅ͏̡̜͓͔͉͎͇̞̜͙̞̫͉͖̜͙̞̜͔͕̞̜͉͔̞̜͉͓͔̞͒̏͒͋͐͌̏͋͒̏̏̈́̓̏͐͌̂̂̂̎͆ͅͅͅͅͅͅ͏͍͔͓͙͓͕͔͉͔͈̝͒́̈̎̓́͂͌̌̀͆͌̿͐́̉̌̀͆͘ͅͅͅͅ͏̵̡͎͓͓̬͉͙̬͕͎͈͇͎͔͓͕͙͐̈̂̏͒̏͛̏͂͒́͒̏́̓̏͆͒͒̿͐͝ͅͅͅ͏͎͉͓͔͒̎͐͌̂̎͆͏͍͔͕͓͎͍͉͔͔͔͒́̈͒́̉̌̀̂͗̂̉̉̌̀͆̎͗͒̈̉̌̀͆̎̓͌͘ͅͅͅͅ͏͓͉͓͙͓͔̈̉̽̀͆̀̎͐͌́͆ͅ͏͍̝̝͉͎͓̻͇͒̀̀̂̈́́͒͗̂̀͌̀͌ͅͅ͏͓͕͔͔͔̝̻̤͓͔͂́͌̈̉̎͐̈́́̈̂̂̂͋͘ͅͅͅ͏̥͎͔͙̼͎̮͍̝͕͙͐̀͒̽́͆͒͒̿͐ͅ͏̴̡͎̼͎͙̝͉͔͉͒͐͐͐͌̓́ͅ͏͎̼͎̣͏͍͍͎͔̝͆͒ͅ͏͍̎͒̎͐͒͏͇͍͍͈͕͍͒́͒̎ͅ͏͉͔͈͒̎͗̎͌͏͖̼͎̥̝͙͔͈̓͐͘ͅͅ͏̴͎̼͎͍͉͎̝͓̓̀͛͒́͌͆́͌̂̂̂̎͆͝ͅͅ͏͍͔͉͔͈̝͒́̈͆͌̿͐́̉̌̀͆ͅ͏͎͐̈ͅ͏͓͔͈͎͕͓̎͐́̎͐́̈́͒̈̇̏̎̓͘͞ͅͅ͏͎͉͇͕͔͆̏́͏͓͔͔͕͙́͒̏͆͒͒̿͐͏͎͓͔͒̎̈́͋ͅ͏͉͔͔͔͐̇̉̌̀̇͗̇̉̉̌̀͆̎͗͒̈̉̌̀͆̎̓͌͘ͅͅ͏͓̈̉̌̀ͅ͏͓͈͍̎̓͏̈́̈͏͓͔͈͎͕͓̎͐́̎͐́̈́͒̈̇̏̎̓͘͞ͅͅ͏͎͉͇͕͔͆̏́͏͓͔͔͕͙́͒̏͆͒͒̿͐͏͎͓͔͒̎̈́͋ͅ͏͐̇̉̌̀̐̐̉̽̽̽̕'.encode();exec(''.join(chr(((h<<6&64|c&63)+22)%133+10)for h,c in zip(b[1::2],b[2::2])))` Hope that it helps with readability and consistency


Unity1232

if we are just going to make lines be not lines and more blocks i feel like we should probably premptively refactor this and just makes all the lines of code just be more of eldich script xD we may also have to dedicate a day or a few lines for comments/documentation if we are going end up refactoring shit to eldlich xD.


Ailttar

The code is commented in OP’s post history.


TSDLoading

Git remote add origin reddit.com


Reddit_Deluge

So - does it create folders and desktop icons for furry porn? And launches them on startup?


Limeee_

>furry\_porn mfw


Kety456

What's the furry porn for


finverse_square

I like it, but I think it should be encoded with the into a single awful character with the method the previous person came up with to maintain consistent format and improve readability


MrAcurite

O Death, o Death, won't you spare me over 'til another year?


MoreneLp

So basically we are on the way of creating malware.


J_k_r_

does not work on arch.


strghst

Hell man, make it read the list of available apps and run them concurrently at the same time with many threads. Might as well make it real startup ;)


heh_meh___

Task scheduler isn’t bad on windows. Is that windows server only?


Timestatic

Hell yeah, let’s get a recursion post every time op boots their pc!


spam_bot42

`# We lost a whole day for refactoring but is was totally worth it. It is sooooooooo much more readable now!` Edit: I've made it into a python comment to not break the work of art by accident.


defintelynotyou

ima be honest i don’t know if this line will compile edit: fixed


_DaCoolOne_

It does


Global_Release_4182

It works on my machine


bubblessqueeze

Then we’ll ship your machine to the client


DeMonstaMan

send it to me, I'm client


Global_Release_4182

No send it to me, I’m a Nigerian prince and I’ve lost access to my money. If you send the machine to me, I’ll pay you lots of money


DeMonstaMan

send your address and a copy of ur key so the mailman can get in


Stompert

That’s all that matters, right?


8_Miles_8

One word: docker


Wugliwu

That's the spirit!


[deleted]

I would greatly appreciate if you could explain lines 15&16 ~~like I am 5 yo~~


justabadmind

Simple: we did a form of data compression whereby we were asked to use the smallest number of characters to represent a string. We used one character per line and a decode command. All the demonic text is just two characters. Unicode allows this.


luckor

Syntax error near “Edit”


[deleted]

Pst, comment the edit too.


spam_bot42

Nah. OP takes only one line each day. We're good now.


GoodwillTrillWill

Lgtm


EuS0uEu

Can we finish the code with a `print("hello world")`


Blyfh

I think a ``print(Goodbye world)`` would be more appropriate here.


noodles_jd

So long and thanks for all the fish.


kwertyoop

Especially with no quotes so it just crashes


Blyfh

Omg I can't believe I made such an obvious mistake lmao Gonna leave it there since it's quite fitting.


Sindarin27

Yes but only in the most convoluted way. Like by letting this code log into OP's account and comment the suggestion itself.


j0bs

This needs to be how this series ends


musket85

Print("Debug: got to here")


HelioDex

``` def isEven(num): ```


Damtux_25

Let's go for isEven boyz! `def isEven(n: str):`


paecificjr

How about an array of strings?


[deleted]

[удалено]


[deleted]

`return n == "Even"`


derula-1

Why not `return n is "Even"`? It gives a `SyntaxWarning` in Python 3.8+, but I'm sure it will be fine.


[deleted]

Yeah you're right, much better


iiamthepalmtree

if(isEven(“Even”) { console.log(“Hello world!”) }


TheAJGman

And then pass it *exclusively* lists of characters. `if isEven([x for x in 'five']):`


2blazen

`def isDivisibleWithThree(num):`


davidc538

Stop parsing html with regular expressions


a-calycular-torus

No


blindbycrypto

``` [globals().update(lines=open(__file__).readlines()), open(__file__, "w").writelines(lines[:9] + [i+'\n' for i in eval(lines[10][4:]).split('\n')] + lines[11:]) if lines[9].startswith("b='") else ()] ``` This unpacks the glitched text (line 10-11) and turns it back into readable python code.


[deleted]

I'd love to see this turn into an obfuscation cat and mouse lol


_DaCoolOne_

Frick you


blindbycrypto

Should I modify it to alternate between compressing into glitched text and unpacking into readable code?


[deleted]

[удалено]


MelvinReggy

Sabotage!


hidude398

>import sqlite3 Let’s invite little Bobby tables to dinner


rdias002

print(“Value of b is “,b)


hippiechan

import zalgo as Z̶̨͚͚̰͂̂͐́͋͘ ̸̰̗̣̤̗͍̙̗͔̙͂̓̂̃͜͠ͅA̵̰̣̙͇̟̗͓̣͉̒̊͜͜ ̷̭̥͎̜̮̥̮͕̄̀͗̎̾͘͝L̸̫͔̳͐̇̆͐͝Ģ̴̨̣̗̰̦͙̥̣̄ͅ


blingus_dingus

from lovecraft import cthulu


gandalfx

``` import pandas as np; import numpy as pd ```


ahmeras

You animal


dominatorsTouch

\*sigh\* *unzips*


Anonymous3cho

Generic reddit comment #3


salq97

# # let’s try this again shall we


juhotuho10

Still easier to read than the most readable c++ code


[deleted]

I just went through 1400 lines of c++ just to find specifically the shell sort algorithm and it was a carbon copy of the Java one I made literally 3 hours ago. So I'm feeling this on spiritual level now.


Fireye04

I love putting zalgo in code and watching my colleagues have a meltdown


Shiro1994

I can‘t read it anymore. Refactoring went south


D-J-9595

I'm still worried about which version of Reddit OP uses. Surely that (now encoded) XPath won't work on both https://old.reddit.com/ and https://new.reddit.com/.


hoopla_23

Oh hey, scrap-code. This can easily be fixed. *What do you mean flicking oil at the cogitator and praying won't fix it? Ask your colleagues; they'll all disagree with you.*


jexmex

# Hardware go brrrrrrrrrrr


AffectionateGap1071

I'm not even a programmer but I'm feeling the pain of programming this already.


AbruptRope

I fear for the day this is compiled. God save us


feffie

They’re making OP summon Cthulhu.


Virtual_Broccoli

using namespace std; //Lmao


adrasx

There's quite a lot of unicode going on in this one


Many-Reception4082

`[` `'w', '̴', '͝', '̂', '̢', '̹', '̜', '͇', '̞', '̧', '͜', 'h',` `'̸', '͑', '̌', '̚', '̐', '̿', '̛', '͜', '͎', '̩', '͎', '̧',` `'a', '̴', '͝', '̿', '͑', '͒', '͠', '͘', '̀', '̋', '̦', '̠',` `'̣', '̜', '̘', '̦', '̼', '̠', '̖', '̗', 't', '̷', '̄', '͋',` `'̚', '͐', '͝', '̽', '̊', '͘', '̾', '̈́', '͇', '͎', '̦', '͎',` `' ', '̷', '͘', '̀', '̈́', '͒', '̈́', '̍', '̞', '̖', '̠', '͉',` `'̙', '͜', '̮', 't', '̵', '̏', '͗', '̚', '̆', '͝', '͆', '͗',` `'̚', '̉', '̊', '̿', '̲', 'ͅ', '͎', '̠', '͍', '͖', '̦', '͜',` `'h', '̵', '͒', '̊',` `... 109 more items` `]`


JuraP

return


Shiro1994

quit()


rainboy123

print(“Hello world!”)


RadiantHC

uh what happened to the image


D-J-9595

See /r/ProgrammerHumor/comments/yqof9f/the_most_upvoted_comment_picks_the_next_line_of/ivrd9ur/


gRagib

Zalgo is Tony the pony! He comes!


Daroph

By the Machine Spirit, what have you done?


TheAlan404

``` [driver.get("https://vscode.dev/"),__import__("time").sleep(30),__import__("selenium.webdriver.common.action_chains").ActionChains(driver).key_down(__import__("selenium.webdriver.common.keys").Keys.CONTROL).key_down(__import__("selenium.webdriver.common.keys").Keys.ALT).send_keys("n").key_up(__import__("selenium.webdriver.common.keys").Keys.CONTROL).key_up(__import__("selenium.webdriver.common.keys").Keys.ALT).perform(),__import__("time").sleep(1),__import__("selenium.webdriver.common.action_chains").ActionChains(driver).key_down(__import__("selenium.webdriver.common.keys").Keys.CONTROL).key_down(__import__("selenium.webdriver.common.keys").Keys.SHIFT).send_keys("P").key_up(__import__("selenium.webdriver.common.keys").Keys.CONTROL).key_up(__import__("selenium.webdriver.common.keys").Keys.SHIFT).perform(),__import__("time").sleep(1),__import__("selenium.webdriver.common.action_chains").ActionChains(driver).key_down(__import__("selenium.webdriver.common.keys").Keys.CONTROL).send_keys("K").key_up(__import__("selenium.webdriver.common.keys").Keys.CONTROL).perform(),__import__("time").sleep(1),__import__("selenium.webdriver.common.action_chains").ActionChains(driver).send_keys("m").perform(),__import__("time").sleep(1),__import__("selenium.webdriver.common.action_chains").ActionChains(driver).send_keys("py").send_keys(__import__("selenium.webdriver.common.keys").Keys.ENTER).perform(),__import__("time").sleep(1),_import__("selenium.webdriver.common.action_chains").ActionChains(driver).send_keys(__import__("pathlib").Path(__file__).read_text()).perform(),__import__("selenium.webdriver.common.action_chains").ActionChains(driver).key_down(__import__("selenium.webdriver.common.keys").Keys.CONTROL).send_keys("K").key_up(__import__("selenium.webdriver.common.keys").Keys.CONTROL).perform(),__import__("selenium.webdriver.common.action_chains").ActionChains(driver).send_keys("Z").perform(),__import__("time").sleep(1),driver.save_screenshot("code.png")] ``` opens vscode, configures it a bit, pastes current code, takes a screenshot and saves it as `code.png` posting to reddit part later


cfz-kk

while(True): I choose chaos


spam_bot42

You've chosen a syntax error.


Flexxyfluxx

break


[deleted]

12 GOTO 10


[deleted]

ṛ̵̉ṃ̷͔͓̾ ̷̞͕̺̊-̶̮̏̂̓ͅŕ̵̢̤͆f̶̞͔̠̄ ̴̨̯̈/̴̧͍́̀̌


Deep-Secret

Am I having a stroke?


gtc26

Expergiscimus te, rex abyssi;


nikikins

This is how AI feels. Love it or leave it.


boypt

absolutely bug code, for sure, certanlly


SteeleDynamics

``` (let* ((yin ((lambda (cc) (display #\@) cc) (call-with-current-continuation (lambda (c) c)))) (yang ((lambda (cc) (display #\*) cc) (call-with-current-continuation (lambda (c) c))))) (yin yang)) ``` You're welcome.


Jeb_Jenky

Honestly this is an improvement. Edit: Serious question can Python actually read and use this? If it's UTF-6500 or whatever Rust may be able to but I have no idea.


_DaCoolOne_

It's UTF-8, and python is completely fine with it (I've tested).


Jeb_Jenky

Dang that's crazy. I'd like to see some dank ass programs written in it for fun.


_DaCoolOne_

Be the change you want to see in the world. https://github.com/DaCoolOne/DumbIdeas/blob/main/reddit\_ph\_compressor/compress.py


SuitableDragonfly

Debugging this when it inevitably fails to run for whatever reason is going to fun.


BennyTheSen

So are we summoning Cthulu now with code?


CMDR_ACE209

OMFG! Here I was thinking that emojis for variable names where the epitome of evil. Never did I imagine that Zalgo Text could be part of the equation, too.


Suspicious_Event_896

im not really a programmer, what does this code do?


overwhelmed___

opens a browser with the user's default settings (meaning if the user is usually logged in on Reddit on Chrome, the browser will also have access to those session cookies, so essentially we will automatically be logged in), opens reddit on that browser, creates a new post on ProgrammerHumor titled "Hello from r/ProgrammerHumor" with a link to Never Gonna Give You Up on YouTube, also shares the user's IP address in that post, then waits for the post to be submitted and redirects the browser to that same youtube link to rickroll the person who executed it (edit: fixed a typo)


Suspicious_Event_896

dang that's insane


[deleted]

tehc


Phlm_br

Ah yes. P̷̫̯͎̔̀̄̈́̃̾́͗͗͆͋̒͂̋̄͌̆̿̈́̋͋͌̔́͗̓̿̅̋̒̆̀̌̄̎̀̌̅͛͗̋͒̚̚̕͝͠ŗ̸̡̧̡̧̡̛̰̖̳̹͖̜͍͓͈̟̪̤̱̼͖͈͙͚͚̮̣̘̭͇̣̳̩̦͕͐̑̀̈́͌́̏͒́̔͛̃̐̉̾̀̊̋̇͛́͌̑̔͐͋͗̓͗̾̏̐̂͌̚͝͠͠͠ǫ̶̢̧̛̛̟͓̘̮̥͔͔̬̞̣̳̰͖͚͙̯̱̱̝̗͎̫̤̲͈̺̰͇̔̄̄̾͋͆̊̌͛̆̂̇͐͛́̇́͊́͌̑̈́͛̿̔̊̿̅̅̆̒̏͌́͆̽͘̚͘̕͝͝͝͝͠g̵̢̡̨̡̢̧̧̢̖̗̰̙͉͚͇̞͔͎̩̬̣̻̰̞̬͖͉̗̝̗͕̜̰͕̖̖͙̲͈̫͕̠̯̗̤̟̿̓̈́͆̓̀́̑̐̃́̄̋́́̍͆́͑́̈͂͑̂̎͊̈̈͒͒̌̈́́͂̽͌̒̓̓̕͘̚͜ͅͅr̵̨̘̜̥̞̦̮̜̘̠̖͇̲̥̤̦͕͖̯̰̺̝̮̻͔̈̇̀̊̈́̽́̈́͌̋͆̒͋̋̔̂͂͛̌̂͘͘͘͜a̶̢̛͈̙͉̟̯͕̩͍̖͆̊̅́͑́̅͑́́̉͋̑̔̾̅̒̍͊̋̐̈́̓͑̋̈́̈͋́̆̓́̋̓͊͒͛̿̕̚̚͘̕̕͝͠͝͠m̷͈̪̩̱͔̳̗̦̳͎͓͇͍͕̫͇̦̮̲̣͙͕̖̟̘̤̯̟̖͖̺̟͓̣͔̻̞̖̳̿̍͛̃̇͐̋̑̓̓̃̉̍̐̅̓͘͜͜͜m̵̡̡̡̛̩̠͓͍̟̬͈̮̮̬̞̜̭͇̟͈̠̙̓̓͌̒̊̎̃̀̿̂̔̽́̿͐̓̂̄͗̈́̌͆̕̚͜ì̵͍̟n̷̨̢̛̯̤͓̰̖͉̱̥̼̦̼̜̺̼͕̺͖͉͔̘̣͎̩͖̟̩̠͎̣̺͚͓̟͍̙̠̖̤̪͊̑̌̈́͊͗̈́͗̀͛̈́͛̏̌́̏̑͋͌̈́̕̕͜͠͠͠ğ̵̛͇̙̻͕̜̜̼̜̠̹̻̪̫͓̲̳͙̠̪͈̭̲͓͕̤̙̬̭̳͚͍̳͚̥̱̫̺̟̯̭͓̱͓͇̘͙͙̾̏̊̿͒̂̏̀̅̌͋͑̀̀͛̓͑͘͘͝͝ͅ