I recently had to maintain a legacy project, the code was a mess with no coding pattern however one thing caught my attention, in some cases Boolean types were created in three different ways:
const bool = true; //conventional
const bool = 1;
const bool = !0;
I know that not having a coding pattern is a code-smell but I was wondered are there any benefits in using a practice different from the one commonly used? Any performance gain on some compiler or interpreter? I really was instigated with that. Would you like to know if anyone knows about it?