News for hackers. Stuff that matters.
Re:PHP best practices - The dos and don'ts by Funky_ on Saturday January 05, 2008 @10:35AM (#95133)
The dos and don'ts of UI design should be their first project. :)
Re:PHP best practices - The dos and don'ts by ks on Saturday January 05, 2008 @10:53AM (#95139)
And there are several don'ts in the slides too. Never give variables the same name as functions or other parts of the language.

They named their variables $int, $string and $bool...

Re:PHP best practices - The dos and don'ts by randallsquared on Saturday January 05, 2008 @01:50PM (#95171)
In PHP it hardly matters, since variables have their own namespace. PHP is a lisp2.
Re:PHP best practices - The dos and don'ts by SwellJoe on Saturday January 05, 2008 @07:03PM (#95205)
It might matter to the human reading the code.
Re:PHP best practices - The dos and don'ts by randallsquared on Sunday January 06, 2008 @12:04PM (#95356)
Well, sure, but that cuts both ways. :) It's convenient to have names like $bool and $int for didactic purposes, at least.