Skip to content
DevMeme
2901 of 7590
Languages Post #3206 · source on Telegram

Lua Programmer Fears Zero

Description

A six-panel SpongeBob scene shows Patrick, Squidward, and SpongeBob with large white meme text over each frame. The text reads: "I'm a LUA programmer," "What does LUA programmer mean?" "It means he's scared of zero." "No it doesn't!" "Zero!" and finally "Stop it, Patrick, you're scaring him!" The technical joke is about Lua's conventional one-based array indexing, which makes zero feel unnatural compared with languages where arrays start at index 0. It turns an indexing convention into a literal fear response.

Comments

37
Anonymous ★ Top Pick Lua does not have off-by-one bugs; it has everyone else being off by one.
  1. Anonymous ★ Top Pick

    Lua does not have off-by-one bugs; it has everyone else being off by one.

  2. Deleted Account 5y

    LUA

  3. @Demiid2 5y

    Zero!

    1. @sylfn 5y

      that is 1 (0! = 1)

      1. @faultynepp 5y

        if there was no context i would be extremely confused by the 0!=1 hehe

        1. @Dobreposhka 5y

          is 0 == 1 ?

          1. @faultynepp 5y

            mathematically, i’m starting to question my existence.

          2. @pavloalpha 5y

            Lol, do u know what is the factorial of the number?

          3. @p4vook 5y

            0 does not exist in Peano arithmetic

            1. @p4vook 5y

              Or does it? *heavy VSauce music*

            2. Deleted Account 5y

              In what

  4. @Agent1378 5y

    They should have named it Luna

    1. Deleted Account 5y

      You forgot about Lupa

      1. @Agent1378 5y

        😄

      2. @lvanPetr0v 5y

        You mixed up, it should be Pupa

        1. @Dobreposhka 5y

          Pupa had his income instead of Lupa )))) XD))0)

        2. @BaalPeor 5y

          Yes, Pupa is going before Lupa

          1. @sylfn 5y

            He(she?) should go after Lupa, so he goes za Lupoy (after Lupa)

      3. @arpanetus 5y

        dua zalupa

        1. Deleted Account 5y

          no, python + lua

    2. @sylfn 5y

      they should havenamed it ルナ (runa)

    3. @gDanix 5y

      HAHAHA I have GREAT news for you

      1. @Agent1378 5y

        I come here from page explaining that Lua is moon in Portuguese, so I already know🙂

    4. @gizlu 5y

      Nula

  5. @NoCountryForOldBuffet 5y

    I’ve never messed with Lua before, what’s the joke here?

    1. @codycode 5y

      in Lua arrays start at 1 not 0

      1. @NoCountryForOldBuffet 5y

        Lunacy

        1. Deleted Account 5y

          Luacry

      2. @Agent1378 5y

        In good languages arrays starp with varname.first, end with varname.last and you iterate with nxt_idx:=varname(idx).next

        1. @gDanix 5y

          Excuse me!!, in good languages you don't iterate anything, you map the elements inside

          1. @Agent1378 5y

            Quite often this is very inefficient

  6. @kirich_yo 5y

    LUA

  7. @NoCountryForOldBuffet 5y

    Luacy

  8. @faultynepp 5y

    i am really confused at this stage.

  9. Spongey 5y

    scared of switches too

  10. @pavloalpha 5y

    Lua doesn't mean "LUA"?)

  11. @lol123a10 5y

    Lua is full name. LUA aka L.U.A., abbreviation.

Use J and K for navigation