Found 20 bookmarks
Custom sorting
Code Tip: Understanding the Ternary Operator
Code Tip: Understanding the Ternary Operator
Let’s talk about the ternary operator. It can be confusing for many. In this video, Tonya puts the if/else side-by-side with its equivalent ternary to help you know and understand it. The alternate syntax tip is found here. This tip is valid for JavaScript and PHP.
·knowthecode.io·
Code Tip: Understanding the Ternary Operator
[Tutorial] How to install ImageMagick
[Tutorial] How to install ImageMagick
Installing ImageMagick is really pain on other systems. However, it is trivial with Laragon if you follow these below steps (works with both Apache & Nginx): Download links: PHP Extension (PECL): https://pecl.php.net/package/imagick/3.4.3/windows Imagick...
·forum.laragon.org·
[Tutorial] How to install ImageMagick
Code Review Part 1: Fixing Design Flaw with the "Return Early" Strategy
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 …
·torquemag.io·
Code Review Part 1: Fixing Design Flaw with the "Return Early" Strategy
How To Enforce Code Standards In WordPress Development Using Composer
How To Enforce Code Standards In WordPress Development Using Composer
In my last article for Torque, I wrote about why I think that for PHP code following the coding standards set by the PHP community make more sense than those set for WordPress core. These standards are based on serving the needs of an existing legacy code base, limited to language features that are 10 …
·torquemag.io·
How To Enforce Code Standards In WordPress Development Using Composer
Don't Follow WordPress Coding Standards
Don't Follow WordPress Coding Standards
When I started in WordPress development, I was very lucky that I found good quality tutorials by experienced developers such as Tom McFarlin and Pippin Williamson, who understood the ecosystem well. The more I learned, the more I came to value sticking to “The WordPress Way”. Since I learned plugin development by working as a …
·torquemag.io·
Don't Follow WordPress Coding Standards
[Tutorial] How to install Imagick
[Tutorial] How to install Imagick
Installing Imagick is really pain on other systems. However, it is trivial with Laragon if you follow these below steps (works with both Apache & Nginx): Download links: PHP Extension (PECL): https://pecl.php.net/package/imagick/3.4.3RC1/windows Imagick ...
·forum.laragon.org·
[Tutorial] How to install Imagick