Skip to content
Browse files

Moar slides

  • Loading branch information...
1 parent 499523f commit 29be55d7d15f476bc425fdd7ed560fe6eeb3be84 @jnicklas jnicklas committed Sep 28, 2011
View
2 01_intro/01_opening.md
@@ -47,5 +47,7 @@
!SLIDE purple
# Practice
+## Prototyping
## Refactoring
+## Antipatterns
## Consistency and Style
View
24 02_theory/03_pleasurable.md
@@ -109,4 +109,28 @@
!SLIDE
+# Bad: RedCarpet
+
+!SLIDE
+
# Bad:
+
+!SLIDE
+
+# Good: RubyKoans
+
+!SLIDE
+
+# Good: RSpec
+
+!SLIDE
+
+# Know your audience
+
+!SLIDE
+
+# Adopt an aesthetic
+
+!SLIDE
+
+# Consider cultural differences
View
27 03_practice/01_prototyping.md
@@ -0,0 +1,27 @@
+!SLIDE purple
+
+# Practice
+
+!SLIDE purple
+
+# Prototyping
+
+!SLIDE
+
+# Readme driven development
+
+!SLIDE
+
+# Write examples first
+
+!SLIDE
+
+# Top down design
+
+!SLIDE
+
+# Kill your darlings
+
+!SLIDE
+
+# Iterate
View
32 03_practice/02_refactorng.md
@@ -0,0 +1,32 @@
+!SLIDE purple
+
+# Refactoring
+
+!SLIDE
+
+# TDD
+
+!SLIDE
+
+# Red – Green – Refactor
+
+!SLIDE
+
+# Don't change functionality
+
+!SLIDE
+
+# Don't change the interface
+
+!SLIDE
+
+# Don't change tests (a lot)
+
+!SLIDE
+
+# Mocks
+# _ಧ
+
+!SLIDE
+
+# Add new tests if you need to
View
64 03_practice/03_antipatterns.md
@@ -0,0 +1,64 @@
+!SLIDE purple
+
+# Antipatterns
+
+!SLIDE purple
+
+# Feature envy
+
+!SLIDE
+
+# Shit's not in the right place
+
+!SLIDE
+
+ @@@ ruby
+ class Invoice
+ def pay(payment_details={})
+ self.credit_card_number = payment_details[:credit_card_number]
+ self.credit_card_date = payment_details[:credit_card_date]
+ self.credit_card_verification = payment_details[:credit_card_verification]
+ if credit_card_valid?
+ unless order.total > order.user.balance
+ self.paid = true
+ save
+ end
+ end
+ end
+ def credit_card_valid?; ...; end
+ end
+
+!SLIDE
+
+ @@@ ruby
+ class Invoice
+ def pay(payment_details={})
+ self.credit_card = CreditCard.new(payment_details)
+ if credit_card.valid? and order.balance_available?
+ self.paid = true
+ save
+ end
+ end
+ end
+
+!SLIDE
+
+ @@@ ruby
+ class Invoice
+ def pay(payment_details={})
+ build_credit_card(payment_details)
+ if credit_card.valid? and order.balance_available?
+ update_attributes(:paid => true)
+ end
+ end
+ end
+
+!SLIDE
+
+# Does everything
+# have the right name?
+
+!SLIDE
+
+# Is everything
+# in the right place?
View
43 03_practice/04_consistency_and_style.md
@@ -0,0 +1,43 @@
+!SLIDE purple
+
+# Consistency and Style
+
+!SLIDE
+
+ @@@ruby
+ link_to(text, destination)
+
+!SLIDE
+
+ @@@ruby
+ mail_to(text, destination)
+
+!SLIDE
+
+# Nope!
+
+!SLIDE
+
+ @@@ruby
+ mail_to(destination, text)
+
+!SLIDE
+
+# Not important
+# which style you pick
+
+!SLIDE
+
+# Pick one
+
+!SLIDE
+
+# Add flavour
+
+!SLIDE
+
+# Personality
+
+!SLIDE
+
+# Make your code human
View
17 04_closing/01_closing.md
@@ -0,0 +1,17 @@
+!SLIDE purple
+
+# Programming is fun
+
+!SLIDE purple
+
+# Make your code
+# a pleasure
+# to read, use and modify
+
+!SLIDE splash
+
+# Thank you!
+# Questions?
+
+### Jonas Nicklas – @jonicklas
+### <http://github.com/elabs/code_design_presentation>
View
5 master.css
@@ -96,8 +96,8 @@ body {
}
.slide pre, .slide pre.sh_sourceCode {
- font-size: 32px;
- line-height: 150%;
+ font-size: 22px;
+ line-height: 24px;
margin: 20px;
padding: 20px 20px;
font-family: 'Monaco';
@@ -106,6 +106,7 @@ body {
}
.slide code, .slide pre.sh_sourceCode .sh_string {
font-family: 'Monaco' !important;
+ font-size: 18px;
}
.slide.code.small pre {
View
6 showoff.json
@@ -6,6 +6,12 @@
},
{
"section":"02_theory"
+ },
+ {
+ "section":"03_practice"
+ },
+ {
+ "section":"04_closing"
}
]
}

0 comments on commit 29be55d

Please sign in to comment.
Something went wrong with that request. Please try again.