|
|
|
|
|
by iso-8859-1
5081 days ago
|
|
Why not use a class? http://pear.php.net/package/Net_Socket Or at least use namespaces. There is no reason to stick with the native PHP wrappers. It's common knowledge that PHP function names are illogical because of backward compatibility. So why not use a wrapper? I think it's sad that even after PHP got all these features so that it resembles a proper programming languages, people aren't even using them! Makes me wonder if it was a good decision to force people to use classes in Java... |
|
Classes being a good abstraction:
Classes being a bad abstraction: In that latter case, you'd be much better served using a functional or procedural API, even if it's namespaced: If you're going to argue that `stream_socket_` is doing it wrong, I'd like to hear why it'd be better as a OO API.