Thank you kcott for such a thorough warning of the potential pitfalls...
I hope you can see where this is going. There is no such thing as "will only be used by" or "final version" or anything else absolute like that
Oh yes...I see where that is going.
That's exactly the reason I created the CRM module that I asked for help with back here -> [RFC] Review of module code and POD
Generally I have not been too bad at making code reusable.
There is no such thing as "will only be used by"
Well...I have some boilerplate code (I think that's the right term) which I use on nearly every website. It does the stuff I need for every site but for which the details are site specific. Things like displaying the headers and footers and putting in site wide default titles, descriptions, etc. The framework gets copied to each site and the site-specific values added in. Once that has happened, the code really is of no use anywhere else. If I wanted to recreate it, I'd make another copy of the code without any site values. This is what I mean by a module that will not get reused.
I would abstract all those functions into a generic module which would update all the functionality of all sites. Except I don't think it can be done...or at least I don't think I can do it. Every site has different levels of user tracking from none at all through just checking if the user is logged on all the way to having persistent session cookies linked to our central CRM so different browsers used by the same person get linked and all conversion activity tracked and recorded. The use cases seem to be too diverse to cover with a generic module.
My existing code is slowly being improved as I need to make changes. As part of that process I am looking for places to move similar things into a module.
More so with new code. I have just started working on a new phase of a project where, because of the history of the project, security is likely to be very important. So I am designing abstraction and data hiding into that from the start. Even to the point of only serving Javascript functions to users that have the appropriate privileges.
You've been here for less than a year with a clear appetite for learning and improvement
Thank you for your kind words.
It is certainly my intention to learn and to improve.
In reply to Re^6: Debugging a module that's failing under taint mode
by Bod
in thread Debugging a module that's failing under taint mode
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |