For the last few months, I’ve been writing extensively about two related, but seemingly contradictory points: the first is that learning a JavaScript MVC framework doesn’t equal learning JavaScript deeply. The second is that AngularJS is amazing — I love it and so should you. If you want to learn JavaScript deeply, take a course, read a book, and study the language. If you want to build something cool quickly learn Angular. But don’t skip learning the JavaScript basics. I think learning Angular is pretty easy, but that’s because I understand JavaScript fundamentals. If you’re new to JavaScript, then this article […]
Why WordPress Needs The Fields API And How To Use It
Imagine someone creates an open-source, JavaScript admin interface for their WordPress site and names it after a greek demigod. You’re probably thinking wow, that’s so cool, I wonder if I can make it work on my site. But then you start thinking about all of the custom metaboxes and other types of custom forms that plugins add to the post, term, and user edit screens. There is no standard for metaboxes or for declaring what fields a plugin has to use. Making something that “just works” with everything is increasingly more complicated. Custom API-driven interfaces remain the territory of those who […]
Introduction To Term Meta In WordPress
WordPress 4.4 introduced several new features for developers. The infrastructure for the WordPress REST API got the most attention by far, but there are some other notable new features that are worth a closer look. One in particular is taxonomy term metadata. In this article, I will discuss what term meta is and how to use it. The need for term meta is made apparent by the wide number of solutions that existed in the past to approximate this feature via various means. For example, Pods has supported custom fields for taxonomy terms for a long time. Previously, those custom […]
JavaScript: Is Deep The Right Goal?
I’m very excited to be a part of WordCamp Miami‘s “Learning Javascript, Deeply” track. The fact that five of the seven talks are on JavaScript frameworks, however, is reflective of a troubling reaction I see to Matt Mullenweg’s call for WordPress developers to “learn JavaScript deeply.” JavaScript frameworks like Backbone, which is what WordPress uses, are great ways to make complex JavaScript tasks easy. But it would be foolish to think that learning a JavaScript MVC framework is learning JavaScript deeply. JavaScript: Is Deep The Right Goal? Don’t get me wrong, I’m giving two talks on AngularJS because I think […]
Beginner’s Guide To Escaping Outputs In WordPress
Earlier this month, I wrote an introduction on validation and sanitization in WordPress, which emphasized the importance of making sure that data coming into your site via HTTP requests or into PHP functions is authorized, properly formed, and not malicious. That article was all about inputs. This one is all about outputs. We are going to discuss the precautions to take when retrieving data out of the database to display or input in other classes or functions. I hope by this point you are learning to trust no one and nothing. The same goes for the database. Repeat after me,”the database […]
Beginner’s Guide To Data Sanitization And Validation In WordPress
One of the biggest differences between code written by novice developers and more advanced developers is that experienced developers tend to pay a lot more attention towards sanitizing and validating inputs, and late escaping outputs. Novice developers, on the other hand, tend to overlook these practices. I know I did. I didn’t even know what sanitization, validation, or escaping were. And, while these steps may not seem exciting, they are essential for preventing errors and security exploits on the sites that are running your code. In this article, I will discuss the basics of sanitizing and validating inputs in the context of […]
How To Use Asynchronous PHP In WordPress
PHP executes code in series, which means one thing is done after another. This can be problematic when you need to do a lot of processing in one session or if you are relying on calls to external APIs. In this article, I’m going to show you how to use asynchronous PHP in WordPress to address this issue. It isn’t uncommon for a server to be configured with a 30-second timeout limit for each request, which puts a hard cap on the amount of time each session has to do its work. Of course, if that processing is required in […]
How To Learn JavaScript As A WordPress Developer
Like many WordPress developers, I started learning JavaScript before I really even knew what JavaScript was. By “learning JavaScript,” I mean that I Googled how to make dynamic changes to the CSS on my page, discovered that jQuery was the option, and later found out that jQuery was a JavaScript library, and so on. WordPress is a safe space from which we can explore the different technologies surrounding it to improve our sites and create more dynamic experiences for our users. This includes JavaScript. In Matt Mullenweg’s State of the Word this year, which I was lucky enough to attend, […]
Nothing Is Foolproof… Even WordPress
Being a WordPress plugin developer is kind of insane when you think about it. You write code that can be freely modified by anyone and is expected to work with any infinite different collections that make up a unique WordPress site. This is a huge part of why I love what I do, but still, I have to admit, it’s kind of crazy. Developing a plugin or theme that has to be compatible with a range of different WordPress versions, PHP versions, MySQL versions, web servers, and more is a huge undertaking. That doesn’t even include the infinite number of […]
Keeping Sight Of The Problem: Improving WordPress One Solution At A Time
I recently had the privilege to attend a Q&A session with Techstars founder David Cohen at the Florida State University School of Social Entrepreneurship. Techstars is a startup network, accelerator, and venture capital firm, dedicated to helping startups succeed and proving that you don’t have to be in Silicon Valley to create a successful tech startup. With a portfolio that includes Uber, Twilio, and DigitalOcean, Techstars model has experienced overwhelming success. Techstars is based in Boulder, Colorado and has expanded into cities all over the world. Techstars operates on a “give first” ethos, which means they help others whenever possible, create […]
2 Comments