Last Updated: February 25, 2016
·
363
· prashanthsadasivan

the "it" variable

Have you ever coded something that looks like:

if(isOpen) {

} else if (isOpening){

} else if(isClosed) {

}
...

Read that code out loud. Seriously, do some Rubber duckie debugging. You almost definitely said this:

if(itIsOpen) {

} else if (itIsOpening) {

} else if(itIsClosing) {

}...

name your boolean variables with "it", and your code is now readable!