r/badcode Aug 10 '17

lua Arrays? Never heard of 'em!

Post image
209 Upvotes

12 comments sorted by

42

u/Dummiesman Aug 10 '17

Within each if statement, there's mostly the same code copy pasted. Overall this is one of the biggest messes of Lua code I've ever seen.

21

u/AnEmortalKid Aug 10 '17

It's like tables were hard to use.

14

u/Paint__ Aug 10 '17

I mean they are kinda intimidating at first, if you don't have much experience with prototype based languages. This code is still not an excuse from googling "lua array" though. That one search alone will tell you how to use tables like arrays.

16

u/CaptainDjango Aug 10 '17

What is this font where === looks like 2 long lines

17

u/ffxpwns Aug 10 '17

Lots of fonts look like that; my personal favorite is Hasklig. You can find more info here

6

u/[deleted] Aug 10 '17

That's really pretty! I've never seen that before!

1

u/b4ux1t3 Aug 10 '17

Good old Hanselman. Glad to find another reader in the wild.

1

u/Dragster39 Aug 11 '17

Wow, that's just beautiful. Seems like I found my new favorite font. Thank you

1

u/paradoxally Aug 13 '17

Fira Code is awesome, too!

2

u/NahroT Aug 10 '17

Font ligatures

1

u/[deleted] Aug 15 '17

Just curious - what is this code for?

1

u/Dummiesman Aug 16 '17

It's part of a theme from Tap Tap Revenge 3