Tonya explains the Yoda conditions programming style. She discusses its intent and the problem it seeks to solve. A handy guide and litmus test are included to help you decide when to use it in your programs. Both PHP and JavaScript examples are provided to test your knowledge.
How to Disable Post Title Link in Genesis – in One Line of Code
In today’s quick tip, I’ll show you how you how to disable the default behavior of making the post title linkable (clickable) in Genesis. And you’ll do it in just one line of code. You’ll also see some helper utility functions available to make your job easier…right out of WordPress core.
My 4 Steps to Problem Solving
Bugs are going to happen even to the best developer. That unexpected behavior is just part of this profession. But what sets you apart and defines you is your ability to problem solve. It’s about finding the root cause, that thing or things which are at the center of the problem, and then properly resolving it. In this daily tip, let me share with you my four (4) steps to problem solving. These steps are the same no matter if you are on the hunt for a minor issue to some intermittent, pain in the backside, wonky problem.
How to move from copy/paste to build anything in code
I’m often asked where you should start. How can you move from copy/paste to being able to build anything in code? You want to build your new skills incrementally, step-by-step. Each time you copy and paste a snippet of code, stop and dissect it. Go through the individual instructions. Look them up. Take the opportunity explore the code you are putting into your project.
Designer vs. Front-End Developer – Exploring the Differences
A designer creates a complete visual branding and online presence for a client, including websites, logos, print and online media, advertising, swag, and more. The designs flow through all different types of mediums to create a consistent branding and visual package.
Developer’s Guide to Customizing Genesis – The Series
To help you maximize the power of this framework, we are building a multi-part Lab series titled: Developer’s Guide to Customizing Genesis. It focuses on you, the developer. You will explore the framework’s codebase and learn how you can tap into the component architecture to get your stuff done.
Quality Code Tip: Views are for HTML – Not Your Business Logic
In today’s quality code tip, you will learn about removing the HTML from your business logic and putting it into a view file. In programming, you want to separate out your code by its intent and purpose. Let’s discuss the what, how, and why of view files. (Side note: I’m showing you the actual code on this website which is powered by Genesis.
if/else Backwards Code Pattern – Code Smell
Code Smell Alert: A common code pattern that I see is where the if/else logic and the if conditional is backwards. I call this the “if/else backwards code pattern.” This code pattern makes the code less readable, which decreases its quality. There are two clues to let you know that you have stumbled into this pattern: The if conditional is set off of a false state. Typically you’ll see a not operator (!) as your clue. The if logic is setting a default state. But that is the job of the else. Smelly Version This is the smelling code pattern: […]
Genesis Framework Month – April 2016
For the month of April 2016, Know the Code will focus on thoroughly explaining and breaking down the Genesis framework for you. The goal for the month is to explain the framework including its major structures, instructions, and events. By the end of the month, you will be able to build custom child themes using this framework. Here’s a bonus: when you go to other sites and read their tutorials, such as Sridhar’s, you’ll be able to understand it further and know how to adapt it for your specific needs. And don’t worry, I will be doing a lot of […]
Lunch and Continuous Learn – 2 Hours per Week
I often hear how it’s difficult to make time for continuous learning. In this profession, we have to dedicate ourselves to staying current. That means we must give time to continuous learning. Here is a solution for you, a tip from me to you: Take one or two lunches per week, 2 hours total per week, and spend that time eating your lunch while you learn. I did this with my teams and staff over the years. It’s highly effective. The key is making sure you are spending the time learning from a teacher who helps you adapt the knowledge […]