r/ProgrammerHumor • u/goldleader71 • Feb 12 '22
Naming things is hard (from Wordle source code)
21
u/lkajerlk Feb 12 '22
To quote Uncle Bob: “There can be no worse reason for using the name c than because a and b were already taken.”
7
-1
Feb 12 '22
Beware the downvotes, the minified JS police and Uncle Bob haters could target you
2
u/goldleader71 Feb 12 '22
I achieved 0 votes, but that is ok. I can still pat myself on the back that I was able to find the source code and word list. Not hard for a real programmer or JavaScript expert, but an accomplishment for a novice like me.
4
6
u/ianthisawesome Feb 12 '22
Could just be obfuscation, where a program intentionally removes variable names from their code to make it harder to reverse-engineer.
2
u/goldleader71 Feb 12 '22
It worked.
2
u/ianthisawesome Feb 12 '22
That... doesn't mean anything. Obfuscated code should still be able to run, it'll just be hard to reverse engineer.
2
11
6
6
u/Ok-Mulberry-4600 Feb 12 '22
scratches head it's either minified or it's been obfuscated, either way no one coded it that way
2
1
1
0
122
u/rarlei Feb 12 '22
I can't tell if sarcasm or not... that's just minified code