How often does it annoy you when some newbie comes along and decides to use your favorite language and then turn around and say it's crap because it can't do this this and this...?
I had someone send me an email the other day asking me what they thought about an article they were writing on PHP and half of it was wrong. For example, it was quite funny when he said that PHP doesn't take OOP seriously.
When you get a book on PHP or browse many articles online, half the time they tell you the core basics. They don't even mention stuff like reflection, class auto loading, the SPL (Standard PHP Library), etc. The hidden things about PHP that really show its power.
So... here is a quick example using SPL in PHP 5.2 (for best results).
Iterators
When you create an object, would'nt it be nice if you could iterate over the object in a foreach loop? Such as
Select what you want to copy and in doing so you will keep the formatting when pasting it.
It's this kind of stuff people don't know about before they decide to make bad comments about languages like PHP. And these two examples i gave are the tip of the iceberg using the most basic of interfaces provided by the SPL.
Have you guys ever got annoyed about stuff like this?
You do not have permission to post replies to topics in this board. If you want to join in with discussions and create new topics please register. If you want to register your own free account with us, please click here.