Categories


Recent Posts


Archives


Category: Programming Quickies

Back in they day, I ran a Tumblr blog named Magento Quickies where I’d post shorter, less in-depth posts about my travels through Magento’s source code. This Programming Quickies categories is the successor to that Tumblr blog. You’ll find all the old Magento Quickies content here, as well as new short posts about programming in general.

This section has its own RSS feed, the old Magento Quickies feed should should be redirecting, and we’re cross posting notifications for new posts over to magento-quickies.tumblr.com. In other words, you shouldn’t need to know any of this, but the duct tape that keeps the internet held together isn’t aging well, so your mileage may vary.

Below you'll find all the Programming Quickies articles on the site.

Fearless Security: Memory Safety

Fearless Security: Memory Safety is a broad overview of some ways the Rust programming language improves on memory management and race conditions in languages like C or C++ without going full handwave/don’t worry your pretty head about that we’ll manage everything for you. As I’ve gotten more real world experience with [...]

astorm

Service Decorators in Practice

While this isn’t a straight up decorator tutorial, it does describe a practical application of the pattern which (unlike most of the decorator pattern documentation I’ve read) is a decent way of getting your head around the who/what/where/when/why of this pattern, particularly if you’re interested in Symfony’s [...]

astorm

Commerce Bug 3.2.3 Now Available

Another year, another small bug fix release for Commerce Bug. This one takes care of some PHP 7.2 syntax errors (Object is no longer allowed as class name portion) and a slew of weird edge cases where Magento’s event/observer system would send through data that should be an object, but was not an object. It’s unclear if the [...]

astorm

PHP Deployer

I haven’t used it yet, but based on the intro docs and kicking a few tires, deployer seems like a fine “implemented in PHP” deployment system — or maybe I’m just a sucker for any modern PHP system that hasn’t jumped on the type safety bandwagon.

astorm

GoLang: Arrays vs. Slices

Just using the old blog as a bookmark service for this arrays v. slices in Go articles. I think this came across my radar a year or so ago because the official go docs sort of blow past arrays to get to the “new” stuff. If you’re in a hurry — Overall, slices are cleaner, more flexible, and less bug-prone than [...]

astorm

PHP and Amazon Lambda

I did another quick survey of what’s state of the art for PHP and Amazon’s Lambda (i.e. Serverless, i.e. Amazon will run a function for you in the cloud that can respond to HTTP requests and interact with Amazon’s various services, getting you out of the sys-admin business). One project I see cropping up in my various [...]

astorm

Magento 2 Travis File

I just updated my example Magento 2 travis build file to work with the newer versions of M2 coming out of GitHub. This file does the heavy lifting of cloning an M2 Magento repo, running the installer, and adding the composer module you want to test to the project. Travis remains one of those how is this free wonders for anyone doing [...]

astorm

Building PHP From Source

I’m still finding the PHP Internals Books to be a welcome breath of fresh air. Today is was their instructions on getting a working build enviornment for the PHP-SRC repo up and running. Straight forward, no nonsense instructions. There’s a bit of assuming you know your way around compiling things but that’s always [...]

astorm

Fuzzing PHP

Fuzzers are a category of security testing software that will throw all sorts of random data at a software system looking for flaws that can then be exploited by individual penetration testers. Sort of like throwing a bunch of paint around the room trying to find the invisible man. I found this talk about a PHP Internals Fuzzer from [...]

astorm