Skip to content

Instantly share code, notes, and snippets.

@iandesj
Created July 16, 2019 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iandesj/7320e393ada13e5ba815cbc46404d0be to your computer and use it in GitHub Desktop.
Save iandesj/7320e393ada13e5ba815cbc46404d0be to your computer and use it in GitHub Desktop.
Variable & Function Naming
// 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