Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions _includes/category-item.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<li class="category-listing" style="margin-bottom: 15px;">
<a href="{{ include.post.url | prepend: site.github.url }}">
{{ include.post.title }}
</a>
<br />
<small>{{ include.post.summary }}</small>
</li>
15 changes: 6 additions & 9 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
---
layout: default
---
<article class="post">

<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
</header>
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
</header>

<div class="post-content">
{{ content }}
</div>

</article>
<div class="content">
{{ content }}
</div>
20 changes: 15 additions & 5 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@ <h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
{{ content }}
</div>

<div style="text-align: center">
<h3><a href="/">Want to keep reading? Check out the archives for more.</a></h3>

<small>Practicing Ruby is proudly independent, open source, and advertising free.<br/>If you insist on being asked for something in return, check out <a href="/about">how to support my work</a>.</small>
<div class="related-posts">
<h3>Want to keep reading? Here are some recommendations...</h3>
<ul>
{% for title in page.related %}
{% assign post = site.posts | where:"title",title %}
<li>
<a href="{{ post.url | prepend: site.github.url }}">
{{ post.title }}
</a>
</li>
{% endfor %}
<li>
<a href="/">Return to the homepage to see all articles and categories</a>
</li>
</ul>
</div>

</article>
2 changes: 1 addition & 1 deletion _posts/2010-11-09-method-lookup-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Ruby's method lookup path, Part 1
date: '2010-11-09'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/method-lookup-1
summary: Discover the complicated, multi-step dance that is the Ruby method lookup
Expand Down
2 changes: 1 addition & 1 deletion _posts/2010-11-11-method-lookup-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Ruby's method lookup path, Part 2
date: '2010-11-11'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/method-lookup-2
summary: Use your knowledge of Ruby's lookup path to determine where to add methods
Expand Down
2 changes: 1 addition & 1 deletion _posts/2010-11-16-configurable-applications-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Writing Configurable Applications, Part 1
date: '2010-11-16'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/configurable-applications-1
summary: Learn what not to do when configuring applications, then explore a simple
Expand Down
2 changes: 1 addition & 1 deletion _posts/2010-11-18-configurable-applications-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Writing Configurable Applications, Part 2
date: '2010-11-18'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/configurable-applications-2
summary: Build dynamic Ruby-based configuration objects.
Expand Down
4 changes: 3 additions & 1 deletion _posts/2010-11-25-testing-private-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
layout: post
title: Testing Private Methods
date: '2010-11-25'
categories: articles
categories:
- ruby-quirks
- testing
author: Gregory Brown
permalink: articles/testing-private-methods
summary: Understand why testing private methods can be a code smell.
Expand Down
4 changes: 3 additions & 1 deletion _posts/2010-12-01-meditations-on-bad-and-good-code-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
layout: post
title: Meditations on Bad and Good Code, Part 1
date: '2010-12-01'
categories: articles
categories:
- games
- maintenance
author: Gregory Brown
permalink: articles/meditations-on-bad-and-good-code-1
summary: Build an ugly tic-tac-toe game by writing the entire implementation as a
Expand Down
4 changes: 3 additions & 1 deletion _posts/2010-12-03-meditations-on-bad-and-good-code-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
layout: post
title: Meditations on Bad and Good Code, Part 2
date: '2010-12-03'
categories: articles
categories:
- games
- maintenance
author: Gregory Brown
permalink: articles/meditations-on-bad-and-good-code-2
summary: Read through a cleaned up version of the ugly "Tic Tac Toe" game created
Expand Down
2 changes: 1 addition & 1 deletion _posts/2010-12-08-uses-for-modules-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Uses for Modules, Part 1
date: '2010-12-08'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/uses-for-modules-1
summary: Use modules as namespaces for your libraries and applications.
Expand Down
2 changes: 1 addition & 1 deletion _posts/2010-12-10-uses-for-modules-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Uses for Modules, Part 2
date: '2010-12-10'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/uses-for-modules-2
summary: Use mixins as an alternative to multiple inheritance to augment class definitions.
Expand Down
2 changes: 1 addition & 1 deletion _posts/2010-12-14-uses-for-modules-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Uses for Modules, Part 3
date: '2010-12-14'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/uses-for-modules-3
summary: See how modules can be used as namespaced function bags, and as singleton
Expand Down
2 changes: 1 addition & 1 deletion _posts/2010-12-15-uses-for-modules-3a.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Addendum to Uses For Modules, Part 3
date: '2010-12-15'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/uses-for-modules-3a
summary: Learn the subtle differences between "extend self", "def self.method", and
Expand Down
2 changes: 1 addition & 1 deletion _posts/2010-12-16-uses-for-modules-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Uses for Modules, Part 4
date: '2010-12-16'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/uses-for-modules-4
summary: Explore the use of mixins for customizing individual objects.
Expand Down
4 changes: 3 additions & 1 deletion _posts/2010-12-21-rapid-prototyping.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
layout: post
title: Rapid Prototyping
date: '2010-12-21'
categories: articles
categories:
- games
- building
author: Gregory Brown
permalink: articles/rapid-prototyping
summary: Build a tiny prototype of a tetris game on the command line.
Expand Down
2 changes: 1 addition & 1 deletion _posts/2010-12-23-obfuscations-of-christmas-past.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Obfuscations of Christmas Past
date: '2010-12-23'
categories: articles
categories: everything-else
author: Gregory Brown
permalink: articles/obfuscations-of-christmas-past
summary: Tear apart an obfuscated Ruby program from Leah Neukirchen to learn
Expand Down
2 changes: 1 addition & 1 deletion _posts/2010-12-28-duck-typing-in-practice-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Duck Typing in Practice, Part 1
date: '2010-12-28'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/duck-typing-in-practice-1
summary: Investigate the three main ways of doing type checking in Ruby, then work
Expand Down
4 changes: 3 additions & 1 deletion _posts/2010-12-31-duck-typing-in-practice-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
layout: post
title: Duck Typing in Practice, Part 2
date: '2010-12-31'
categories: articles
categories:
- open-source
- ruby-quirks
author: Gregory Brown
permalink: articles/duck-typing-in-practice-2
summary: Examine real uses of Ruby's duck-typing capabilities in various open source
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-01-03-ruby-hackers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Interesting Ruby Hackers
date: '2011-01-03'
categories: articles
categories: spotlights
author: Gregory Brown
permalink: articles/ruby-hackers
summary: Find out which Ruby hackers consistently write great code worth reading.
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-01-07-ruby-hacker-writers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Interesting Ruby Hacker-Writers
date: '2011-01-07'
categories: articles
categories: spotlights
author: Gregory Brown
permalink: articles/ruby-hacker-writers
summary: Find out which Ruby hackers consistently write great content worth reading.
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-01-14-dirty-testing-secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Dirty Little Secrets about Testing
date: '2011-01-14'
categories: articles
categories: testing
author: Gregory Brown
permalink: articles/dirty-testing-secrets
summary: Take a look at some dark corners of the traditional testing dogma.
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-01-19-thoughts-on-mocking-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Thoughts on Mocking, Part 1
date: '2011-01-19'
categories: articles
categories: testing
author: Gregory Brown
permalink: articles/thoughts-on-mocking-1
summary: Consider how the ideas from Martin Fowler's "Mocks aren't Stubs" can be applied
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-01-22-thoughts-on-mocking-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Thoughts on Mocking, Part 2
date: '2011-01-22'
categories: articles
categories: testing
author: Gregory Brown
permalink: articles/thoughts-on-mocking-2
summary: Explore a few good uses of mock objects from a non-mockist's perspective.
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-01-26-how-to-practice-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: How to practice, Part 1
date: '2011-01-26'
categories: articles
categories: everything-else
author: Gregory Brown
permalink: articles/how-to-practice-1
summary: Discover a new way to practice your coding skills by asking yourself the
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-01-28-how-to-practice-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: How to practice, Part 2
date: '2011-01-28'
categories: articles
categories: everything-else
author: Gregory Brown
permalink: articles/how-to-practice-2
summary: 'See an example of how the practice methods outlined in Issue 1.21 can be
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-02-05-solid-design-principles.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: SOLID Design Principles
date: '2011-02-05'
categories: articles
categories: software-design
author: Gregory Brown
permalink: articles/solid-design-principles
summary: Work through code samples inspired by Sandi Metz's "SOLID Object-oriented
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-02-11-connascence.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Connascence as a Software Design Metric
date: '2011-02-11'
categories: articles
categories: software-design
author: Gregory Brown
permalink: articles/connascence
summary: Work through code samples inspired by Jim Weirich's "Building Blocks of Modularity"
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-02-22-creational-design-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Creational Design Patterns
date: '2011-02-22'
categories: articles
categories: software-design
author: Gregory Brown
permalink: articles/creational-design-patterns
summary: Examine a use case for each of the classic creational design patterns laid
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-02-28-structural-design-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Structural Design Patterns
date: '2011-02-28'
categories: articles
categories: software-design
author: Gregory Brown
permalink: articles/structural-design-patterns
summary: Examine a use case for each of the classic structural design patterns laid
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-08-23-ways-to-load-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Ways to load code
date: '2011-08-23'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/ways-to-load-code
summary: Explore the strengths and weaknesses of the many code loading mechanisms
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-08-30-attacking-sticky-problems.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: How to attack sticky problems
date: '2011-08-30'
categories: articles
categories: problem-solving
author: Gregory Brown
permalink: articles/attacking-sticky-problems
summary: Work through a few lessons that will help you find a starting point whenever
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-09-06-closures-are-complicated.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: A closure is a double edged sword
date: '2011-09-06'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/closures-are-complicated
summary: Discover why the closure property can sometimes lead to hard-to-spot memory
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-09-13-building-enumerable-and-enumerator.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Building Enumerable & Enumerator in Ruby
date: '2011-09-13'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/building-enumerable-and-enumerator
summary: Learn about Ruby's powerful iteration tools by implementing some of its functionality
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-09-20-regession-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Thoughts on regression testing
date: '2011-09-20'
categories: articles
categories: testing
author: Gregory Brown
permalink: articles/regession-testing
summary: Benefit from two lessons about regression testing that were learned the hard
Expand Down
4 changes: 3 additions & 1 deletion _posts/2011-09-27-learning-new-things-step-by-step.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
layout: post
title: Learning new things step-by-step
date: '2011-09-27'
categories: articles
categories:
- games
- problem-solving
author: Gregory Brown
permalink: articles/learning-new-things-step-by-step
summary: Build a simple arcade game in 13 tiny steps.
Expand Down
2 changes: 1 addition & 1 deletion _posts/2011-10-04-unobtrusive-ruby-in-practice.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: '"Unobtrusive Ruby" in Practice'
date: '2011-10-04'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/unobtrusive-ruby-in-practice
summary: Explore ideas from Mike Burns's "Unobtrusive Ruby" blog post via practical
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Ruby and the singleton pattern don't get along
date: '2011-10-11'
categories: articles
categories: ruby-quirks
author: Gregory Brown
permalink: articles/ruby-and-the-singleton-pattern-dont-get-along
summary: Model the singleton pattern in seven different ways, without discovering
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
layout: post
title: Building Unix-style command line applications
date: '2011-10-18'
categories: articles
categories:
- building
- ruby-quirks
author: Gregory Brown
permalink: articles/building-unix-style-command-line-applications
summary: Build a basic clone of the 'cat' utility while learning some Ruby idioms
Expand Down
Loading