Skip to content

Commit

Permalink
Smaller: Remind them to use refactorings catalog
Browse files Browse the repository at this point in the history
Also add some links to list of code smells and corresponding
refactorings.
  • Loading branch information
booch committed Apr 21, 2017
1 parent 59ee45e commit 3371c3a
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 8 deletions.
2 changes: 0 additions & 2 deletions Smaller/TODO.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
TODO
====

* Remind them to use https://refactoring.com/catalog/

* Pictures of MVP thin vertical slices
* Picture of Feasible, Valuable, Usable, Delightful
* Pull in Joe's slides 78-79
Expand Down
20 changes: 17 additions & 3 deletions Smaller/slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@
max-height: 400px;
border: 1px solid black;
}
.remark-slide .remark-slide-content.workshop > p {
margin-top: 180px;
.remark-slide .remark-slide-content.workshop > p:first-of-type {
margin-top: 100px;
margin-bottom: 100px;
text-align: center;
}
.remark-slide .remark-slide-content .highlight {
Expand Down Expand Up @@ -612,6 +613,9 @@

-----

* Good lists of smells and the corresponding refactorings:
* https://sourcemaking.com/refactoring/smells
* http://www.industriallogic.com/wp-content/uploads/2005/09/smellstorefactorings.pdf
* There are also "design smells" for problems with higher-level designs
* These usually require restructuring that is NOT refactoring
* Coined by Kent Beck in 1999
Expand Down Expand Up @@ -739,8 +743,9 @@

# When Am I Done Refactoring?

* When code is as clear as possible
* You're likely **not** overdoing it
* When code is as clear as possible
* When there are no more smells
* When every method is 1 line long
* Preferably with no `if`s
* When you meet the Sandi Metz metrics
Expand Down Expand Up @@ -925,6 +930,15 @@

https://github.com/boochtek/aatc2017

Don't forget to use these resources:
* https://refactoring.com/catalog/
* https://sourcemaking.com/refactoring/smells

???

* Pair (or triple) up and work the exercises at this URL
* I'll walk around to help answer questions

---
class: thanks

Expand Down
5 changes: 3 additions & 2 deletions Smaller/slides.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@
max-height: 400px;
border: 1px solid black;
}
.remark-slide .remark-slide-content.workshop > p {
margin-top: 180px;
.remark-slide .remark-slide-content.workshop > p:first-of-type {
margin-top: 100px;
margin-bottom: 100px;
text-align: center;
}
.remark-slide .remark-slide-content .highlight {
Expand Down
15 changes: 14 additions & 1 deletion Smaller/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ Catalog of refactorings: https://refactoring.com/catalog/

-----

* Good lists of smells and the corresponding refactorings:
* https://sourcemaking.com/refactoring/smells
* http://www.industriallogic.com/wp-content/uploads/2005/09/smellstorefactorings.pdf
* There are also "design smells" for problems with higher-level designs
* These usually require restructuring that is NOT refactoring
* Coined by Kent Beck in 1999
Expand Down Expand Up @@ -564,8 +567,9 @@ Catalog of refactorings: https://refactoring.com/catalog/
# When Am I Done Refactoring?
* When code is as clear as possible
* You're likely **not** overdoing it
* When code is as clear as possible
* When there are no more smells
* When every method is 1 line long
* Preferably with no `if`s
* When you meet the Sandi Metz metrics
Expand Down Expand Up @@ -750,6 +754,15 @@ class: workshop

https://github.com/boochtek/aatc2017

Don't forget to use these resources:
* https://refactoring.com/catalog/
* https://sourcemaking.com/refactoring/smells

???

* Pair (or triple) up and work the exercises at this URL
* I'll walk around to help answer questions

---
class: thanks

Expand Down

0 comments on commit 3371c3a

Please sign in to comment.