Forum Index   -   Topic Index
   Core Development
     [Hearing] What benefits does Preload mechanism have?
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
minahito
Posted on: 2010/4/23 12:30
Home away from home
Joined: 2005/10/6
From: Japan
Posts: 398
[Hearing] What benefits does Preload mechanism have?
I am researching benefits of Preload mechanism. Please tell me your opinions.

Preload was prepared as a special method like Linux Preload. I thought this was useful for the following cases:

1) Sharing minority custom easily (via a simply one file or a post of BBS).
1)' 3rd developers can add features to other modules with Delegate.
2) Testing custom code before packing it to a module.

But now, it seems that Preload is used as one of plugin features. I don't feel this is negative, but I have to add appropriate implementation if you hope plugin features.

What benefits does Preload mechanism have?


----------------
minahito
Homepage (poor English )

gigamaster
Posted on: 2010/5/3 16:50
Home away from home
Joined: 2005/12/30
From: Switzerland
Posts: 1227
Re: [Hearing] What benefits does Preload mechanism have?
Actually the preload mechanism is useful to easily extend and custom
XCL and modules. Implement plugin features with U.I. would be great!
^_^


----------------
Xoops Cube Support

MAC OSX - Apache 2.2 - MySQL 5.5 - PHP 5.3
Free BSD - Apache 2.2 - MySQL 5.5 - PHP 5.2

trabis
Posted on: 2010/5/10 22:16
Just popping in
Joined: 2007/11/9
From: Portugal
Posts: 18
Re: [Hearing] What benefits does Preload mechanism have?
Correct me if I'm wrong:

Delegate is inspired in the observer pattern, this means that classes can become observable or observers by using add() or register() methods. The call() method will trigger a speciffic event that observers can respond to. Some times a object is passed as an argument by reference so it can be read/write by the observers. This delegate class is good to attach behavior to a class that could not be predicted while making the class. One problem arises: what code is executed during a request? One class can become observable at any time but observers cannot attach themselves if their classes are not executed.

To solve this problem we have preloads. Preloads allow classes to be loaded in specific parts of the execution process(pre filter, block filter, post filter)

I think that preloads should be used only to push observers and not to execute other logic.

Pre filter, block filter and post filter are not for delegation. You could however, create delegate calls in the controller class(after pre filter, etc) so others can use delegation for their plugin system.

Bandit-X
Posted on: 2010/5/23 10:57
Just popping in
Joined: 2006/1/13
From: UsA - MiChIgAn
Posts: 19
Re: [Hearing] What benefits does Preload mechanism have?
i like how easy it is to use preload to add something like the google analytics script without having to modify your theme.

http://suin.asia/2010/05/02/google_analytics_preload


----------------

Hilaryard
Posted on: 2011/1/19 15:59
Just popping in
Joined: 2011/1/19
From:
Posts: 1
Re: [Hearing] What benefits does Preload mechanism have?
There is no such thing as "forever" for caching - even the user can set their browser to empty the cache upon exit, or manually, or automatically as a FIFO mechanism based on the amount of allocated cache space and memory on the client side....
modern1
Posted on: 2011/1/20 16:28
Just popping in
Joined: 2011/1/20
From:
Posts: 1
Re: [Hearing] What benefits does Preload mechanism have?
Yeah, your right. I've agree with that. Same with my experience. Thanks for that wonderful idea.
john99
Posted on: 2011/4/6 18:48
Just popping in
Joined: 2011/3/29
From:
Posts: 1
Re: [Hearing] What benefits does Preload mechanism have?
It’s good to see this information in your post, I was looking the same but there was not any proper resource, thanx now I Thank to the post.I really loved reading your blog.It was very well authored and easy to understand.
Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 
Activity | Contributions



Who's Online
8 user(s) are online (2 user(s) are browsing Forums)

Members: 0
Guests: 8

more...

Welcome | News | Overview | Documentation | Forum | Tutorialstop
Brasilian | French | German | Greek | Japanese | Korean | Russian | T-Chinese
Powered by XOOPS Cube © 2001-2011 The XOOPS Cube Project