RE: [PHP] Insult my code!

2009-10-08 Thread Mert Oztekin
Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: Wednesday, October 07, 2009 7:54 PM To: php-general@lists.php.net Subject: Re: [PHP] Insult my code! On Wed, Oct 07, 2009 at 05:34:35PM +1100, Eric Bauman wrote: Hi there, I'm in the process of trying to wrap my head around MVC

Re: [PHP] Insult my code!

2009-10-08 Thread Eric Bauman
related techniques to avoid input problems. About the rest I kinda agree with the proper model controller, rather than just a reader. Regards To: php-general@lists.php.net Date: Wed, 7 Oct 2009 17:34:35 +1100 From: baum...@livejournal.dk Subject: [PHP] Insult my code! Hi there, I'm

Re: [PHP] Insult my code!

2009-10-08 Thread Eric Bauman
On 8/10/2009 5:18 PM, Mert Oztekin wrote: Hi Paul, As I agree some of your thoughts, I want to add my opinion also. Yes the code should work. That is why we earn Money. If it doesnt work, then we are on fire. But things like OOP or MVC weren't invented for a better running code. They are

[PHP] Insult my code!

2009-10-07 Thread Eric Bauman
Hi there, I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to implement a super-tiny MVC framework. I've created some mockups of how the framework might be used based around a very simple 'bank', but I'm trying to get some feedback before I go and

RE: [PHP] Insult my code!

2009-10-07 Thread Mert Oztekin
: Wednesday, October 07, 2009 9:35 AM To: php-general@lists.php.net Subject: [PHP] Insult my code! Hi there, I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to implement a super-tiny MVC framework. I've created some mockups of how the framework might

Re: [PHP] Insult my code!

2009-10-07 Thread David Otton
2009/10/7 Eric Bauman baum...@livejournal.dk: Any thoughts would be much appreciated! One observation. Model isn't a synonym for Database Table - models can be anything that encapsulates business logic. Requiring all your models to inherit from Model is probably a bad idea. -- PHP General

Re: [PHP] Insult my code!

2009-10-07 Thread Eric Bauman
: Eric Bauman [mailto:baum...@livejournal.dk] Sent: Wednesday, October 07, 2009 9:35 AM To: php-general@lists.php.net Subject: [PHP] Insult my code! Hi there, I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to implement a super-tiny MVC framework. I've

Re: [PHP] Insult my code!

2009-10-07 Thread Eric Bauman
On 7/10/2009 7:25 PM, David Otton wrote: 2009/10/7 Eric Baumanbaum...@livejournal.dk: Any thoughts would be much appreciated! One observation. Model isn't a synonym for Database Table - models can be anything that encapsulates business logic. Requiring all your models to inherit from Model

Re: [PHP] Insult my code!

2009-10-07 Thread Martin Scotta
On Wed, Oct 7, 2009 at 8:06 AM, Eric Bauman baum...@livejournal.dk wrote: On 7/10/2009 7:25 PM, David Otton wrote: 2009/10/7 Eric Baumanbaum...@livejournal.dk: Any thoughts would be much appreciated! One observation. Model isn't a synonym for Database Table - models can be anything that

RE: [PHP] Insult my code!

2009-10-07 Thread Andrea Giammarchi
. About the rest I kinda agree with the proper model controller, rather than just a reader. Regards To: php-general@lists.php.net Date: Wed, 7 Oct 2009 17:34:35 +1100 From: baum...@livejournal.dk Subject: [PHP] Insult my code! Hi there, I'm in the process of trying to wrap my head around MVC

Re: [PHP] Insult my code!

2009-10-07 Thread Paul M Foster
On Wed, Oct 07, 2009 at 05:34:35PM +1100, Eric Bauman wrote: Hi there, I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to implement a super-tiny MVC framework. I've created some mockups of how the framework might be used based around a very

Re: [PHP] Insult my code!

2009-10-07 Thread David Otton
2009/10/7 Eric Bauman baum...@livejournal.dk: On 7/10/2009 7:25 PM, David Otton wrote: 2009/10/7 Eric Baumanbaum...@livejournal.dk: Any thoughts would be much appreciated! One observation. Model isn't a synonym for Database Table - models can be anything that encapsulates business logic.

Re: [PHP] Insult my code!

2009-10-07 Thread Paul M Foster
On Wed, Oct 07, 2009 at 09:09:29PM +0100, David Otton wrote: 2009/10/7 Eric Bauman baum...@livejournal.dk: On 7/10/2009 7:25 PM, David Otton wrote: 2009/10/7 Eric Baumanbaum...@livejournal.dk: Any thoughts would be much appreciated! One observation. Model isn't a synonym for

Re: [PHP] Insult my code!

2009-10-07 Thread David Otton
2009/10/7 Paul M Foster pa...@quillandmouse.com: I think this is a bit extreme. It really depends on what's in your parent model class. It could be something really simple, but something you don't want to have to rewrite in every model you code. Thinking that Have you got an example of

Re: [PHP] Insult my code!

2009-10-07 Thread Paul M Foster
On Wed, Oct 07, 2009 at 11:31:58PM +0100, David Otton wrote: 2009/10/7 Paul M Foster pa...@quillandmouse.com: I think this is a bit extreme. It really depends on what's in your parent model class. It could be something really simple, but something you don't want to have to rewrite in