Modular system design

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
Theory?
Forum Contributor
Posts: 138
Joined: Wed Apr 11, 2007 10:43 am

Modular system design

Post by Theory? »

When PHP 5 came out, a friend of mine who was much more into programming than me at that point tried to roughly explain the design principles behind a modular platform, whereby small modules that performed various functions would "connect" to a core framework that, by itself, has very little functionality.

I wasn't very clear on what he was talking about back then, but now I'm working on a large scale project and I feel like a system designed like that would be ideal.

I spent some time trying to reason out what elements a "core" would contain and how "modules" might be installed, etc.

I assume that the core would contain all the language variables and methods of translating customized markup (like BB Code, etc,) as well as the elements that determine the overall display of the site, things related to the DOM, global methods, global DB calls, XML parsers, and some sort of "Installation" system that allows modules to instruct the core how to display and interoperate with them.

Again, this is strictly guess work. I'm very vague on what the hell he was talking about. Perhaps someone can help me out here?

Thanks.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Not much response because this is a topic that comprises most of the books written about software design. I would suggest searching for "Separation of Concerns" and "N-Tier" for more information on two massive sub-topics.
(#10850)
Theory?
Forum Contributor
Posts: 138
Joined: Wed Apr 11, 2007 10:43 am

Post by Theory? »

I figured I was asking a really stupid and basic question, sorry, but thank you very much for the help.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Theory? wrote:I figured I was asking a really stupid and basic question, sorry, but thank you very much for the help.
No, it's not stupid at all nor is it a basic question.
It's a great question pal. The reason, I think, for the lack of replies is because the question is too general and also since it will take a full book to answer this question in depth.
Theory?
Forum Contributor
Posts: 138
Joined: Wed Apr 11, 2007 10:43 am

Post by Theory? »

Oren wrote:
Theory? wrote:I figured I was asking a really stupid and basic question, sorry, but thank you very much for the help.
No, it's not stupid at all nor is it a basic question.
It's a great question pal. The reason, I think, for the lack of replies is because the question is too general and also since it will take a full book to answer this question in depth.
Or that. Speaking of books, are there any that tackle this topic pretty well?
User avatar
bpopp
Forum Newbie
Posts: 15
Joined: Mon Apr 09, 2007 11:18 pm
Location: Memphis

Post by bpopp »

Code Complete is the best programming book ever written! Kidding, but it is my favorite (and I've read a lot). It's not PHP specific (most examples are from C), but most of the advice and suggestions are applicable to any language. I haven't read the second edition, but I suspect it brings in some object-oriented ideas.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Yeah your question is really general. Object Orientated programming is probably what you are looking for if you want modularisation because that's kind of the main purpose of it.
Post Reply