browse the blogs

[ 4 Sep 2017 ]

Regular Expression Cheat Sheet:

Real Talk: I mostly just split/explode strings down to the parts I need these days, but I’ll always have a palce in my heart for regular expressions. Regular expression cheat sheet. http://pic.twitter.com/C0PdZ5aNXx — Mike Kearney📊 (@kearneymw) September 3, 2017

[ 4 Sep 2017 ]

Just Enough C for PHP:

This entry is part 1 of 1 in the series Just Enough C for PHP. This is the first post in the series. The funny thing about the C programming language is, if you look hard enough, you can see how it maps out the next 40 years of professional programming. The syntax is the most obvious thing — functions, variables, nested braces, conditionals, loops, indexed lists (i.e. arrays), indexed dictionaries (structs), variable references (pointers), functions-as-variables (function pointers). These are things we all take for granted now, but in 1978 there was no clear consensus on what sort of base […]

[ 27 Aug 2017 ]

Calling them Home:

With all the Yahoo and Verizon shenanigans going on I decided to pull my Magento Quickies posts off Tumblr and hold them close again at my personal home page. You can find all the old posts in the Programming Quickies category. DNS is doing its DNS thing, but magento-quickies.alanstorm.com should eventually redirect to that same category page, and all the old URLs should be safely redirected to the right place. This post will be proof that the new IFTTT rule I’ve setup will make a link post to the remnant magento-quickies.tumblr.com, which I’m keeping around for folks who prefer getting […]

[ 27 Aug 2017 ]

Hello Tumblr denizens! Just a quick heads up – I’m migrating my writing off this blog and onto my main site in a new Programming Quickies category.

If you prefer to see the internet is through Tumblr, don’t worry. While I needed to move old posts off Tumblr I’m setting some IFTTT recipes to cross post excerpts and links from new posts. You’ll miss nothing as we sit here together, hoping Verizon doesn’t leave a trail of destruction in its wake.

I’ll have more to say about this shortly. Until then, be kind to each other.

[ 26 Jul 2017 ]

One thing I breezed by in my recent Modifying a jQuery Widget in Magento 2 article was the whole returns two widgets RequireJS module thing. We mentioned that modules like the mage/menu module will do this.

//File: vendor/magento/magento2-base/lib/web/mage/menu.js
define([
    "jquery",
    "matchMedia",
    "jquery/ui",
    "jquery/jquery.mobile.custom",
    "mage/translate"
], function ($, mediaCheck) {
    'use strict';

    $.widget(/*...*/);


    $.widget(/*...*/);

    return {
        menu: $.mage.menu,
        navigation: $.mage.navigation
    };
});

However, we never got into what it means for a RequireJS modules to return two widgets. We …

[ 26 Jul 2017 ]

One thing I breezed by in my recent Modifying a jQuery Widget in Magento 2 article was the whole returns two widgets RequireJS module thing. We mentioned that modules like the mage/menu module will do this.

//File: vendor/magento/magento2-base/lib/web/mage/menu.js
define([
    "jquery",
    "matchMedia",
    "jquery/ui",
    "jquery/jquery.mobile.custom",
    "mage/translate"
], function ($, mediaCheck) {
    'use strict';

    $.widget(/*...*/);


    $.widget(/*...*/);

    return {
        menu: $.mage.menu,
        navigation: $.mage.navigation
    };
});

However, we never got into what it means for a RequireJS modules to return two widgets. We …

[ 17 Jul 2017 ]

Re: A Declarative Approach for Database Schema Upgrades:

It sounds like Magento’s planning a pretty radical overhaul of how it handles schema and data upgrades between versions. The looks to be a fiat from on high (vs. the community driven approach they’ve been using for bug fixes). If you’re making schema/data changes that aren’t in Magento’s core or Marketplace code bases, you’ll want to pay attention to this – your deck chairs may need shifting about.

[ 17 Jul 2017 ]

Re: A Declarative Approach for Database Schema Upgrades:

It sounds like Magento’s planning a pretty radical overhaul of how it handles schema and data upgrades between versions. The looks to be a fiat from on high (vs. the community driven approach they’ve been using for bug fixes). If you’re making schema/data changes that aren’t in Magento’s core or Marketplace code bases, you’ll want to pay attention to this – your deck chairs may need shifting about.

[ 17 Jul 2017 ]

Menu Editor to Replace Category Based Menus in Magento 2.:

Feels like I can recommend checking out stuff from SnowdogApps, sight unseen.

[ 17 Jul 2017 ]

Menu Editor to Replace Category Based Menus in Magento 2.:

Feels like I can recommend checking out stuff from SnowdogApps, sight unseen.