Jump to content

Forum OOP Design Pattern


stuffradio

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.