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.
The current Magento 2 source code has a number of different .htaccess files ./.htaccess ./app/.htaccess ./dev/.htaccess ./downloader/.htaccess ./downloader/template/.htaccess ./lib/.htaccess ./pub/.htaccess ./pub/errors/.htaccess ./pub/lib/.htaccess ./pub/media/.htaccess ./pub/media/customer/.htaccess ./pub/media/downloadable/.htaccess [...]
astorm
Magento 2 seems to be moving in a more Symfony/Zend 2/modern direction by splitting out the source folder (app) from the publicly browsable folder (pub). This is good, but the default distribution has a little weirdness — there’s two index.php files. There’s the one you’d expect in pub pub/index.php and then [...]
astorm
For reasons that are way too complicated to get into on Magento Quickies, while Magento 2 still has the concept of a developer mode, there’s no longer a Mage::setIsDeveloperMode method. If you’d been lazily (like me. cough) editing index.php to switch your site into developer mode, that won’t work anymore. Your only [...]
astorm
The first significant change in Magento 2? No more local, community, or even core code pools. Modules live in the top of app/code, and your modules live in their name-spaced folders. If you have any hard coded code pool paths, now’s the time to remove them.
astorm
Magento 2 Code Drop The Magento core team dropped about 4 months worth of changes to Magento 2 near the end of last week. Whatever you want to say about the core team, it can’t be that they’re sitting idle. There’s significant changes to things under the hood. Magento 2 is still a long ways off, but it’d be smart [...]
astorm
Introducting the new n98-magerun module system
astorm
High Level Overview of Magento’s Internationalization (Translation) Feature http://magento.stackexchange.com/questions/6722/how-to-implement-translations-in-design-template-package-csvs-how-does-echo-t/6725#6725
astorm
Magento Rewrite Central The most important place to check when debugging a Magento rewrite that isn’t working.
astorm
Debugging a Magento Exception There’s nothing that remarkable about this answer — other than it pains me we’re training a generation of “blue collar” programmers who don’t know how to debug this sort of thing themselves, or even ask a cogent question about it. When I’m having a bad day I wonder if [...]
astorm
Removing an Attribute from an Attribute Set Programmatically I remember the EAV code confusing the heck out of me when I started with Magento — I wonder if it was because of booby traps like this.
astorm
OAuth of Fealty Brutal (i.e. honest) assessment of modern software development. But something that’s not antiquated, or shouldn’t be, is providing a service that does what claims, that provides more value than it takes back, and that earnestly cares about the way it gets used, not just about the fact that its use can be [...]
astorm
First steps on HHVM HHVM is the Hip Hop Virtual Machine. A few years back Facebook created a compiler that took a subset of the PHP language and turned it into super fast C++ code (that’s a gross over simplification). There are forces at work trying to get Magento up and running on the HHVM, which would eradicate a number of [...]
astorm
Alan Storm: Developing Commands for N98-magerun One last n98-magerun article. This one covers how I created the config:search command, and is really a sneaky way of teaching you about test driven development.
astorm
Subtitle: Why Magento sometimes makes people crazy. Pop quiz. What does this bit of code do? Hint: It’s used on the catalog search page, and “query” means the text a user entered Mage::helper('catalogsearch')->isMinQueryLength() If you said returns true if the search text is of the minimum query length You’d be [...]
astorm
Magento TinyMCE Config A new, small, Magento module (authored by me) that makes adding additional TinyMCE configuration items easy. Built to work around Magento’s stripping of certain HTML5 tag attributes.
astorm
Magento Password Reset (vs. sending plaintext password) Email Template No idea why this isn’t the default. (That’s a lie. I have some idea)
astorm
Peoplesometimesask Whyidon’t CamelCase Allthewords Inmymagentoclasses
astorm
Adding 1.13 Security Fixes to 1.7 CE David Alger has gone above and beyond the call of duty to track down some recent EE/CE disparity and provide security patches for non-enterprise customers.
astorm
Test driven development is all the rage in certain PHP circles (while rage inducing code is all the rage in other PHP circles). Today we’re going to cover using the PHPUnit testing tools that ship with n98-magerun, as well as cover some programatic testing basics. Creating a test in n98-magerun is simple. First, make sure [...]
astorm
MageSend Magento Email MageSend is a new Magento extension from community mainstay Ashley Schroder that routes all Magento’s emails through Amazon SES. Given how difficult vanilla SMTP deliverability has become this sounds like a no brainer win for any system administrator
astorm