Things That Matter Most

Things That Matter Most

  • Home
  • Business
  • Faith
  • Technology
  • Politics
  • Creative Writing
  • Email
  • GitHub
  • RSS
  • Twitter

Powered by Genesis

Private Variables in JavaScript

January 8, 2018 by Eric

ES6 gave us classes and object inheritance in JavaScript. However, it’s still missing any concept of “privacy” in OO terms. Here’s a hacky workaround to, maybe, make things work.

Filed Under: JavaScript, Technology, Tutorials

Mocking Time in Unit Tests

January 4, 2018 by Eric

Some operations in PHP introduce uncertainty around your code’s behavior. In those situations, it’s helpful to insert helper functions that make your code more reliable and easier to test.

Filed Under: PHP, Tutorials

Building a Phone Routing System

December 23, 2017 by Eric

In this walkthrough, I build a phone redirection system using Twilio to automatically forward frequent wrong numbers to the business with a support line 2 digits transposed from me.

Filed Under: Technology, Tutorials Tagged With: Twilio

Securing Forms Without Captcha

May 29, 2013 by Eric

Captchas are a terrible user experience. They put the onus of spam protection on the visitor filling out the form and, personally, show me how lazy you are as a site administrator.  There are a hundred different ways you can protect your site from spam on the server side – why would you forego these […]

Filed Under: PHP, Tutorials Tagged With: captcha, contact, form, software development, spam, submission

WordPress Plugin Structure

December 27, 2012 by Eric

The power of WordPress lies in its pluggable infrastructure.  Unlike other content management applications which require you to edit the core code of the system to make changes, WordPress supports plugins.  These smaller applications tie in to a rich API provided by WordPress that allows you to change just about everything about the application and customize […]

Filed Under: PHP, Tutorials Tagged With: Class, Class Format, Classes, Design Patterns, plugin, Plugin Development, singleton, Static Class, WordPress, Wordpress Plugin

jQuery as a Global Event Bus

October 17, 2012 by Eric

Some time ago, I made a mistake.  Rather than taking the time to truly understand how events worked in jQuery, I built my own JavaScript library to handle event delegation. It worked, but why reinvent the wheel? It turns out jQuery is perfectly capable of serving as a global event bus for all of your […]

Filed Under: JavaScript, Tutorials Tagged With: Event Driven, jQuery, WordPress

« Previous Page
Next Page »

About Me

Eric is a storyteller, web developer, and outdoorsman living in the Pacific Northwest. If he's not working with new tech in web development, you can probably find him out running, climbing, or hiking in the woods.

Get the newsletter