Some context, my journey
- Almost all codebases become a royal pain to work with overtime
- We don't come close to agreeing on the solution
class Movie | |
CHILDRENS = 2 | |
REGULAR = 0 | |
NEW_RELEASE = 1 | |
attr_reader :title | |
attr_accessor :price_code | |
def initialize(title, price_code) | |
@title = title |
class Movie | |
CHILDRENS = 2 | |
REGULAR = 0 | |
NEW_RELEASE = 1 | |
attr_reader :title | |
attr_accessor :price_code | |
def initialize(title, price_code) | |
@title = title |
class MyBadd | |
RANDOM_SECRET_IN_YOUR_CODE = rand | |
end | |
raise RuntimeError, MyBadd.new |
class Meals | |
def initialize | |
@breakfeast = "Cereal" | |
@lunch = "Sandwich" | |
@dinner = "Steamed Veggies" | |
end | |
def yield_meals | |
yield @breakfeast | |
yield @lunch |
class HeartSaver | |
def initialize(you) | |
@you = you | |
end | |
def perform_heart_surgery_from_form_input(form_input) | |
cut_this_much_away_from_main_artery(form_input.to_i) | |
end | |
private |
class GreekAlphabetArray | |
def initialize | |
@alpha = 'ἄ' | |
@beta = 'β' | |
@gamma = 'γ' | |
@delta = 'δ' | |
end | |
def to_a | |
[@alpha, @beta, @gamma, @delta] |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
source 'http://rubygems.org' | |
gem 'goliath', :git => 'https://github.com/postrank-labs/goliath.git' | |
gem 'yajl-ruby' | |
gem 'eventmachine', :git => 'git://github.com/eventmachine/eventmachine.git', :require => 'eventmachine' | |
gem 'em-http-request', :git => 'https://github.com/igrigorik/em-http-request.git' | |
gem "em-synchrony", :git => 'https://github.com/igrigorik/em-synchrony.git' |