Wednesday, May 22, 2013

Re: How many Plug-ins Is Too many

As always it depends;).

Look at it from maintainance point of view and separation of code / reusability (so hint for packaging functionalities in plugins).

If its separate I would put in plugin (obviously ContentManager, GalerryManager,etc.) some common/base functionalities can be packaged as one plugin (lets say: sluggable, cacheable, utils behaviors, ets in one, compresors in second).

If speed is your concern: use APC and caching, integrate loose assets to one (CSS, JS), etc.

Comparing Plugin site to One bag - I think that there will be some overhead for loading plugins, so One bag has a small +, but anyway all your functionalities will be divided in separate classes/files so still overhead for loading associated files for helpers,models etc will be comparable.

Its from my point of view and I don't remember now how it is internally handled by Cake and how big is plugin overhead.


On Wednesday, May 22, 2013 8:57:50 AM UTC+2, advantage+ wrote:

I guess the question already will depend on the size / scale of the site.

But with everything moving towards packaging components / helper and such as plugins is there a better way or does it really matter?

 

Bootstrap / facebook / twitter / js compressor / css compressor / UserManger / ContentManger / SeoManager / ContactManager / GalleryManager / BritaPurifirer / LESS / Sluggable / Cacheable

 

Just seems like a lot to load. Then on demand ones like Upload / Cropper / Publisher………I can go on all night.

 

Is there a best practice? Most of these run universally and required everywhere so it's not so much a pick and choose when to load them.

 

But if you created a site with no plugins for example and have say the mentioned above ones as straight controllers / models in the respective directories would it be the same thing?(would not do that obviously)

Is there an overhead to deal with or does Cake treat it as if was a regular model / controller as if it was sitting in the model / controller folders?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: