Skip to content

Tag: CSV

The major and minor pains of developing for Magento 2

Much PHP code suffers from underengineering. Of course, this isn't true for all PHP code. Some PHP code is plagued by the other extreme—overengineering. No, today I'm not talking about Smarty, that sad templating engine written in a the glorified template processor that is PHP. Today [and probably contineously revising the post for months], I'm talking about Magento 2. Magento 2 is what you get when the intern gets crushed under the object orientation shelf in the library: slow, agonizing torture, but only after you've recompiled and cleared the cache. Read More »

PHP fgetcsv() behavior on empty lines

The PHP documentation for fgetcsv() states that A blank line in a CSV file will be returned as an array comprising a single null field, and will not be treated as an error. Here's a quick demonstration of this behavior. Read More »

Moved from Mnemosyne to FlashcardDB

When I was studying Spanish last year, I had to choose a flashcard program to memorize new words. At the time, I couldn't find any on-line program that just did the job and did it well. In a comment on my blog post from last year, however, I was pointed by Jeff to his amazing FlashcardDB. Read More »

Web scraping in Ruby: why I had to use scrAPI instead of WWW::Mechanize and Hpricot

Thursday evening: so, I had written myself a nice little script using Aaron Patterson's WWW::Mechanize and why's Hpricot to extract some data from a popular web-based airport directory. Read More »