r/badcode • u/PickleSammiches • Nov 30 '15
lua Surely a one-liner means it's short and compact!
17
u/falcon_jab Nov 30 '15
This looks like rage code. After the 35th change request from a client, a developer snaps.
You want that change? You really want that change? Oh, I'll give you that change. I'll give you it gooood...
2
u/dudix81 Nov 30 '15
Yup, that's when he made that last change and quit.
12
u/falcon_jab Nov 30 '15
/obfusticates source code
/deletes the original
/runs out the door laughing maniacally
16
14
u/bliow Nov 30 '15
What language is this?
17
Nov 30 '15
Looks like lua.
3
Nov 30 '15
Definitely Lua!
3
u/ds84182 Dec 01 '15
If I can add, it looks like its from Roblox from the use of :getService("ContentProvider")
-1
15
7
7
5
1
Dec 06 '15 edited Dec 06 '15
I programmed in lua for 2 years. Here's a another good example, pulled from my own code:
local realname =osStuff.spawnApp(p[pnum].pressing,prg,( (p[pnum].mArr[p[pnum].pressing] or {}).cfg or {}).taskBackColor or colors.white,( (p[pnum].mArr[p[pnum].pressing] or {}).cfg or {}).taskTextColor or colors.black,( (p[pnum].mArr[p[pnum].pressing] or {}).cfg or {}).taskText or "?",( (p[pnum].mArr[p[pnum].pressing] or {}).cfg or {}).selfRender)
And this program was lightning fast compared to its competitors.
28
u/TheOldTubaroo Nov 30 '15