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,
followed by a chronological listing of the same.
You may also browse the
7
series directly via the following links.
Pestle, Four Steps to Async Iterators, Checking in on OpenMage and Magento in 2020, Text Encoding and Unicode, Shopware's Development Environment, A Sentimental Gen-X Programmer Culls his Tech Books, and, Containers, Containers, Containers.
Visit Linked Page
JavaScript unit testing with Jasmine | Magento 2 Developer Documentation Jasmine’s a testing framework for javascript code – I didn’t know until today that Magento 2 had setup a framework for these tests. (Via the tremendous Vinai)
astorm
Visit Linked Page
Packagento – A curated list of open source Magento 2 modules A new Composer repository from Adam Johnson that’s curating open-source Magento 2 extensions.
astorm
(Putting this here in an external-memory/thinking-out-loud sort of way) Prior to Magento 2’s release, Magento executives circulated the idea that Magento 1 would reach its “end-of-life” three years after the release of Magento 2. Magento 2 was released November 17, 2015, which means Magento 1 reaches its end-of-life [...]
astorm
(With apologies to whomever originally posted this technique – I can’t seem to find your original article. If you’d like link/credit just let me know) As companies start to go ahead with Magento 2 builds and Magento 2 upgrades, more an more developers are wondering what to do about the missing code pools from Magento 1. [...]
astorm
Visit Linked Page
List of mod_security Rules for Magento 1 A list of instructions from the (semi?) independent Mage Security Council on installing their scanner. This sort of buries the lead – the end of the instructions point off to a list of malware fingerprint, which server administrators can use to block common attacks before they ever reach Magento.
astorm
Visit Linked Page
BFG Repo-Cleaner by rtyley Not quite Magento related, but we’ll let that slide. BFG is a command line program that lets you remove unwanted content from your a git repository’s history. Discovered it via a GitHub support issue on the same topic.
astorm
Visit Linked Page
The bin/magento setup:upgrade Command will Enable Non-Enabled modules · Issue #9516 · magento/magento2 Weird bit of behavior where the setup:upgrade command will automatically enable any module you’ve dropped into app/code. Small, but annoying bit of behavior if your run into it.
astorm
I’m writing this down so I can remember it later – if you’re not deep into Magento service contracts apologies for the word soup. When Magento’s parsing doc block’s for parameter types, it’s only looking at interfaces – or possibly its only looking at the type it knows about. i.e. if you have [...]
astorm
Visit Linked Page
Fooman’s Magento Imagine 2017 Wrap Up Another developer oriented Magento Imagine 2017 wrap up. Include the slides from Kristof’s talk on Magento and composer.
astorm
Over in my Patreon slack, a patron came to me with the following layout handle XML chunk. This block of XML would successfully remove the block named breadcrumbs, but it would not successfully remove the block named product_list_toolbar. This is one of those places where Magento’s lack of documentation and/or a cogent systems [...]
astorm
Visit Linked Page
Magento 2 Module for Custom Reporting Grids Haven’t tried it yet, but this looks like a Magento 2 module that will let you easily create new Reporting Grids with a simple SQL statement.
astorm
Visit Linked Page
Imagine2017 Summary from Yiero Founder Jisse Reitsma A nice, succinct wrap up of Magento’s announcements at Imagine 2017. Lots of third party service acquisitions for EE users, not much public-news/investment on the open-source/CE/independent-developer side of things.
astorm
Visit Linked Page
Headless Magento 2 Resources “Headless Magento” – that is, an ecommerce store whose user interface uses some other technology stack for the UI/UX (i.e. javascript) while relying on Magento’s REST API endpoints for store functionality – is a hot topic in the Magento world. While this approach can explode a project’s budget (you’re reimplementing the a front-end store and any extension functionality) it is, none-the-less, popular with agencies looking to put their javascript engineering teams to work. If your sales team has thrown you in the headless deep-end, the sitewards/headless-magento2-resources and ishakhsuvarov/going-headless GitHub repositories are two small projects that are […]
astorm
Whether you’re using your IDE, a debugging extension, or calling get_class and new ReflectionClass yourself, PHP (or any language’s) ability to examine itself at runtime is a vital tool for debugging a program. Most bugs come down to “this variable does not have what I thought it had in it”, or “the thing in [...]
astorm
We’ve just released pestle 1.3.1, the investable .0.1 release following 1.3.0. The release fixes a few bugs with the generated DDL code for text and decimal based columns. Full details available in the issue that reported the problem. If you’re at today’s Magento Imagine hackathon (or any day’s hackathon really), [...]
astorm
So what is a Magento 2 theme? To understand that, we’ll first need to talk about the Magento_Theme module. The Magento_Theme module contains page layout XML files that define the basic containers for every Magento page layout. This allows other Magento modules to use layout handle XML files to Add frontend assets (JavaScript, CSS, [...]
astorm
I’m working on adding DDL (data definition language) code generation to pestle – i.e. the code that ultimately creates your database tables that lives in the InstallSchema or UpgradeSchema classes. I came across this bit of weirdness #File: vendor/magento/module-cms/Setup/InstallSchema.php )->addColumn( 'identifier', [...]
astorm
Here’s a fun pestle command I forgot about. pestle.phar magento2:search:search_controllers This command accepts a file path as a single argument, searches through the specified folder for anything that looks like a Magento controller file, and then displays that controller file’s execute method along with its relative file [...]
astorm
UI Component Item source Nodes are Redundant I finally got an answer out of Magento engineering on those <item name="source"/> nodes and their best guess is as good as ours. i.e., they’re redundant/not-used. There’s a few interesting points to make here for folks just learning to program, and just getting settled into [...]
astorm
Although there’s no documentation stating this, based on system behavior it seems like the Package/Module/Setup/InstallSchema.php class files are sort of required by a Magento module. I say sort of required because you can run a module without them. You can use that module to add features to Magento. However, a version number for [...]
astorm