Hi Marc, I'm trying to start refactoring for Insert/edit section. There are main three scripts to refactor. But before that, I need your suggestion to start coding.
Le 2012-04-30 10:54, Thilina Buddika Abeyrathna a écrit :
Hi Thilina, have you read and understood these three scripts?
A good way of analysing is to use the NetBeans IDE (with PHP support) to follow the execution path and debug at the same time.
On Mon, Apr 30, 2012 at 8:42 PM, Marc Delisle marc@infomarc.info wrote:
Le 2012-04-30 11:16, Thilina Buddika Abeyrathna a écrit :
Good! So, instead of reading the tbl_change.php script, load phpMyAdmin as a project in NetBeans, put a breakpoint at the beginning of tbl_change.php, start execution and watch what happens, line by line, when you try to display a row for editing in phpMyAdmin.
On Mon, Apr 30, 2012 at 8:54 PM, Marc Delisle marc@infomarc.info wrote:
Hi Marc, Do I need to configure NetBeans IDE with wamp server(I'm using wamp server) to debug the project. I already installed xDebug for netbeans. When I try to debug the project it shows nothing in the browser(server).
Le 2012-05-03 10:03, Thilina Buddika Abeyrathna a écrit :
Hi Thilina, I guess you meant that you have installed Xdebug in your WAMP server, not in NetBeans?
Have you followed this? http://wiki.netbeans.org/HowToConfigureXDebug
On Thu, May 3, 2012 at 8:23 PM, Marc Delisle marc@infomarc.info wrote:
Le 2012-05-03 10:56, Thilina Buddika Abeyrathna a écrit :
Well, please don't get stuck with this problem (for which remote help from me is difficult) but go on with your refactoring.
On Thu, May 3, 2012 at 8:35 PM, Marc Delisle marc@infomarc.info wrote:
Ok Marc,
On Thu, May 3, 2012 at 8:37 PM, Thilina Buddika Abeyrathna < thilinaabeyrathna@gmail.com> wrote:
Now I'm looking the code for refactoring and I identified some places which must need the refactoring. But I somewhat stuck with starting. Can you please suggest me a way or places to start.
Le 2012-05-03 12:13, Thilina Buddika Abeyrathna a écrit :
Show us a small code segment which you plan to refactor, and your ideas on what needs improvement.
I am your mentor but you are the one who is supposed to do the job...
On Fri, May 4, 2012 at 1:57 AM, Marc Delisle marc@infomarc.info wrote:
- There is a html form called insertForm in tbl_change.php, in that form there are lot of php, html mix tags. I'm going to seperate this php and implement as several functions. in this form there is a huge for loop also. It should also refactor. other than that there are if statements, loops which are unreadable.
- Before that form there is a if statement(line-162) which is want refactoring. this one also going to refactoring.
Le 2012-05-04 14:35, Thilina Buddika Abeyrathna a écrit :
Thilina, seems fine. Looking forward to see your commits...