This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
haas:fall2020:common:helpances:protips [2020/08/17 13:09] – created wedge | haas:fall2020:common:helpances:protips [2020/08/17 13:20] (current) – [PROTIP: always use descriptive variable names] wedge | ||
---|---|---|---|
Line 27: | Line 27: | ||
</ | </ | ||
+ | =====PROTIP: | ||
+ | Oversight is one of the biggest sources of error in programming. | ||
+ | |||
+ | Naming your variables " | ||
+ | |||
+ | Instead, go for contextually relevant things that pertain to the problem you are solving: | ||
+ | |||
+ | * instead of ' | ||
+ | * instead of ' | ||
+ | |||
+ | If **I** had a nickel for everytime a student asked //me// to explain **THEIR** code, I would be rich. | ||
+ | |||
+ | =====PROTIP: | ||
+ | Much like handwriting out your notes, it doesn' | ||
+ | |||
+ | Plus, you will start to problem solve better, simply from the added exposure (when it is fresh in your mind, and not some discouraging "bah! Have to go back and comment so I do not lose points" |