Author: Adam

  • Isolating Side Effects Using Isolation Sets

    Isolate side effects by using isolation sets, sets of potentially-pure and fall-through functions that cleanly and simply separate a program’s logic from its side effects.

  • Potentially-Pure Functions

    Potentially pure functions are argument-based higher-order functions (i.e., functions that accept other functions as arguments) with pure function bodies (i.e., function bodies that are consistent and side-effect free), meaning their purity is dependent upon the arguments passed into the function.

  • Pure Functions

    Striving to write pure functions (i.e., functions that are consistent and side-effect free) improves the testability, simplicity, and clarity of code.

  • Return To Me: A Song About Our Walk With God

    I’ve completed the basic arrangement of a new song: Return To Me. The song takes the perspective of God singing to us, his children, throughout our journey with him. The song ends with us singing a chorus of “Hallelujah’s” to him, our God. You’ll have to use your imagination for now, as the melody is […]

  • Making Concurrent cURL Requests Using PHP’s curl_multi* Functions

    The cURL library proves a valuable resource for developers needing to make use of common URL-based protocols (e.g., HTTP, FTP, etc.) for exchanging data. PHP provides a set of curl* wrapper functions in an extension that nicely integrates cURL’s functionality. When you have to make multiple requests in a script, it’s often more efficient to […]

  • Nothing New Under the Sun

    The technology exemplified in creatures great and small is truly amazing. Lest we believe we are truly blazing trails of innovation: Gears Transmission Control Protocol Infrared Powerful Processing Power Mechanically Adaptive Armor Magnetic Sensitivity Depth Perception By Focus Hydrodynamic Analysis

  • Fall-Through Functions

    Fall-through functions, which are simple functions that lack branching constructs (e.g., if/then, switch, etc.), provide the ability to isolate side effects in your codebase.

  • My Dream of Mom

    A dream about my mom profoundly changed my perspective while I care for my dying father.

  • XSS Prevention in Four Simple Steps

    Preventing Cross Site Scripting (XSS) attacks is a daunting task for developers. In short, XSS attacks are an injection attack in which data that is structurally significant in the current context changes the intended semantics and/or functionality. While there are great resources online that walk you through prevention techniques (one of the best security resources […]

  • Structurally compatible type checking in JavaScript with haven.js

    JavaScript has come a long way since the early days of the web, a time when the language was utilized to add a quick pop-up to a page, make some gaudy graphic move across the screen, or, if you were really fancy, error check a few fields in a web form. Today, javascript dominates the […]