Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The dos and don'ts of UI design should be their first project. :)


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...


In PHP it hardly matters, since variables have their own namespace. PHP is a lisp2.


It might matter to the human reading the code.


Well, sure, but that cuts both ways. :) It's convenient to have names like $bool and $int for didactic purposes, at least.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: