4 ms·
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 $in
by ks 19y 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 19y agoIn PHP it hardly matters, since variables have their own namespace. PHP is a lisp2.
- SwellJoe 19y agoIt might matter to the human reading the code.
- randallsquared 19y agoWell, sure, but that cuts both ways. :) It's convenient to have names like $bool and $int for didactic purposes, at least.