wrote in message news:2049e48d-5dd3-051b-2564-afeb8c64c...@fleshgrinder.com...

On 5/27/2016 10:35 AM, Tony Marston wrote:
I disagree completely. In a database system there is no rule that says
an object can only hold data from a single row otherwise Martin Fowler,
the author of PoEAA, would not have patterns that hold data from several
rows. When I instantiate one of my table classes it is a valid but empty
object. There are two actions I can perform - inject data from the
client via the $_POST array, or tell it to retrieve data from the
database. This may involve just a single row, or multiple rows. When
reading from the database it may even result in zero rows.


Yes?!? That is how everybody does it.

Except for those who insist on having a separate object for each row.

On 5/27/2016 10:35 AM, Tony Marston wrote:
You are trying to change the language to suit the way that you work
without considering the fact that your way is not the only way and this
change may not suit the way that others work. As far as I can see this
proposal not only does not solve a genuine problem, it adds levels of
complexity that will do nothing but increase the WTF! factor for untold
numbers of programmers who have been happily using the language for years.


Oh come on, this story again?

Yes, again. I (and others) like the PHP language to be kept simple, and we are clever enough to achieve complex things with simple code, not simple things with complex code.

Please, just keep on using PHP in the way
you like it without making use of these new features. Nothing is
changing and if all your problems are solved, good. And please, please
don't start the PHP 5.2 was so much better discussion now

I have never said that PHP 5.2 was better. FYI I have upgraded to each new version as it appears, and I am currently on 5.6. I am not using version 7 yet simply because my main application uses SQL Server, and Microsoft have failed to deliver a driver for version 7. I don't use any of the new features that keep being added (except for the datetime object) simply because I have no use for them. Adding them to my code would not add value to my code, so I don't bother. I don't need typed properties, so I will never use them.

and claiming that we all are incapable programmers.

Where did I say that?

We know it by now. ;)

Yet you still carry on by adding complexity to the language instead of simplicity.

--
Tony Marston


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to