Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Funky_
· 18y ago · 0 comments
The dos and don'ts of UI design should be their first project. :)
Comments
[–]
ks
18y ago
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...
[–]
randallsquared
18y ago
In PHP it hardly matters, since variables have their own namespace. PHP is a lisp2.
[–]
SwellJoe
18y ago
It might matter to the human reading the code.
[–]
randallsquared
18y ago
Well, sure, but that cuts both ways. :) It's convenient to have names like $bool and $int for didactic purposes, at least.