var Turtle1 var Turtle2 var Is_Turtle

  • Codex@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    All these jokes about naming variables and yet no serious suggestions that if you have a turtle2, what you really need is a turtle array. I like to block out all the memory I’ll need for the whole program up front, put it all in one big array, and then I can use clean, easy to remember numbers for all my variables!