News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Debuggable Blog:
Programming Psychology - Return home early
0 comments :: posted Monday April 28, 2008 @ 14:36:43
voice your opinion now!
Felix Geisendorfer is taking an interesting approach to defining programming in this new post to the Debuggable blog - he's coming at it more from the level of the perception the programmer has about writing good code.

I believe understanding the patterns in your own thinking will by far make the biggest impact on how good you will get as a programmer. Forget design patterns, forget unit testing, forget all those functions you know. Important is to question why they exist and how they could be improved.

He illustrates through a few examples what he means. He describes one such thought method, the "return home early" process - basically, if something looks too complex for its own good, it probably is. He offers a different way of thinking about it too, a more visual way that can help simplify things even more by laying out the pieces and seeing where they all fit.

tagged with: psychology programming return home early complexity simple visualize


DeveloperTutorials.com:
PHP Site Search Made Easy
0 comments :: posted Monday March 31, 2008 @ 12:35:52
voice your opinion now!

On the Developer Tutorials site today, Akash Mehta has posted his look at having search functionality on your website.

Today's websites have a lot of content. [...] Needless to say, effectively searching all that data can be a real challenge, and chances are at the end of the day you'll still be stuck with a slow and ineffective search system. [...] Implementing effective search doesn't have to be hard. In this tutorial, I'll show you how to build a basic site-specific web search in just five lines of code, using the Yahoo! APIs.

He includes a (very) brief look at the search API Yahoo! offers followed by examples of queries and then on to the real deal, a search system that takes in a user query and asks the Yahoo! API for results matching it. The results are outputted below the box.

tagged with: search engine yahoo api simple tutorial

Developer Tutorials:
Debugging PHP code using debug_backtrace
0 comments :: posted Friday February 29, 2008 @ 10:27:00
voice your opinion now!

On the Developer Tutorials blog today, Hasin Hayder has pointed out a handy PHP function that can make your debugging a bit less of a headache - debug_backtrace.

Most of the PHP developers debug php code in their local machine just by trial and error using "print_r","var_dump" and "echo". They don't write unit tests or follow any advanced debugger like xdebug. But the problem of using these methods is you cannot fool proof your code and their might be some bugs still present in your code.

He includes a simple example to show how it works and what kind of output it will give - a nested function call. Personally, I use this in some of my classes (like a database abstraction later) to track and see which functions my calls are coming from and what data they're sending me - easier to debug in one place than trying to guess.

tagged with: debugbacktrace code debug example simple

David Coallier's Blog:
Simple DBAL, PHP5, Light, Fast, Simple.
0 comments :: posted Tuesday August 28, 2007 @ 09:32:00
voice your opinion now!

David Coallier has posted about a database abstraction layer that he's been developing for PHP 5.2.x only systems and wants some opinions on his methods:

I made a very light DBAL that uses PHP5.2.x only (Since many people seem to want that) and it has the exact same DSN syntax as MDB2 for now and the query method are also called the same (No API Changes). [...] The main goal of the DBAL is to have a very effective and light way of switching RDBMS but also the possibility to change your DBAL to something more "0feature complete" as such as MDB2.

He includes the list of query method names and the types of databases that he wants it to support (as well as mentioning the fact that it would be unit tested for reliability).

tagged with: database abstraction layer dbal php5 light simple fast mdb2 database abstraction layer dbal php5 light simple fast mdb2


mysql database package PEAR zendframework framework developer releases zend book conference application PHP5 code release ajax pecl cakephp job security

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework