#Day 1
Matz Keynote
Static Type vs. Dynamic Type.
- Static Typing is against DRY.
- Soft typing:
- Type is represented by set of methods e.g name and # of arguments
- Class (as set of methods)
#Day 1
Matz Keynote
Static Type vs. Dynamic Type.
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Blue Component</key> | |
| <real>0.19370138645172119</real> | |
| <key>Green Component</key> | |
| <real>0.15575926005840302</real> |
| UNMARKED = ' ' | |
| def board_to_s board | |
| board.each_slice(3).map { |a, b, c| " #{a} | #{b} | #{c} " }.join("\n---|---|---\n") | |
| end | |
| def display board, after_board = nil | |
| puts board_to_s board | |
| puts after_board if after_board | |
| end |