- Source: http://www.rubyinside.com/dhh-offended-by-rspec-debate-4610.html
- DHH: David Heinemeierhansson [http://david.heinemeierhansson.com]
- Test::Unit: http://www.ruby-doc.org/stdlib-2.0.0/libdoc/test/unit/rdoc/Test/Unit.html
- RSpec: https://github.com/rspec/rspec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ,o888888o. 8 8888 88 8 8888 8888888888',8888' | |
| # . 8888 `88. 8 8888 88 8 8888 ,8',8888' | |
| # ,8 8888 `8b 8 8888 88 8 8888 ,8',8888' | |
| # 88 8888 `8b 8 8888 88 8 8888 ,8',8888' | |
| # 88 8888 88 8 8888 88 8 8888 ,8',8888' | |
| # 88 8888 `8. 88 8 8888 88 8 8888 ,8',8888' | |
| # 88 8888 `8,8P 8 8888 88 8 8888 ,8',8888' | |
| # `8 8888 ;8P ` 8888 ,8P 8 8888 ,8',8888' | |
| # ` 8888 ,88'8. 8888 ,d8P 8 8888 ,8',8888' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ,o888888o. 8 8888 88 8 8888 8888888888',8888' | |
| # . 8888 `88. 8 8888 88 8 8888 ,8',8888' | |
| # ,8 8888 `8b 8 8888 88 8 8888 ,8',8888' | |
| # 88 8888 `8b 8 8888 88 8 8888 ,8',8888' | |
| # 88 8888 88 8 8888 88 8 8888 ,8',8888' | |
| # 88 8888 `8. 88 8 8888 88 8 8888 ,8',8888' | |
| # 88 8888 `8,8P 8 8888 88 8 8888 ,8',8888' | |
| # `8 8888 ;8P ` 8888 ,8P 8 8888 ,8',8888' | |
| # ` 8888 ,88'8. 8888 ,d8P 8 8888 ,8',8888' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create an Array of 4 shoes | |
| puts "01 ------" # to make the output easier to see... | |
| shoes = ["loafers", "heels", "doc martins", "winklepickers"] | |
| p shoes | |
| # iterate through your Array using each and {}'s | |
| # and show a list of your shoes | |
| puts "02 ------" # to make the output easier to see... | |
| shoes.each { |shoe| puts shoe} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "Rumoji" # See; https://github.com/mwunsch/rumoji | |
| # Customize grid space and player icons as emoji charcters from: http://www.emoji-cheat-sheet.com/ | |
| require "Rainbow" | |
| class Grid | |
| attr_accessor :production_run, :player_x_moves, :player_o_moves | |
| def initialize(production_run, player_x_moves, player_o_moves) | |
| @is_debug_mode = false # set to true to invoke debugging statements if needed... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MINI LAB: | |
| Do a Person class and create two subclasses "Manager" and "Employee" | |
| First define constructors, then define prototypes | |
| 1. Define the person function: | |
| Person = function (name) { | |
| if(name) { | |
| this.name = name; | |
| } |
Debugging (Use The Duck… )
Find the errors in the following
1.)
My script is loading fine, but separate style sheets aren't working
I didn't get time to examine the detailed action flow of your code to offer detailed logic improvements, if any exist. Just following the guidelines I created the following...
- Need to delete README.rdoc and create a new README.md
- You made commit comments in German - should be English for other devs to understand summary of scope of change
- You should add .DS_Store to your .gitignore file so that is is not committed by default.