this post was submitted on 08 Jul 2023
264 points (100.0% liked)

Programmer Humor

853 readers
1 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 13 comments
sorted by: hot top controversial new old
[–] himawari@lemmy.4d2.org 9 points 1 year ago (1 children)
[–] hglman@lemmy.ml 0 points 1 year ago

Then the machines could pass the test.

[–] NoisyFlake@lemm.ee 9 points 1 year ago (1 children)

wtf, is this just obscured javascript?

[–] nailbar@sopuli.xyz 15 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 7 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 8 points 1 year ago (1 children)

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

Finally, the ultimate weapon

A tool to parse horrible code

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

This is a nightmare material

[–] sgtnasty@lemmy.ml 1 points 1 year ago

A nightmare of mine, prob all JS code too

[–] jeff@programming.dev 1 points 1 year ago
[–] michaeljo94@discuss.tchncs.de 0 points 1 year ago

Litterally me, before ChatGPT was a thing

load more comments
view more: next ›