- TDD Test Driven Development. Write examples before implementation.
- BDD Behaviour-Driven Development is about implementing an application by describing its behavior from the perspective of its stakeholders. (The Rspec Book)
- RSpec (mention alternatives, write a simple hand sewn test)
This file contains 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 'benchmark' | |
class Sudoku | |
def initialize(board_string) | |
@board = create_board(board_string.split(//).map {|str| str.to_i}) | |
@potentials = (0..9).to_a | |
end | |
def create_board(num_array) |
If you're working on an open source project, committing API keys or secrets to your repo is a big no-no. You wouldn't want anyone else making request with your keys, right?
So instead of putting those keys in app/config/initializers set then as environment variables in your shell. Here's an example for a Facebook API key:
export FB_API_KEY=3629346238763284623874623
This file contains 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
// TicTacToe.cpp | |
// for CS 141 lab 4 | |
// Password: Brown | |
// | |
#include <iostream> | |
using namespace std; | |
//---------------------------------------------------------------------------------- | |
// Display the board. |
OlderNewer