Skip to content

Instantly share code, notes, and snippets.

View jeffabailey's full-sized avatar

Jeff Bailey jeffabailey

View GitHub Profile
@jeffabailey
jeffabailey / four_elements_simple_design.md
Created September 14, 2022 01:10 — forked from O-I/four_elements_simple_design.md
The Four Elements of Simple Design

The Four Elements of Simple Design

  • Introduced by [Kent Beck][beck] in the 1990s.
  • Part of his software development methodology [Extreme Programming][extreme-programming].
  • His exact wording appears in the [White Book][white-book].

The rules can be stated as followed:

  1. Passes all tests
  2. Maximizes clarity
@jeffabailey
jeffabailey / Run gource on macOS
Created January 22, 2022 02:41
Generate a data visualization of commits to a git repository
brew install gource &&
brew install libav &&
gource -s .06 -1280x720 --auto-skip-seconds .1 --multi-sampling --stop-at-end --key --highlight-users --hide mouse,progress,files,filenames,dirnames --file-idle-time 0 --max-files 0 --background-colour 000000 --font-size 22 --title "Lucene/Solr" --output-ppm-stream - --output-framerate 30 | avconv -y -r 30 -f image2pipe -vcodec ppm -i - -b 65536K movie.mp4 &&
open movie.mp4
@jeffabailey
jeffabailey / clean_code.md
Created November 11, 2021 03:36 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

{"lastUpload":"2021-03-26T21:41:40.364Z","extensionVersion":"v3.4.3"}