Email the Author

You can use this page to email Jason McCreary about BaseCode.

Please include an email address so the author can respond to your query

This message will be sent to Jason McCreary

This site is protected by reCAPTCHA and the Google  Privacy Policy and  Terms of Service apply.

About the Book

I've been writing code for 20 years.

During that time I've worked on hundreds of projects with dozens of teams. I found the most important quality of lasting code is readability.

When I first started writing code I just wrote code that worked. Who cares as long as it works? Years later, I went to great lengths to ensure my code adhered to all the best practices.

We know our code is too complex. This is easy to realize, but hard to avoid. We're too quick to dismiss qualities like readability and accept complexity as necessary..

We need to get back to the basics of writing code for other humans. This is the goal of BaseCode.

It's a field guide, not a book.

BaseCode distills writing readable code into 10 practices and contains over 40 code samples.

These practices focus on:

  • Writing code that prioritizes readability by humans, not a computer
  • Avoiding code rot with analysis and automation
  • Untangling nested code to improve visual honesty and reduce reader overhead
  • Introducing objects to encapsulate complexity
  • Refactoring long blocks of code by understanding reading levels
  • Making naming things easy with context and time
  • Using code as the primary signal, not comments
  • Avoiding unnecessary code by using reasonable return values
  • Delaying the need to remove duplication with the Rule of Three
  • Improving code flow with symmetry
  • Deferring design decisions to reduce anxiety when writing code

This isn't a book, it's a field guide. BaseCode applies real-world practices to everyday code. There's no fluff. No theory. I tackle common problems and use code to show solutions.

Each topic is neatly organized into a chapter. If you have a bunch of nested code, read Nested Code. If you want to break up long methods, jump to Big Blocks. You can read it cover to cover or jump around to the practices that interest you.


About the Author

Jason McCreary’s avatar Jason McCreary

@gonedark

Hi. I'm Jason McCreary. I go by JMac because I always seem to work with other programmers named Jason. I've been programming for over 20 years. I love building things and sharing my knowledge. I created Laravel Shift, recorded Getting Git. and speak at conferences.

Logo white 96 67 2x

Publish Early, Publish Often

  • Path
  • There are many paths, but the one you're on right now on Leanpub is:
  • Basecodefieldguide › Email Author › New
    • READERS
    • Newsletters
    • Weekly Sale
    • Monthly Sale
    • Store
    • Home
    • Redeem a Token
    • Search
    • Support
    • Leanpub FAQ
    • Leanpub Author FAQ
    • Search our Help Center
    • How to Contact Us
    • FRONTMATTER PODCAST
    • Featured Episode
    • Episode List
    • MEMBERSHIPS
    • Reader Memberships
    • Department Reader Memberships
    • Author Memberships
    • Your Membership
    • COMPANY
    • About
    • About Leanpub
    • Blog
    • Contact
    • Press
    • Essays
    • AI Services
    • Imagine a world...
    • Manifesto
    • More
    • Partner Program
    • Causes
    • Accessibility
    • AUTHORS
    • Write and Publish on Leanpub
    • Create a Book
    • Create a Bundle
    • Create a Course
    • Create a Track
    • Testimonials
    • Why Leanpub
    • Services
    • TranslateAI
    • TranslateWord
    • TranslateEPUB
    • PublishWord
    • Publish on Amazon
    • CourseAI
    • GlobalAuthor
    • Marketing Packages
    • IndexAI
    • Author Newsletter
    • The Leanpub Author Update
    • Author Support
    • Author Help Center
    • Leanpub Authors Forum
    • The Leanpub Manual
    • Supported Languages
    • The LFM Manual
    • Markua Manual
    • API Docs
    • Organizations
    • Learn More
    • Sign Up
    • LEGAL
    • Terms of Service
    • Copyright Policy
    • Privacy Policy
    • Refund Policy

*   *   *

Leanpub is copyright © 2010-2025 Ruboss Technology Corp.
All rights reserved.

This site is protected by reCAPTCHA
and the Google  Privacy Policy and  Terms of Service apply.

Leanpub requires cookies in order to provide you the best experience. Dismiss