Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Pádraic Brady's Blog:
PHP: Innocent Villagefolk or a Pillagin' Pirate?
Apr 13, 2012 @ 09:26:37

In a new post to his blog Pádraic Brady wonders if PHP should be more equated to innocent villagefolk or a pillagin' pirate:

What PHP excels at is tireless consumption. Marathon races make one hungry and we can’t help but notice the feasts being exposed by Rubyland or Pythonville as they do their best to sprint past us. Without that thieving spirit, PHP would long since have entered obscurity as a quaint HTML oriented scripting language used by college students to build cheap websites with flashing text and under construction GIFs. [...] Our strength lies in our ability to connect the dots several hundred times over to the point where the best dot connector gains a critical mass of adoption.

He talks about how most PHP developers seem to like doing things the hard way - reinventing the wheel, overstate personal preferences to the point of argument, ignoring best practices and promoting the bad ones.

He even suggests a possible new creed for PHP developers:

What we really need is a new PHP motto. Something deep and meaningful that exposes PHP’s true nature. I was thinking “Rob ‘em blind, matie!” would be a good one but I remembered that we need to cater for the Enterprise audience. Suggestions welcome.
tagged: opinion community language villagefolk pirate motto


Andreas Gohr's Blog:
A Pirate Map with LibGD and Google Maps
Feb 03, 2009 @ 07:53:41

Andreas Gohr has a fun example of how you can combine the Google mapping technology with the GD rendering image that comes standard with PHP to make "pirate maps" (like this).

Yesterday I thought about visualizing photo geodata. While tinkering with different ideas, I thought about making it look like a real paper photograph placed on a real map. Of course it had to be automated somehow. So I spent a few hours with PHP's GD library functions. It's really cool what you can do with it.

He used a MapDecorate class he put together to create the "treasure map" in a few simple steps - grab the map and convert to sepia, add additional textures/images, add custom text to the bottom and place the selected photo on the map.

tagged: googlemaps gd image library libgd pirate tutorial mapdecorate