Created
July 16, 2019 14:39
-
-
Save iandesj/7320e393ada13e5ba815cbc46404d0be to your computer and use it in GitHub Desktop.
Variable & Function Naming
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
// before good naming | |
const user = getActiveUser(); | |
const peopleData = fetchData(); | |
function beginProc(data) {} | |
const d = new Date(); | |
class CatRepository { | |
function fetchCatData() | |
} | |
// after good naming | |
const activeUser = getActiveUser(); | |
const peopleWithCats = fetchCatOwners(); | |
function initializeRocketLaunch(rocketConfiguration) {} | |
const today = new Date(); | |
class CatRepository { | |
function fetchData() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment