Using PHP Class Methods as WordPress Action Hook Callbacks
Using object oriented code is a must for me. Object oriented code is more than just organization of the code, it’s organization of one’s thinking. I wanted to talk about using static class methods as handlers for WordPress actions. This is important to me because often my plugins are implemented as a class. add_action('init', 'MyPlugin::Init'); class MyPlugin { [...]
PHP, Classes, Camel Case, and Underlines
When I first started PHP programming, I wrote code like the PHP inventors wrote code, using lowercase characters and underlines, like: $my_favorite_variable = 5; function add_numbers($first_number, $second_number) { return $first_number + $second_number; } $answer = add_numbers($my_favorite_variable, 1); But this became tiresome. The thing is, the underscore character is harder to type and using all lowercase really makes the [...]
When it Comes to Accounts, Google is Messed Up
Oh Google. I love you in so many ways, and in some ways I’m just amazed you can even get out of bed and get yourself dressed in the morning. I’m a big fan of Google hosted email. You get that great Gmail experience, but with your own domain. It also incorporates Google Docs and Calendar [...]
Finally, CSS Font Ligatures
"Using @font-face allows web designers a wide palette of font choices and with commercial font vendors supporting the WOFF font format, the set of font choices should improve even more. So the next step is clearly to try and make better use of features available in these fonts."
Artistic Skills
I currently have a client that’s basically an art company. They have great artists in the company, and it’s a bit intimidating. My artistic skills are definitely growing, but it’s such a soft skill compared the hard skill of programming that I’ve been doing for the past 15 years. I don’t feel the need to be [...]
My Blog Stalker and Other Crazy Blog Commenters
Something new I’m learning to deal with is my blog stalker. She doesn’t read this blog, at least I hope she doesn’t. But I’ll take that risk this time because I just need to talk about it. She started off being a supportive commenter, I looked forward to hearing from her. Then it got a little [...]
Brief Interview with Russell Brown, Senior Creative Director of Photoshop Marketing for Adobe
“But with regard to Patch Matching, it’s a miracle. It’s the next miracle. From what I’ve seen in Adobe’s lab, it’s going to be outstanding. We are making it possible to correct things so well, like getting rid of telephone or power lines going through photos, and this solves a common problem that photographers face. It’s a cool, easy-to-use technology which Adobe is working on.”
Cool Photoshop CS5 Feature: PatchMatch
cs5.org brings us this cool video. I feel a lot of new Photoshop features are worthless, but this one definitely seems useful in general. It’s like a mega extension of the healing brush for that ex-boyfriend who just won’t go away!
WordPress Function do_action – Very Useful
Today, well, really the last few days have been incredibly productive and incredibly hectic. I finished up some complex code for a customer and ever since then I’ve had so many epiphanies that I’ve practically been typing constantly ever since. I will say that I really like when I am inspired like this, but I [...]