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

Infuriating? I'm not here to defend php but even when I do agree that inconsistencies are not nice, nothing stop you of creating your own wrapper for these functions.

Infuriating? really?



Yes, it is really infuriating that PHP literally cannot commit to any coding standards whatsoever for its standard library. Even if you choose to write your own wrappers, it doesn't change other people's code which you have to read. It's idiotic that the developers of PHP didn't take 5 seconds to consult their other functions before adding new ones with the arguments reversed, and it is totally appropriate to feel angry at them for their unconscionable shortsightedness.


Back when I wrote PHP, the solution was to use an editor which shows you functions arguments after you type the open bracket.




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

Search: