stuffradio Posted September 2, 2008 Share Posted September 2, 2008 I'm starting a forum from scratch. I want to make it lightweight, and easily extensible. Can you tell me which Design pattern you'd use to make a pattern and why? I'm not making this for anything else, just a forum. I was going to help modify an old forum project that is now dead... but looking at the code it's very sloppy, very much procedural and hard to modify because you have to do a bunch of stuff in each page. This defeats the purpose IMO of a nice open source forum because you need to learn its structure line by line before being able to add or remove to the code. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted September 2, 2008 Share Posted September 2, 2008 well you are going to need to know somehwat about something's structure before you start to use it. I have rewritten my framework so that it uses functions that are all customizable and grantable to users. And each function either displays or updates the site in some way (or both) So you really can start doing something with basic forum functions (add topic add board add thread reply to thread) and then down the road someone else could come in and add additional functions or modify existing functions to allow new things. Its still procedural but flexible. Quote Link to comment Share on other sites More sharing options...
keeB Posted September 2, 2008 Share Posted September 2, 2008 I don't really understand your question. In any complex system a lot of patterns will show up. Quote Link to comment Share on other sites More sharing options...
stuffradio Posted September 3, 2008 Author Share Posted September 3, 2008 I will be looking over some things... I guess the question really is, is using something like the MVC pattern too much for making a simple discussion board? Should I just be using different design patterns for different aspects of the website? Quote Link to comment Share on other sites More sharing options...
Mchl Posted September 3, 2008 Share Posted September 3, 2008 MVC is never too much. Quote Link to comment Share on other sites More sharing options...
keeB Posted September 3, 2008 Share Posted September 3, 2008 I think the MVC pattern fits nicely with a forum/discussion board. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.