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

Don't blame the tool user for inconsistencies in the tool.

A claw hammer that occasionally bites your hand off is a bad claw hammer. (Bad! No biscuit!)



The general consensus of this thread is that there are a lot of bad php developers out there that write bad code and this does serious discredit to the language. The example this poster linked to was bad code.

Its not proof the language is bad, its proof the poster is no better than the truly bad programmers who use the language he is trying to make fun of.


In PHP:

  $bool = (08 === 0);
  var_dump($bool);

This prints

  bool(true)

In other words, at the deepest level of identity this language can check, 08 is reported to be equal to 0.

With a language like that, I think it's safe to blame the tool.




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

Search: