Topics:
- Refactoring the Rest Api (“red, green, refactor”)
- Method extraction and functional decomposition
- Exploration of UnderscoreJS

Play by Play:
Amir…
0:00 - talks about what will be covered in this episode and addresses some questions (about websockets/socket.io) he received via email
3:45 - gets started and discusses the current state of the app and refactors the rspec test (better naming)
6:30 - starts refactoring the NodeJS implementation code for tictactoe
7:30 - extracts the concept of initializing a tic tac toe board (uses some VIM fu to do it)
10:57 - explains why he extracted out the concept of creating a board
11:23 - creates another method for generating links for the Rest Api
13:45 - uses UnderscoreJS to do some additional cleanup
17:22 - does another review of some of the smells he sees in the code and does an additional refactor based on some subtle repetition he sees
19:30 - explains the down sides of having a test at the “wrong surface area”
20:15 - starts the next refactor (explained in the previous few minutes)
23:20 - explains how you can use git branching to help you with refactoring
24:40 - wraps up the refactor using another UnderscoreJS method: (_.map)
27:30 - summarizes what was covered in the screencast (both the UnderscoreJS apis that were used and the VIM refactoring techniques that were used) and discusses some smells that still exist in the codebase

# vimeo.com/86073155 Uploaded 35 Plays / / 0 Comments Watch in Couch Mode

Coding Out Loud

Amir Rajan Plus

A series of screencasts about development.

Browse This Channel

Shout Box

Channels are a simple, beautiful way to showcase and watch videos. Browse more Channels. Channels