songjiz / on_writing_software_well

Snippets from the On Writing Software Well series hosted by David Heinemeier Hansson

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

On Writing Software Well Code Snippets

This repository includes code snippets from the On Writing Software Well series hosted by David Heinemeier Hansson.

This repository is heavily inspired by virolea/on_writing_software_well, but whereas that lists the code samples episode-by-episode, this repository aims to recreate as much as the bc3 codebase as possible within a conventional Rails folder structure.

The repo contains two main directories:

  1. bc3: Only files that were discussed in the episodes.
  2. bc3_with_stub_files: The contents of bc3 plus empty files where they were visible in the TextMate File Browser. This helps to build a better picture of the overall architecture of the application.

The intention of this repository is to be able to more easily read the code presented in the episodes without needing to remember exactly which episode a given file was discussed, and also to learn from the domain language and architecture revealed through the stub files.

List of episodes

  • Episode 1: Pilot Episode
  • Episode 2: Using callbacks to manage auxiliary complexity
  • Episode 3: Using globals when the price is right
  • Episode 4: Not every model is backed by a database
  • Episode 5: Testing without test damage or excessive isolation.
  • Episode 6: Actually deleting data, not just pretending to
  • Episode 7: Move the specifics down as far as it'll go when evolving your codebase
  • Bonus: Suppressible module posted by a Basecamp programmer

About

Snippets from the On Writing Software Well series hosted by David Heinemeier Hansson


Languages

Language:Ruby 100.0%