Archive | Languages RSS feed for this section

RE: ORM Haters: In Defense of ORMs

This article is in response to a discussion on hacker news regarding ORMs (or object-relational mapping) which is a programming technique where a database is abstracted into classes. Instead of writing SQL at the application level all database interaction is done through objects. There are many ORMs out there, to name just a few: Hibernate for [...]

2 Comments Continue Reading →

Install Image Magick for PHP on OSX

These instructions will install the ImageMagick binaries as well as the PHP extension for the default OSX Apache/PHP setup.  If you prefer not to use MacPorts there are binaries available, however you may have to deal with some dependencies and configuration on your own. 1. Install ImageMagick sudo port install ImageMagick 2. Install imagic module [...]

1 Comment Continue Reading →

Four Reasons to NOT use try/catch

I was reading an argument discussion on google groups regarding the try/catch statement and node.js. In particular there was a suggestion that try/catch is an anti-pattern, meaning a poor development habit that is in common use. I can’t really agree that try/catch on it’s own is a bad thing but it is certainly easy to [...]

3 Comments Continue Reading →

Installing LAMP Stack on OSX 10.7 Lion

This is a follow-up to my previous article on installing a LAMP Stack on Snow Leopard and explains the steps that you need to get Lion up and running for LAMP development.  (Linux, Apache, MySQL and PHP in case you don’t already know).  Lion comes pre-installed with Apache and PHP 5.3.6 so you only need [...]

10 Comments Continue Reading →

Installing Zend PHP Debugger in Eclipse on OSX

This walk-through video shows how to install  and enable PHP debugging using the Zend debugger in Eclipse on OSX.  Instead of using print_r and die statements you can step through your code line-by-line, inspect variables and objects, set breakpoints and view the call stack. Using a debugger really pays off in the long run in [...]

9 Comments Continue Reading →