How to Set the Default Terminal on Mac OS X

I was testing out a bash script on my Mac and the script had some code to switch the shell from /bin/zsh to /bin/bash so that I would have similar shell to the servers the code would run on. There was also code to switch it back to /bin/zsh but I think with the script … Continued

Workaday Reading

Upgrading Bash on macOS



"One thing that many macOS users don’t know is that they are using a completely outdated version of the Bash shell. However, it is highly recommended to use a newer version of Bash on macOS, because it enables you to use useful new features. This article explains how to do this."

read »

Workaday Reading

Accessibility Check #1



"Today I'm starting my very first accessibility check. I'll be auditing websites to see how well they implement accessibility and pointing out the problems and items that need improvement."

read »

Workaday Reading

The Slotted Counter Pattern



"It is a common database pattern to increment an INT column when an event happens, such as a download or page view. You can go far with this pattern until bursts of these types of events happen in parallel and you experience contention on a single row."

read »

Workaday Reading

Traits



"PHP implements a way to reuse code called Traits. Traits are a mechanism for code reuse in single inheritance languages such as PHP."

read »

Workaday Reading

State management in Corvid



"Thanks to the Wix editor, when working with Velo you don’t need to deal with html/css when developing UI. Instead you get a full blown WYSIWYG editor where you can create the UI for your application."

read »

Workaday Reading

Blade Templates



"Sage uses Laravel's Blade(opens new window) templating engine. This gives you access to the Blade templating language, which includes a number of useful features."

read »

Workaday Reading

Pure vs Impure Functions



"Software engineering is full of jargon. Occasionally, to grasp the true meaning of the seemingly simplest of words, one must waddle through many murky layers of complexity (fancy defining this, anyone?). Thankfully, other times, outwardly inaccessible words can be demystified pretty easily."

read »

Workaday Reading

Writing value objects in PHP



"If you already have heard about DDD (Domain-Driven Design), you probably also may have heard about Value Objects. It is one of the building blocks introduced by Eric Evans in "the blue book". A value object is a type which wraps data and is distinguishable only by its properties."

read »

Workaday Reading

WordPress Handbook



"Unit testing is a level of software testing where individual units/components of software are tested. The purpose of unit tests is to validate that each unit of software performs as designed. In terms of PHP and WordPress, a single 'unit' is a function or a class."

read »

Workaday Reading

Component Driven User Interfaces



"The development and design practice of building user interfaces with modular components. UIs are built from the “bottom up” starting with basic components then progressively combined to assemble screens. Modern user interfaces are more complicated than ever."

read »