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


Hasin Hayder's Blog:
Unexpected return value from Facebook FQL.query via PHP REST Lib
0 comments :: posted Monday February 18, 2008 @ 12:06:00
voice your opinion now!

Hasin Hayder had been working with the Facebook API and stumbled across a bug in an application they had created for the social networking site:

The method which we used to count number of friends of a specific user who has added that application was returning 1 when there is no friend actually installed it.

He gives the SQL query and the PHP code he was originally using to find out the number of users for the application. The problem came from the fact that the returning value wasn't an array - it was a string. The corrected code (that checks for array-ness) is also included.

tagged with: facebook query rest library return value array string


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

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