Thread 'Move to a PHP framework?'

Message boards : Web interfaces : Move to a PHP framework?
Message board moderation

To post messages, you must log in.

AuthorMessage
ProfilemyF!SH

Send message
Joined: 16 Jun 11
Posts: 1
United Kingdom
Message 38491 - Posted: 16 Jun 2011, 13:25:23 UTC
Last modified: 16 Jun 2011, 13:26:00 UTC

Hi,

Over the last few weeks I've been looking through the svn trunk and especially at the servers website interface, which allows people to view their work units/task assignment as well as the computers they have working on it.

Looking at the code behind this web interface it became apartment that, over the years many people have made changes to it, using their own coding styles and techniques to generate the page, which made reading and understanding it a nightmare. For example one function call which was fallowed was four functions deep, surly that's slowing the page down, another thing which was picked up was the fact that there are classes which have all their methods set to static, so in reality they are just function which are not utilizing the benefits of using classes.

From this I propose that the web interface to be rewritten using a PHP framework which like Yii. Using a framework like Yii will speed up loading times as well as development as many features are built in (e.g. validation), separate the HTML and PHP into there own sections using a Model View Controller (MVC)design patten, which will enable people to create addons using modules and to change the page layout without sifting through PHP. As well as this, it will allow developers to create clear, easy to understand code and good documentation.

I know that this is a BIG task to undertake as it may involve creating a new database/modifying the database which it turn all mean the application (BOINC Client/Server) may need to be changes (I don't know how much of the database is being used by the application).

So if anyone is interested in helping with this or want to put forward your own thoughts please reply.
ID: 38491 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15550
Netherlands
Message 38496 - Posted: 16 Jun 2011, 15:09:48 UTC - in response to Message 38491.  

Forwarded to the developers. If they haven't answered you here within the next 24 hours, please consider writing the same thing to the BOINC Developers email list, whose address can be found in this post. Registration is needed on this list.
ID: 38496 · Report as offensive
ProfileDavid Anderson
Volunteer moderator
Project administrator
Project developer
Avatar

Send message
Joined: 10 Sep 05
Posts: 726
Message 38499 - Posted: 16 Jun 2011, 18:07:30 UTC

An effort is underway (by 3rd-party developers) to implement BOINC's web features as a Drupal module. We'll see how this goes.

BTW, I don't see any problem either with 4 levels of function call, or with classes having static functions.
ID: 38499 · Report as offensive

Message boards : Web interfaces : Move to a PHP framework?

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.