this post was submitted on 08 Jul 2023
417 points (97.5% liked)

Programmer Humor

32371 readers
302 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 14 comments
sorted by: hot top controversial new old
[–] NoisyFlake@lemm.ee 16 points 1 year ago (1 children)

wtf, is this just obscured javascript?

[–] nailbar@sopuli.xyz 22 points 1 year ago* (last edited 1 year ago) (2 children)

It looks like it's decompiled from something, so all the variable names are missing and instead presented with whatever index they had in the binary.

But that's just a wild guess. I don't know what actual decompiled code looks like.

Edit: scratch that, it's just obfuscated code to make it harder to copy.

https://stackoverflow.com/questions/11932567/found-this-nasty-code-i-wonder-what-it-does-should-i-be-worried#11932708

[–] SurpriseWaterfall@sopuli.xyz 10 points 1 year ago (1 children)

I thought it was decompiled code at first to, but the function names are still real words. It's almost like it was manually obfuscated by replacing all the variable names.

[–] hemmes@vlemmy.net 1 points 1 year ago

I don’t think you’re far off because obfuscated code usually has less structured variable references.

[–] bAZtARd@feddit.de 14 points 1 year ago (1 children)

An LLM could probably solve this much quicker than a human.

[–] SkyeStarfall@lemmy.blahaj.zone 8 points 1 year ago (1 children)

Finally, the ultimate weapon

A tool to parse horrible code

[–] himawari@lemmy.4d2.org 12 points 1 year ago (1 children)
[–] hglman@lemmy.ml 4 points 1 year ago

Then the machines could pass the test.

[–] michaeljo94@discuss.tchncs.de 4 points 1 year ago

Litterally me, before ChatGPT was a thing

[–] speaker_hat@lemmy.one 2 points 1 year ago

This is a nightmare material

[–] jeff@programming.dev 2 points 1 year ago
[–] sgtnasty@lemmy.ml 1 points 1 year ago

A nightmare of mine, prob all JS code too

load more comments
view more: next ›