Created
April 5, 2020 22:50
-
-
Save coliveravenegas/bd6639fe61ded9d6aed3155f6987bf8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* BAD - "open" podría ser una variable de estado o function, no lo | |
sabemos */ | |
const open = true; | |
const write = true; | |
const fruit = true; | |
/*GOOD - Ahora te preguntas, "esta abierto?", SI o NO?. Es inferible | |
y evidente que es una variable booleana | |
*/ | |
const isOpen = true; | |
const canWrite = true; | |
const hasFruit = true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment