[pLog-svn] Modularize our action/view/dao and templates

Ahmad Saleh ahmadfds at gmail.com
Sat Nov 24 05:12:08 EST 2007


Hi Oscar

First of all, thank you for your interest, and I will be so happy to get any
feedback.

I have just 2 notes:
1) In LifeType, config object initialized at least 25 times for each
request, whatever it's cached or not and I think it will not be affect so
much by caching, so if you can initialize it just one time, you can increase
some of lifetype performance and you will see that.

2) If you can separate between locale settings and locale strings, so when
you initiate a locale object you will just load it's settings, and load
locale strings just when you need, but this is not enough cause you're using
locale strings in controller level, so if you cache the view or not, the
locale strings will be loaded, so I suggest to move the loading of the
locale strings to view and just store strings key array in controller.


Regards,
    Ahmad

On Nov 23, 2007 11:24 PM, Oscar Renalias <oscar at renalias.net> wrote:

> I doubt we're geniuses in here, we're just applying common sense to what
> we do. But thanks for the compliment anyway :-)
> I also had a look at your idea, it looks interesting and has some
> potential. Would you have some time to share with us how your approach would
> be implemented in LT?
>
> Oscar
>
> On Nov 21, 2007, at 12:16 PM, Ahmad Saleh wrote:
>
> Hi Oscar
>
> As you see, it's not exactly completed, just the architecture, and I told
> you, I take some ideas from lifetype (not exactly "some" :P ) and optimize
> it. I like lifetype architecture and I think who's invent it is a  genius.
>
> I will start writing it's documentation (http://wiki.jopdc.com) soon, and
> about the sample application I will add it soon.
>
> About the plugins, in index.php I initiate one object for each system
> class (rather than initiate one more than one) and start with pluginsmanager
> object, cause the classloader, hooksmanager, langsmanager will use it to get
> operations list and plugins hooks and plugins langs.
> after initializing others system objects and before initiate controller,
> it's call autorun method in pluginsmanager, so if you want to add any
> operation or hook at runtime.
>
> there is a sample plugin in System/Plugins dir.
>
> Regards,
>     Ahmad
>
> On Nov 21, 2007 11:11 AM, Mark Wu <markplace at gmail.com> wrote:
>
> > Ming:
> >
> > I personally like to put them into different modules, becasue it is
> > easier
> > to navigate in explorer. :P
> >
> > Mark
> >
> > > -----Original Message-----
> > > From: plog-svn-bounces at devel.lifetype.net
> > > [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Tsz
> > > Ming WONG
> > > Sent: Wednesday, November 21, 2007 2:51 AM
> > > To: LifeType Developer List
> > > Subject: Re: [pLog-svn] Modularize our action/view/dao and templates
> > >
> > > On Nov 21, 2007 2:42 AM, Oscar Renalias < oscar at renalias.net> wrote:
> > > > Wouldn't that be a problem with file systems that are not case
> > > > sensitive? At least my HFS+ partition in my OS X laptop is not case
> > > > sensitive, so this could cause issues.
> > > >
> > > > What is the advantage anyway?
> > > >
> > >
> > > it would be more easy to locate file to view or edit
> > >
> > > and since the class name is the same as the file name, Class
> > > Loader don't have to lower the case the action name everytime
> > >
> > > example such as mediawiki:
> > > http://www.google.com/codesearch?hl=en&q=show:cgkXXFkjkv0:7GlO
> >
> > pJAQNXE&sa=N&ct=rdl&cs_p=http://prdownloads.sourceforge.net/wikipedia/mediaw
> > iki-1.8.3.tar.gz> &cs_f=mediawiki-1.8.3/includes
> > >
> > >
> > > --
> > > Best Regards,
> > > tszming
> > > _______________________________________________
> > > pLog-svn mailing list
> > > pLog-svn at devel.lifetype.net
> > > http://limedaley.com/mailman/listinfo/plog-svn
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://limedaley.com/mailman/listinfo/plog-svn
> >
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://limedaley.com/pipermail/plog-svn/attachments/20071124/bd2ba2db/attachment-0001.htm 


More information about the pLog-svn mailing list