PHP
I’m writing this because I just saved 8 – 10 lines of code by using printf(). I know it’s pretty easy to rely on concatenation to print strings, but liberal use of printf() and sprintf() can add clarity to your code and cut complexity. Take the following, for example: No big deal. Now,…
Read more →
My buddy John C. Bland II mentioned some debugging functions I wrote up a while back while we worked together on some code for Elevate (an amazing company, by the way). I’d first seen something very similar to his dump() function at a previous job (although it was named debug() there), so I felt…
Read more →
CodeIgniter, my favorite open-source PHP framework, provides functions (full-on, globally available functions) for dealing with errors. It’s not such a bad thing, because you don’t have to worry too much about variable scope or any other troublesome programming concepts. The downside of having such a simple approach to error handling, at least…
Read more →
Redesign done. I’ll now get into the details.
No offense to the developers behind these plugins. Great work. In fact, if asked, I’d recommend all of these plugins… I’m just not going to be using them anymore because they don’t meet my current needs. I think I’m going to have to create one plugin to rule them all (well,…
Read more →
I’ve been writing a lot of code lately and, as a result, my creativity is being sucked up by problem solving. I hope to write something more interesting the next time around. While trying to figure out how to get CodeIgniter to talk to an Oracle database, I came across this great post which…
Read more →
I found this article while Googling around for a way to make Windows XP, Xampp, PHP and Oracle 10g work together. It covers everything pretty well, but I just want to add a few notes to bring the article up to date. Your “php.ini” file will be found in your Xampp folder. If your…
Read more →