• 0 Posts
  • 20 Comments
Joined 1 year 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.












  • gens@programming.devtoPrivacy@lemmy.ml*Permanently Deleted*
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    11 months ago

    Depends on the definition of respect. It ranges from “not being an asshole to them” to putting them on a pedestal.

    Being a teacher (or just being older) does not automatically mean you should be respected. All of my teachers in schools were worthy of respect, except two. One of them was a spiteful hag.