Skip to main content
thoughtbot thoughtbot
  • Live on Twitch!

    thoughtbot is livestreaming

    Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

  • Case Studies
  • Blog
  • Let’s Talk
Live on Twitch!

thoughtbot is livestreaming

Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

Let’s get started!
View all Services
Development
  • Ruby on Rails
  • Hotwire
  • AI and Machine Learning
  • Maintenance
  • Mobile
Design
  • Discovery Sprints
  • UX, UI, and Product Design
  • Design Systems
Product
  • MVP
  • Product Management
  • Accessibility
Team and Processes
  • Team Augmentation
  • Fractional Leadership
View all Services
View all Resources
Development
  • Tech Leadership Resources
  • Open Source
  • Books
  • The Bike Shed Podcast
  • Live Streaming on YouTube
  • Conference Talks
The business of great software
  • Playbook
  • Purpose Built
  • Giant Robots Smashing Into Other Giant Robots Podcast
  • Design Sprint Guide
  • Live Streaming on LinkedIn
View all Resources

Good Code Articles

Written by thoughtbot, your expert partner for design and development.

    • All Topics
    • Design
    • Development
    • Product
    • More topics
  1. Keep your privates close

    A problem with the way we declare private methods in Ruby is the fact that...

    Harold Giménez
    November 30, 2010
    • Web
    • Ruby
    • Good Code
  2. Swallow Nil

    I’ve been using this for about a year and a half. Abomination or legitimate...

    Dan Croak
    September 18, 2009
    • Web
    • Ruby
    • Good Code
  3. Role Suggesting Name

    Consider a CreditCard class: class CreditCard < ActiveRecord::Base ...

    Dan Croak
    September 18, 2009
    • Web
    • Rails
    • Good Code
  4. Why Do Rubyists Test So Completely?

    The Ruby community, according to some data I am making up, has the strongest...

    Mike Burns
    August 14, 2009
    • Web
    • Ruby
    • Testing
    • Good Code
  5. Unpopular Developer 5: Stop Unit Testing Your Scaffold Controllers

    This goes out to all the veteran Ruby on Rails developers: those who have the...

    Mike Burns
    August 12, 2009
    • Web
    • Testing
    • Good Code
  6. Mystery Guest

    The xUnit Test Patterns: Refactoring Test Code book has an ASTOUNDING amount...

    Dan Croak
    July 28, 2009
    • Web
    • Testing
    • Good Code
  7. Nosy models

    Ruby’s “mixins” provide a simple, middle-ground option to developers that...

    Joe Ferris
    April 10, 2009
    • Ruby
    • Good Code
  8. less asking, more telling

    Getting sick of writing the following? def create @user = User.new...

    Jared Carroll
    February 25, 2008
    • Web
    • Rails
    • Good Code
  9. relax with your hacks

    Good code has a rhythm. To me code with a good rhythm can be easily read and...

    Jared Carroll
    January 14, 2008
    • Web
    • Rails
    • Good Code
  10. designing without ifs

    Alright here we go. Say we got an app with groups, users and memberships. ...

    Jared Carroll
    January 2, 2008
    • Web
    • Good Code
  11. Sign up to receive a weekly recap from thoughtbot

    Looking for even more ways to stay connected?
    RSS feed icon Check out our feeds
« First ‹ Prev … 6 7 8 9 10

Footer

thoughtbot
  • Services
  • Case Studies
  • Resources
  • Let's Talk
  • Our Company
  • Careers
  • Purpose
  • Blog
  • Sponsor
  • Mastodon
  • Bluesky
  • GitHub
  • YouTube
  • Twitch
  • Feeds
© 2025 thoughtbot, inc.

The design of a robot and thoughtbot are registered trademarks of thoughtbot, inc.

  • US: +1 (877) 9-ROBOTS
  • UK: +44 (0)20 3807 0560
  • Beware of fraudulent thoughtbot job listings Learn more
  • Code of Conduct
  • Accessibility Statement
  • Privacy Policy