The topic of women in tech is making headlines around the world, with recent light being shed on the gender inequality plaguing Silicon Valley. In the WordPress space, this isn’t really something we talk about. While I have personally found the community to be inclusive and accepting, the reality is that women are dramatically underrepresented in the space. This shouldn’t come as a shock considering the overall distribution of women in the technology space, but it doesn’t mean we shouldn’t talk about it. We interviewed three women in the WordPress space — Bridget Willard, Jennifer Bourn, and Petya Raykovska — about what […]
Code Review Part 1: Fixing Design Flaw with the “Return Early” Strategy
While reading Josh Pollock’s first article in his Advanced OOP for WordPress series, I noticed opportunities to improve his code’s quality and performance. So I reached out to him. As a fellow educator, he suggested that I do a code review and then publish my insights in a series of articles here on Torque as a companion to his series. In this Code Quality Review series, I will present one or more code quality opportunities and provide details and insights to help you improve your code. Let’s start with the posts_pre_query method in his FilterWPQuery class: <?php class FilterWPQuery { […]
Using A Service Container To Improve Your WordPress Code
In this article, the first in a series, I will introduce the concept of a container and show you how to build and implement a very simple, but limited container. This article illustrates the concept using a singleton, which is not optimal but is simple. Note, this example code will start with using a singleton. I know this isn’t the best practice but it will make it easy to teach about containers. In the end, I will remove the singleton pattern from the container class as a way of explaining the true problem with singletons. Getting Started With Containers Think […]
Testing Nested Components In A React App
This post is part of a series on React development for WordPress developers. In my last post, I covered unit testing React components using Jest. Jest, when used for basic assertions and snapshot tests can cover a lot of the functionality of a React component. The “React Way” of developing interfaces calls for composing interfaces, which are themselves components, out of smaller components. Jest lets us test each component in isolation, but we’ll also need to make sure that component work as intended when nested inside of each other. This article also covers looping through React components — for example, […]
Press This Podcast: How WordPress is Helping People Get Back to Work with Jason Cooksey & Miles Sebesta
Welcome to Press This, the WordPress community podcast from WMR. Here host David Vogelpohl sits down with guests from around the community to talk about the biggest issues facing WordPress developers. The following is a transcription of the original recording. David Vogelpohl: Hello everyone and welcome to Press This the WordPress community podcasts on WMR. This is your host, David Vogelpohl, I support the WordPress community through my role at WP Engine, and I love to bring the best of the community to you hear every week on press this as a reminder, you can find me on Twitter @wpdavidv, […]
3 Comments
Join the conversation