-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Fake it Till you make it | ||
## Separate | ||
Allow a piece of something to be acted on by itself | ||
|
||
`"18585555555"` vs `"1"+"8585555555"` | ||
|
||
## Encapsulate | ||
Take a piece and give it a name and ablity to reuse via variable or method extraction. | ||
|
||
`“1” + “858555555”` vs `areaCode + “858555555”` | ||
|
||
## Calculate | ||
This is simular to seperate, but does so exposing a calutation undernth. It can also be a conversion (string to int, etc...) | ||
`age = 21` vs `age = 2020 - 1999` vs `age = Date.today.year - 1999` | ||
|
||
## Automate | ||
Put something repetative into a loop. | ||
|
||
`numbers = [5,6,7,8,9,10]` vs `numbers = [5..10]` | ||
|
||
## Clean | ||
Any step refactoring step that makes the code look nicer | ||
|