What was the single most important thing I learned today? Always bring your condom! Er, I mean, your keyboard condom1.
First official day of the conference and my new MacBook survived three spills, two coffee and one water and lived to tell the tale.
Man these php devs just don’t like Macs!
(See what I did there? When this tweets, the hashtag will be picked up!)
So in less than a month I’ll be attending php|tek1 adn its high time I decided what talks I want to be seen at. Erm, I mean, which I want to attend…
Tutorial Day:
I’m torn bewteen MVC Development in PHP and Web Application Security Boot Camp but in the end I think MVC will win out…
PHP Code Review wins in the afternoon. And that evening I’ll be busy attending the ChiSox/Twins game.
Day 1:
Highly Scalable Web Applications
Streaming XML
MySQL Server Performance Tuning
SPL to the Rescue
Getting it Done
Security Centered Design
Day 2:
Exceptional PHP
Desktop RIAs with PHP, HTML and JS in AIR
Seven Steps to Better OOP Code
PHP Database Application Architecture for Scalability and Availability
Bend SQL to Your Will With EXPLAIN
Taking it All Offline with SQL Anywhere
Day 3:
Out with Regex, In with Tokens
Working with Microformats
It looks like I’m going to have a lot of fun and will learn a lot. I’m hoping some of my methods get justified as well by my peers.
Kudos again to my work for sending me on this trip, and to my wife for allowing it!
Once again, my job has me writing mutli-threaded PHP1 scripts that use PHP’s CURL2 library to connect to remote servers. (I’m calling an API here!) Without going into too much detail, the networking specifics changed between me and the api server, adding a new, or newly reconfigured, invisible proxy to the data path.
This proxy is running Lighttpd, while light in name, is starting to throw around it’s weight and get in my way.
Warning! We are going to get technical!
Continue Reading »
I’ll be attending php|tek 20091 in Chicago this May. If anyone is attending who knows me, we should make plans to meet up.
I’m excited for this conference. I can’t remember the last time I attended a programming conference, let alone one being paid for by my employer!
Well it was bound to happen sooner or later. I’ve been published in the latest issue of php|architect1 of the magazine… I suggest you all go out and buy a copy now. Several copies. (I’ll be holding an autograph session at Yorkdale Mall, Saturday Aug…)
The article itself is a little feature that explains how to write a Wordpress plugin and gives full demonstration code. Give it a read and feel free to ask any questions regarding the implementation if you wish. The code is pretty tight but should have some more security if it is to be used in a production environment. It is really a project starter. If you need to modify Wordpress, this is a great place to start looking to learn how your code should interact with Wordpress.
Not a dig at Yangaroo, but it is nice to be now working for a company who doesn’t deter this type of creativity.
I’m going to attempt to not spam this site with a bunch of non-development work stuff. I’ve other blogs for that… But in keeping with the vein of this website1, I’ve recently been pointed to a very cool website who’s basic premise is too simple to have not been thought of before now…
We’ve all seen web clipboards and code repositories before2, and even I am guilty3 of wanting to get in on the action. But all of these sites are simple repositories.
Marc-André Cournoyer4 has a fresh take on the idea. His refactormycode.com5 site isn’t just a web clipboard, but rather it is a place to put your code up for community scrutiny.
The idea is that you can post a code snippet and ask for help to see if anyone can help you sort out a problem. This isn’t a wholesale help board for new programmers, but for people who are having problems envisioning code design changes, code cleanup problems, and even those who want the tightest code possible and are seeking improvement.
The website even has an API6 for those who want to dig into the site that much more… (Maybe I’ll add a widget here for my refactorings…)
Good job Marc. Nicely executed.
I’ve released1 (finally) a version of what I consider a ’starter’ Wordpress2 plugin.
This little baby is a simple text replacement thingy. The nice thing is that is easily demonstrates a clean plugin that won’t trip over other plugins, creates proper administration pages utilizing AJAX and uses 2.5’s shortcodes.
It’s not production level code as there isn’t any real data validation on the admin form (altho if someone has gotten that far, you are toast anyway…), and it doesn’t check to make sure that it is being called from the admin pages either.
Beyond that, it is easy to read as an example for starting your own Wordpress plugin.
Enjoy.
EDIT: Looks like I’ve done something horribly wrong and the readme.txt file isn’t being parsed correctly… Thus the download isn’t working. Will update when this is fixed.
EDIT: (June 17, ‘08) It is fixed. I just ran the plugin auto-updater and it worked perfectly from this copy of Wordpress. Go download!