• 1 Post
  • 63 Comments
Joined 11 months ago
cake
Cake day: August 4th, 2023

help-circle
  • Lets say you use a variable named abcd in your function. And a variable named abcb in a for loop inside the same function. But because reasons you mistakenly use abcd inside that loop and modify the wrong variable, so that your code sometimes doesnt work properly.

    It’s to prevent mistakes like that.

    A similar thing is to use const when the variable is not modified.



















  • I live in a city that has one of the cleanest water in the world. And I remember people leaving water out for a while before watering plants. I also remember ppl just watering immediately, and the plants seemed fine.

    Didn’t find anything conclusive as to why it matters in the 5 min of googling, other then clorine that seems to not be used much anymore. Hmm, a mistery.