[wp-hackers] WP & MVC
howachen at gmail.com
Sat Feb 24 11:42:42 GMT 2007
Firstly, I think there is no need to port WP to another language,
since PHP is already the most popular web scripting language and will
continue to be. And rewrite to another language will even take more
time then refactoring.
PHP4/5 class level supports, in fact is not that bad, if you look at
codes of another PHP Blog such as LifeType (www.lifetype.net), their
codes are pretty well written, using modren MVC OO approach, I think
WP can learn from that.
My point is: If you are talking about BLOG, what is a BLOG?
in fact, the core functions of a BLOG (post, comment, trackback etc)
are already here, most plugins are just bonus. We could think about
smooth transition from the core first.
On 2/24/07, Martin Sturm <msturm10 at gmail.com> wrote:
> 2007/2/24, Matt Mullenweg <m at mullenweg.com>:
> > Sure, anyone is welcome to, particularly if they think it translates
> > into end-user benefits.
> I think the idea of a class-based implementation of WordPress is
> pretty nice, because it could lead to a much cleaner code base and,
> that would translate in an easier to use API. However, the problems
> you will encounter are obvious. Plugins will break (that can be solved
> by creating some kind of backward compatibility layer, but that is
> ugly and making things only complex).
> However, one can consider refactoring the source over time, and
> transforming it gradually into a class-based, object oriented design.
> I'm not sure if a MVC-approach is the way to go. I think PHP isn't
> very suitable for this approach (at least not without a external
> framework). PHP isn't also a OO-language, which can be an argument
> against a full OO-based implementation. You still keep the native PHP
> functions, which are not object oriented.
> Maybe we should switch to another, OO language? =)
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers