Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Wishful Thinking - Code Review With Myself

npapagna
October 24, 2014

Wishful Thinking - Code Review With Myself

Workshop presented at Ruby Fun Day 2014

npapagna

October 24, 2014
Tweet

More Decks by npapagna

Other Decks in Programming

Transcript

  1. Whenever we’re looking out into the world, we’re always seeing

    ourselves, we’re not really seeing what’s out there. We have to learn very carefully how to see what’s out there.
  2. MESSAGES The essence of something from the real world is

    determined by the the object respond to
  3. Say what? Code s/b expressive enough. Only Hacks / WTFs

    / Black Magic Let’s talk about oop All the way. Getters & Setters Included. You name it! Non trivial stuff. Comments first, then code. How much should we comment?
  4. The motivation that drives the creation of a subclass should

    be Let’s talk about oop ESSENTIAL to the parent’s class domain
  5. What is an abstract class? How do they relate? What

    is a concrete class? Let’s talk about oop
  6. If we add an instance variable to an abstract class:

    Does it make it concrete? Let’s talk about oop
  7. let's talk about tdd TDD leads to good designs. True

    or false? False. TDD leads to testable designs.
  8. let's talk about tdd It is OK to write all

    test before coding. True or false? False. Why?
  9. let's talk about tdd Is TDD the same as Unit

    Testing? By the way, what is a "unit"?
  10. let's talk about design patterns (Burger + Cheese + Bread)

    Decorators can be used to represent better the real world True or false? Not always. They model cross-cutting concerns.
  11. summary Be critic about things you take for granted (OOP).

    Constantly remind yourself that the culture we live in shapes the way we think (TDD). Code using a programming language. Don’t let it “code” you (Design Patterns).
  12. references Alan Kay - Normal Considered Harmful https://www.youtube.com/watch?v=FvmTSpJU-Xc Alan Kay

    – The Early History of Smalltalk https://github.com/worrydream/EarlyHistoryOfSmalltalk Fred Brooks - No Silver Bullet http://faculty.salisbury.edu/~xswang/Research/Papers/SERelated/no-silver-bullet.pdf Wishful Thinking http://en.wikipedia.org/wiki/Wishful_thinking Betty Edwards – Drawing On The Right Side Of The Brain http://www.amazon.com/Drawing-Right-Side-Brain-Definitive/dp/1585429201 Kent Beck - TDD By Example http://www.amazon.com/Test-Driven-Development-By-Example/dp/0321146530 Alan Kay – The Computer Revolution Hasn’t Happened Yet https://www.youtube.com/watch?v=oKg1hTOQXoY