Lua Tables - The Swiss Army Knife of Data Structures (slicker.me)
from monica_b1998@lemmy.world to programming@programming.dev on 12 Feb 15:05
https://lemmy.world/post/43050758

#programming

threaded - newest

puckpuckpuckow@lemmy.world on 12 Feb 15:51 next collapse

Such a strange website. Pretty decent content, but just lying around as HTML/js/css files without a coherent layout to tie them all together? Reminds me of good ol’ internet.

matsdis@piefed.social on 12 Feb 20:18 next collapse

Yes, I like it. It makes only one (big) mistake: a horizontal table-of-contents. Nobody does that. You can put it on the left, or above the text, but… not like that.

somegeek@programming.dev on 12 Feb 20:24 next collapse

Good HTML is coherent by itself. Depends on if the html is good or not.

protogen420@lemmy.blahaj.zone on 12 Feb 22:18 collapse

wdym coherent layout? this thing looks more coherent than any reactwebbloatapp i have seen

it is also very mobile friendly, no lag while scrolling because react is being the bloated garbage it is

lime@feddit.nu on 12 Feb 16:00 collapse

i think the most interesting design detail of lua tables is just glossed over as “nil-holes” in this article. namely, that nil values do not exist. there is no table.delete(key) method, you just zero out the value and the key stops existing. the same thing is true for any variable, if you set it to nil it ceases to be. i find that implementation fascinating.