Generating Dirty Code in Python

preview_player
Показать описание
References:
Рекомендации по теме
Комментарии
Автор

Correct regarding ord function.
Stack overflow user 'NPE':
It stands for "ordinal". The earliest use of ord that I remember was in Pascal. There, ord() returned the ordinal value of its argument. For characters this was defined as the ASCII code. The same convention was also used in Modula-2. Later, Python (as well as PHP, some dialects of SQL etc) followed this convention, except that these days they're more likely to use Unicode rather than ASCII. It could well be that the origins of the term (and the function name) go back further than Pascal.

Peewma
Автор

your memory is not bad! your mind is busy with so many different stuff! ;)

ehsan_omid
Автор

now all the comments are gonna judge you for not knowing what ord means!

ProBarokis
Автор

So it's basically just xor encoding the string with a random subset of the seed's first few random numbers. Neat trick.

Bobbias
Автор

Instead of using second rng you could've just post processed your array, replacing eros with random, which won't affect result because sequence is already finished at that point

MrVladoCC
Автор

directly from holyC to dirty python. now you need to program on the forbidden fruit ;-P

Clutter.monkey
Автор

Since you mention several times that you are not a developer (in this video and in others) can I ask what type of work you are doing? You seem to have a good understanding of many programming concepts so that's impressive imo

peterheijstek
Автор

Interestingly the numbers for the seed are the first few digits of Pi when you give it a closer look.

n.w.
Автор

It took me a long time to realize the ^ symbol is xor and not power (I mixed RSA in my mind)...

HuntingKingYT
Автор

It’s weird and at the same time not that YouTube recommended me this video…dirty video

nikeedev
Автор

it took me a good few minuites to realize what the thumbnail was 😂

nimcompoo
Автор

the amazing this is Pi relation to the output XD

minato_i
Автор

Is there a way to send queries in Haskell to you?. Sincerely, Arvind

arvind
Автор

That was pretty cool and easy to understand.

greob
Автор

0:44 Of course, i realize this is a joke and my comment here is somewhat pointless, but that only applies to binaries you download and can't see. For pieces of source code like this that aren't obfuscated, you can see there are no sus imports, no bad things it does to the system, and maybe to be extra safe you could run it through a unicode inspector to make sure it doesn't have any non-rendering characters that'll ruin your day. Then, without understanding what it does, you can understand that the worst thing that could possibly happen is that it doesn't halt, but clearly it does because the only loop is finite

sodiboo
Автор

Great video please show how use emacs like you!!

luismex
Автор

Элегантней, не создавать 2й random: save(seed); restore seed;

СергейФёдоров-щш
Автор

god man why didn't you put a headphone warning at the first one

markopolo
Автор

Since random is pseudo... can you create a new version of random that can compress data in a lossless way... then to decompress have the seed read backwards?

ThankYouESM
Автор

Can I join your Discord server? >.<

koldovalnya