Welcome Guest, Not a member yet? Register   Sign In
css as plugin
#10

[eluser]xwero[/eluser]
jdfwarrior there are different ways of doing things but every way has its consequences and this is what should be considered.

The reason why i think extending classes is the last option is because if you do something wrong in the extended class this can have effect on the parent class. Which means the debugging is going to be more difficult.
Another reason is if you extend classes quickly it's likely app specific methods are going to appear in extended classes making the extended class less of a candidate for reuse, which could mean you copy paste the methods you need every time to the extended class in all the different apps.

And as i mentioned earlier you have to consider what the method does too. Not every function needs to go in an extended class. I get the feeling some people use extended classes as another way to autoload methods.

I think Dam1an knows what he's doing but there are a lot of posts from him where i see him extending classes, this could give the impression extending classes is good for everything.


Messages In This Thread
css as plugin - by El Forum - 04-29-2009, 03:20 AM
css as plugin - by El Forum - 04-29-2009, 03:37 AM
css as plugin - by El Forum - 04-29-2009, 03:38 AM
css as plugin - by El Forum - 04-29-2009, 03:40 AM
css as plugin - by El Forum - 04-29-2009, 03:42 AM
css as plugin - by El Forum - 04-29-2009, 03:46 AM
css as plugin - by El Forum - 04-29-2009, 04:20 AM
css as plugin - by El Forum - 04-29-2009, 04:28 AM
css as plugin - by El Forum - 04-29-2009, 06:33 AM
css as plugin - by El Forum - 04-29-2009, 07:11 AM
css as plugin - by El Forum - 04-29-2009, 07:18 AM
css as plugin - by El Forum - 04-29-2009, 07:19 AM
css as plugin - by El Forum - 04-29-2009, 07:27 AM
css as plugin - by El Forum - 04-29-2009, 07:34 AM
css as plugin - by El Forum - 04-29-2009, 06:41 PM
css as plugin - by El Forum - 04-29-2009, 07:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB