Tag Archives: php

markdown.me

Markdown, a great shorthand syntax for creating HTML, and subsequently, for taking notes. I often take notes for different situations and use the Markdown syntax to help give them structure and organization. One thing I found I often wanted was a way to enter that Markdown somewhere, and have it generate an HTML page from [...]

Also tagged , | 1 Comment

PHPUnit, Mocks and Closures

I like PHPUnit, and I like closures, but haven’t found many useful cases for them (closures) in PHP yet. Just recently I came across a situation where I needed a closure when working with PHPUnit Mock objects. For those not familiar with Mock Objects in regards to testing, here’s a link. It’s fairly common when [...]

Also tagged , , | Leave a comment

PHP and an abstract Singleton

PHP is quirky. I’ve heard it called other things, but I’ll leave it at that. I had a great learning experience while writing an abstract singleton class. Static binding in PHP behaves uniquely, and is often a hurdle when you try and develop an kind of an API using inheritance and static properties. If you [...]

Also tagged | 2 Comments

Latest Endeavor: whoopdwhoop.com

My wife and I have been chugging away on a new endeavor for awhile, and we finally got to a point where we could launch it live. In short, it’s a currency free, creative marketplace, and it’s called whoopdwhoop.com It gives “artisans”, or crafty people, a place to list their creations, and hopefully, a community [...]

Also tagged , , , , | Leave a comment

?: PHP Coalesce

I’ve often been a fan of Javascript’s way of using the logical OR operator as a coalescing operator, or way to default values. It’s a very handy operator for shortening ternary expressions. I just found out in PHP 5.3 they added an operator to do just that. ?: That’s all, carry on. http://www.php.net/ChangeLog-5.php#5.3.0

Tagged | Leave a comment

Page optimized by WP Minify WordPress Plugin