1
In the last few months, as I was working on converting modules to the new Admin GUI, I was surprised how many different ways people used to solve similar problem, instead of just reusing somebody's else code.
So in several modules now I've implemented a method to change "status" of something by clicking on the icon in the table (e.g. to make it visible or not). I found the method in one of Trabis' modules. There is also a way to do it in the Core and I'll have to look into this to see if it is better.
The key is to find a cool method, document it, and then reuse it within our XOOPS community. And if we find something better, communicate it, so we all can improve it in our modules.
I documented it in
this little paper. This is just a "quick & dirty" way to show what could be done, and hopefully start a way for our community to share cool ideas for reusable code.
Please provide a feedback about this method, as well as the paper itself.
What other cool "patterns" or "best practices" do you see in XOOPS Modules? Or somewhere else, that we should implement in XOOPS?
I still hope that we'll finally have a Documentation Team that could take those kind of things and set them up on our Documentation Wiki. There is a lot of work to be done to clean up our Wiki and make it more user-friendly. Any volunteers?