Created
September 29, 2015 14:47
-
-
Save 3rn3st0/7349a7712bb443a05e12 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
EL BUENO | |
{ | |
"lista": [], | |
"mapa": {} | |
} | |
EL MALO | |
{ | |
"lista": null, | |
"mapa": null | |
} | |
EL FEO | |
{ | |
"lista": "vacía", | |
"map": "llaves" | |
} | |
Simplifica tu código usando esta patrón. #PatronParaUnObjetoNull #JSON | |
Visto y traducido desde ---> https://twitter.com/robpenner/status/647800109514665984 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment