7
host
8y

Don't use keywords as variable names, you're going to have a bad time.

Comments
  • 0
    IDEs don't let you, and compilers will fail... way easier to solve than runtime errors.
  • 1
    Rule #1 for writing good code says do not use keywords as variable names. Pretty sure all devs follow it.
  • 0
    It can happen when you're learning a new language (python for me)
  • 1
    i use a simple technique

    eg group and filter are keywords
    i use past tenses for this words
    like FILTERED GROUPED so there s no match with keywords and names are more readable
  • 1
    If it JS use strict will protect you
Add Comment