phpBB + OOP

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Get Involved
Post Reply
djkprojects
Registered User
Posts: 11
Joined: Thu Nov 08, 2012 9:17 am

phpBB + OOP

Post by djkprojects »

Hello,

I was just wondering if you have any plans to rewrite the code in phpBB in OOP fashion anytime soon ?

Thanks
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: phpBB + OOP

Post by Jessica »

Explain what "OOP" is.....
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
Big-Jim
Registered User
Posts: 113
Joined: Mon Jan 31, 2011 3:54 pm

Re: phpBB + OOP

Post by Big-Jim »

I am not sure, but I think it stands for Object Oriented Programming.
User avatar
/a3
Registered User
Posts: 411
Joined: Sun Sep 19, 2010 9:08 am
Location: /dev/random

Re: phpBB + OOP

Post by /a3 »

djkprojects wrote:I was just wondering if you have any plans to rewrite the code in phpBB in OOP fashion anytime soon ?
I haven't had much experience with phpBB's codebase over the past few years but I do know phpBB is already using at least some object-oriented programming.

Also, see this:
https://wiki.phpbb.com/PhpBB4/RFC/Symfony_2

phpBB4 (which is a long way off) will be using Symfony2 and will use more OOP.
$ git commit -m "YOLO"
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: phpBB + OOP

Post by igorw »

For 3.1 most of the new code is using proper classes, interfaces and unit tests. It also uses the Symfony2 DI container and injects dependencies instead of using globals. Most of the legacy code is still spaghetti-driven though.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
Dugi
Registered User
Posts: 1386
Joined: Sun May 25, 2008 5:36 pm

Re: phpBB + OOP

Post by Dugi »

phpBB 3.0+ already uses OOP, but as stated by igorw, future versions will have enhanced OOP usage.
PM me for custom extension pricing / My validated MODs / My MODs in development
djkprojects
Registered User
Posts: 11
Joined: Thu Nov 08, 2012 9:17 am

Re: phpBB + OOP

Post by djkprojects »

Ohhh, just spotted all the replies (didn't tick "Notify")

Yes I'm aware of the OO parts but the majority of the code is still structural and I must say it's very messy. It would be nice if the next release was using MVC and pure OOP - it really would be much easier for contributors and newbies get around the code. Don't you think?

What about introducing hooks for easier mod management and installations ?
User avatar
tbackoff
Former Team Member
Posts: 7064
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: phpBB + OOP

Post by tbackoff »

djkprojects wrote:What about introducing hooks for easier mod management and installations ?
Extensions will be introduced in 3.1.x.
Flying is the second best thrill to cheerleaders; being caught is the first.
Post Reply

Return to “phpBB Discussion”