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

The core of C is small enough that you can fit it in your head.

PHP has so many functions that it's almost impossible to write it without googling php.net, etc.

Not that this matters so much, Google is fast and omnipresent, but in that sense they are definitively not alike.



Almost impossible? Pop quiz: The case-insensitive version of "strpos" is "stripos", what is the case-insensitive version of "strcmp"?


I'm guessing it's stricmp... However off the top of my head I have absolutely no idea what the argument order and return values for any of those four functions will be without looking them up.


buzzer sound I'm sorry, the answer we were looking for was "strcasecmp"

(Sorry if the level of levity is considered inappropriate, but humour is a level 4 defence mechanism and the only way I can remain sane in the face of such things)




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

Search: