Peer Review: Improving The Business Logic

Tuesday, September 8th, 2009

This entry is part of an ongoing series involving the review of a code sample and it’s refactoring. For the original code sample, see here. So far, we’ve done quite a bit of work on our Twitter class, making it better. There’s still work to be done, though, especially improving the logic. The Twitter class [...]

1:00 am | Comment (10) | Print | Categories: Best Practices, Debugging, System Architecture

Peer Review: Looking At Abstraction – Redux

Monday, August 31st, 2009

This entry is part of an ongoing series involving the review of a code sample and it’s refactoring. For the original code sample, see here. Editor’s Note: The response of the community to this series has been great, and I’ve been given a large number of suggestions. I’ve incorporated some of those suggestions into the [...]

6:30 am | Comment (2) | Print | Categories: Best Practices, Debugging, System Architecture

Stop Sacrificing Readability For Efficiency!

Thursday, March 26th, 2009

Much was made last week over the topic of micro optimization in PHP. Most of these argued that micro optimization was a bad idea, from the perspective of unit testing, the idea that “premature optimization is the root of all evil”, the fact that it takes too much time, and that it violates the rules [...]

8:32 am | Comment (20) | Print | Categories: Best Practices, Business Management, Debugging, System Architecture

Bug-Free: Using Function Traces To Better Understand Code (Part 3 of N)

Tuesday, October 21st, 2008

Have you ever been handed some code and told, “make it work”? If you haven’t, chances are good you will some day. It’s often a daunting task, especially since, as one programmer told me, “comments come when the second developer has to make changes.” While this is likely bad coding practice, it’s happened to me [...]

9:32 am | Comment (0) | Print | Categories: Best Practices, Debugging

Bug-Free: Using XDebug To Improve Development (Part 2 of N)

Thursday, October 16th, 2008

There are two really great experiences in my PHP life: the day I learned how to use PHP, and the day I installed XDebug. Ok, perhaps that’s an overstatement, but XDebug is one of the best tools I’ve ever used. I think every developer should use it, and for the next part of this series [...]

5:24 pm | Comment (1) | Print | Categories: Best Practices, Debugging
« Older Entries
Search:
Copyright © 2008 - 2010. All Rights Reserved.