Refactoring Tweaks
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.
Bundles that include this book
Table of Contents
- Foreword� by Tom McFarlin
- Who Should Read This Book?
- How to Read This Book�
- What is Refactoring?
- Why Should You Care?
- Clue: Inline Comments
- Clue: Huh?
- Clue: Fat Functions
- Clue: Big Decision Trees
- Quick Naming Guide
- Functions and Methods
- Variables
- Classes
- Interfaces
- Namespaces
- Let's Look at an Example
- Why is it Better?
- Actionable Plan
- Let's Look at an Example
- Let's Refactor
- Why is it Better?
- Actionable Plan
- Let's Look at an Example
- Defining a Better Solution
- Let's Refactor
- Other Reasons Why It's a Design Flaw
- Actionable Plan
- Let's Look at an Example
- Let's Refactor
- Actionable Plan
- Decision Assignments
- Ternary Operator Assignments
- Programmatically Creating Functions
- Actionable Plan
- Too Many Tasks in a Decision
- HTML in Business Logic
- Functions That Do Too Much
- Decisions
- Intermingling Code Concerns
- Functions
- Explicitly Returning True and False After Conditional
- Unnecessary Assignments
- Wrap it Up
- 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