-
How to use discipline, consistency and code organization to make your code grow more gently.
-
As you cycle through patterns, your application is becoming a patchwork of different coding techniques.
All those new techniques actually help, or if you are just adding layers of inderection.
-
Large applications are large so what we can do is organize a codebase in a way that "scales logarithmically".
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
# Inspired by Deepak's setup here - https://gist.github.com/deepak/5925003 | |
FROM ubuntu:14.04 | |
RUN apt-get update -qq && apt-get install -y build-essential nodejs npm git curl mysql-client libmysqlclient-dev | |
RUN mkdir -p /my_awesome_social_media_app | |
# Install rbenv | |
RUN git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
RUN echo '# rbenv setup' > /etc/profile.d/rbenv.sh |
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
#!/bin/bash | |
# This is a fork of https://gist.github.com/mcemce/a6ee9b4ab07df9972883 with | |
# additional variable-based configuration and status hand-holding added by | |
# myself (@jdickey). Thanks to @mcemce for helping me out of a jam. | |
# Docker VM name. 'dev' is a recommended name for a development VM; you'll want | |
# to name a production VM something else. | |
OUR_DOCKER_VM=dev | |
echo "Docker will install a machine named $OUR_DOCKER_VM within VMware." |
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
source 'https://rubygems.org' | |
gem 'clearwater', '~> 1.0.0.rc1' | |
gem 'opal-rails' | |
gem 'grand_central' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.2.6' | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3' |
Below are the programs I install, the Preferences I change, and the configurations I tweak after doing a fresh install of macOS.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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_relative 'base' | |
require_relative 'event' | |
require_relative 'cmd' | |
require_relative 'crud' | |
require_relative 'model' | |
require_relative 'read' | |
require 'pp' | |
class Application < BaseObject |
Improved YARD CHEATSHEET http://yardoc.org
forked from https://gist.github.com/chetan/1827484 which is from early 2012 and contains outdated information.
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
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
# Session mocking may be used in feature tests to mock a session | |
# since it's not possible to inject the session through params or | |
# direct injection. | |
# | |
# SessionMock is a module that may be included | |
# in `Hanami::Web::Action` to override the session | |
# in feature specs. | |
# | |
# Usage (in the controller action): | |
# |