If I'm taking this the right way.... (aimed at froobe)
It doesn't matter who is reading your code or where it's implemented, it should ALWAYS be modular. When you end up with pages and pages of code in one or two files you're doing something terribly wrong...
I don't think he means modules in the sense of Python, Ruby, etc. modules but rather he has the standard implementation of some code and then people can install addons that modify the original implementation. If I were doing this I'd use the observer pattern and use the factory pattern to create the appropriate observable classes and add the observers from the addons (could parse some xml file or something to get what observers in an addon need to be added to what class)
Hmm, I think I need to read in this a little, thankfully I just got a book on classes and objects and it's got a massive section(s) on design patterns.
Chippiewill.
From what I comprehend he wants a "modular" system which is similar to the way vBulletin does hooks. Yes, you should code modular systems but when you're loading your own code into your own code why not just put the normal code there? Who says the core can't be edited?
blob
I didn't realise people got so stressed about other people trying to help. Wasn't like I was insulting you, only just a different way to do it? Jesus Christ.
blob
It wasn't a different way of doing it, you were basically telling me not to do it.
Chippiewill.
Want to hide these adverts? Register an account for free!