Published: November 13, 2015
2015 was my year to really dive into PHP. Up until this year, PHP was hobby language for me -- much as Python, Haskell, C++, Dart, JavaScript, and Java have been hobby languages. Granted, last year I finally took a job where PHP is where I spend half of my time. This year, I took up intensive study of PHP.…
Read more...
Published: November 01, 2015
My 6th grader asked me this evening about the classic novel, Don Quixote. "Like, what's it about, Dad?" I gave her a synopsis she could identify: Miguel Cervantes wrote Don Quixote in Spanish at the same time Shakespeare was writing his plays in English. Have you ever loved a series of books so much that you could identify with the…
Read more...
Published: August 13, 2015
The "switch" statement within various languages, contains a similar structure. This makes the PHP switch statement familiar. A failing example of PHP's switch statement was brought up yesterday at work. Someone asked why the expected responses to this were not received. php <?php $convertQ = function ($str) { switch ($str) { case 0: return 'no'; case 'No': return 'no'; case…
Read more...
Published: August 12, 2015
so much depends upon a fresh dough nut glazed with maple icing beside the black coffee. — Based on The Red Wheelbarrow by William Carlos Williams
Read more...
Published: July 16, 2015
Introduction I have been thinking about numbers for most of my life. It wasn't until I helped my oldest child learn to count to 20 that I thought that the way we count in the English language is silly. There is no logic in our base-10 counting system until we get to 17: "fif teen" (what's a "fif?") is followed…
Read more...
Published: July 08, 2015
I was studying the arrayfilter in PHP and was enjoying coming up with a test that could help me learn better arrayfilter magic. For instance, to filter all words whose first letter is a vowel, I created this PHPUnit test: php public function testFilterVowelWords() { $vowel = function ($word) { $vowels = ["a", "e", "i", "o", "u"]; return inarray($word[0], $vowels);…
Read more...
Published: May 12, 2015
The LCHF diet can be summarized as follows: "The fat you eat flows through; the fat you make sticks to you."
Read more...
Published: May 08, 2015
On Wednesday, I took an extended lunch break in order to take the Zend PHP Certification test at a local Pearson VUE Testing Center. After a few years of using PHP and studying for a few months, I am a Zend Certified PHP Engineer! Books that have helped me: - Programming PHP, 3rd Ed by Kevin Tatroe, Peter MacIntyre, &…
Read more...
Published: May 05, 2015
Today is the unofficial Star-Wars-fan holiday known as the Revenge of the Fifth. Last year, I noticed that 5/5 (numerical representation of 5 May, or is that May 5?) can be written in binary as 101 101. Or more artistically as: |o| |o|
Read more...
Published: April 28, 2015
I attended Lone Star PHP last year with much hope and even more trepidation as to my abilities to hold my own with other members of the PHP community. I was the recipient of the Lone Star PHP scholarship, so my attendance and stay were taken care of by the conference sponsors (thank you! thank you! thank you!). I spent…
Read more...