Last active
August 12, 2019 13:05
-
-
Save yogacp/0b3249cac929b73ea0a6954c5ade2368 to your computer and use it in GitHub Desktop.
Sample of meaningful names
This file contains hidden or 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
/** | |
* Sample of Meaningful Names | |
*/ | |
fun saveData(data: User) { | |
//... | |
} | |
fun deleteData(id: Int) { | |
//... | |
} | |
/** | |
* Sample of using the Problem Domain | |
*/ | |
fun isUserLoggedIn(): Boolean { | |
return (userPassword.isNotEmpty()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment