Skip to content

Commit

Permalink
d markdown instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
isidore committed Jan 12, 2021
1 parent c8d1972 commit 13ac3bc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Fake it Till you make it.md
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

0 comments on commit 13ac3bc

Please sign in to comment.