Refactoring Tweaks
Free!
With Membership
$7.99
Minimum paid price

Refactoring Tweaks

7+ Easy Wins to Make Your WordPress Code Better & Increase Your Profits

About the Book

A gap exists in the practicality of code refactoring.

Do a Google search for the phrase “code refactoring.” Go on and do it right now.  Notice how many resources are available to you about this topic.  Notice how people explain what it is.  Do you understand what they are saying?

There is a gap between the notion of refactoring and the ability to put it into action.  Many people struggle with making the leap from theory to implementation.

Our problem is getting started.

I wrote this book and its code challenge workbook to help you bridge the gap.  You will learn about code refactoring and then I will give you tweaks that you can do right now.  This book will teach you:

  • How to spot a refactoring opportunity.
  • How to think about it.
  • And then how to do it.

I’ll cover the most common opportunities as these are easy wins that you can do right now.

Listen to me. When you do these refactoring tweaks, here is what you get:

  • Your codebase and product(s) will improve. 
  • You will reduce the lifecycle costs.
  • You will be more profitable, as lower costs increase the bottom line.

Let’s start cleaning up your code.

Your Simple, Easy Actionable Plan

In this installment of the Little Green Book, I'll show you the tell-tale signs of refactoring, these indicators that scream "refactor me."  Then you'll get quick, easy, actionable tweaks that you can go do right now to make your codebase better.  These tweaks are easy wins that immediately impact your profitability by increasing quality, reuse, readability, and maintainability of your projects.

Let's get to work and show you a path to advance yourself and business.

Workbook

This book has a supplemental workbook available too.  The workbook provides you with real coding examples where you can practice and fine-tune your refactoring skills.  The solutions walk you through step-by-step providng insights, tips, thought process, and the how to for refactoring.

You can buy the book and workbook together in this bundle.

Little Green Book series

The Little Green Book series are short, easy to read, and get right to the point. No fluff. Just quick, actionable solutions you can do right now…to increase your profits.

About the Author

Tonya Mork
Tonya Mork

Hello, I'm Tonya. I'm an engineer (software and electrical) and a developer of web developers and software makers.

I have a knack for breaking down complexity, explaining the why and when of it, and building pathways for technical professionals to grow and excel. It's been the essence of my 30+ year career.

My Background

In the first part of my career, my teams and I engineered high-tech, automated systems for the world's largest manufacturers. My playground was deep into vision-guided robotics, instrumentation, tooling, and global monitoring systems. Here, I grew and honed my engineering, problem-solving, people, and tech leadership skills.

In 2001, I formed an elite consultancy firm, shifting my focus to partner with manufacturers. My team and I integrated into their team to tailor solutions specifically for them. We helped them to grow their teams' capabilities, reduce complexity, fine-tune processes, reduce costs, and increase production. Here, I grew my business, leadership, and customer success skills.

In late 2007, my world changed forever. It’s a gut-wrenching story, one that you can read here.

How about now?  

I’m pouring all of these years of experience into the WordPress Community. I actively teach and mentor WordPress developers and software makers, developing and growing each person's ability to build amazingly elegant, high-quality, and robust custom solutions. I'm giving back to empower each person and team to excel, innovate, and prosper.

Want to know more about me?

Check out my about me page on her personal site and follow her on Twitter.

Bundles that include this book

Free!
With Membership
$9.99
Bundle Price

Table of Contents

  • Foreword� by Tom McFarlin
    • Who Should Read This Book?
    • How to Read This Book�
    Preface�
    • What is Refactoring?
    • Why Should You Care?
      • Clue: Inline Comments
      • Clue: Huh?
      • Clue: Fat Functions
      • Clue: Big Decision Trees
      Refactoring Clues�
    The Secrets of Refactoring
      • Quick Naming Guide
        • Functions and Methods
        • Variables
        • Classes
        • Interfaces
        • Namespaces
        Actionable Plan
      What’s in a Name?
      • Let's Look at an Example
      • Why is it Better?
      • Actionable Plan
      I’m Done�
      • Let's Look at an Example
      • Let's Refactor
      • Why is it Better?
      • Actionable Plan
      Decisions. Decisions.
      • Let's Look at an Example
      • Defining a Better Solution
      • Let's Refactor
      • Other Reasons Why It's a Design Flaw
      • Actionable Plan
      Globally Breakable�
      • Let's Look at an Example
      • Let's Refactor
      • Actionable Plan
      Mr. Repeatie
        • Decision Assignments
        • Ternary Operator Assignments
        • Programmatically Creating Functions
        Let's Look at Some Examples
      • Actionable Plan
      Oh, You’re So Clever�
        • Too Many Tasks in a Decision
        • HTML in Business Logic
        • Functions That Do Too Much
        Let's Look at Some Examples
        • Decisions
        • Intermingling Code Concerns
        • Functions
        Actionable Plan
      More. More. More.
      • Explicitly Returning True and False After Conditional
      • Unnecessary Assignments
      Bonus Refactoring Tweaks
    • Wrap it Up
    Refactoring Tweaks�
  • About the Author

Other books by this author

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub