Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Support > php issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-12-2007, 02:24 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default Planning to fail or failing to plan or something like that....

I know that there aren't too many coders on this forum but if you do code - even of you just have a dabble now and again - I'd be interested in hearing how you go about it.

That doesn't sound too clear but what I'm interested in is whether anyone uses a particular methodology when they start a project e.g. do you 'design by comment', scribble stuff on paper, dive in with just a rough outline in you head? Or do you/have you followed a more structured method like extreme programming?
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #2 (permalink)  
Old 10-12-2007, 02:30 PM
Dan's Avatar
Dan Dan is offline
Guru
 
Join Date: Aug 2007
Location: England, UK.
Posts: 686
Default

I basically just store everything up-top in my brain although if i need to write something down i'll notepad it.
__________________
Webhosting.UK.com || cPanel VPS Hosting || Reseller Hosting || Support System || Billing System

Sales: 0808-262-0855
Support: 0800-612-8725
International: +44 191 303 8191
Reply With Quote
  #3 (permalink)  
Old 10-12-2007, 02:57 PM
Senior Member
 
Join Date: Jul 2007
Posts: 132
Default

For programming you do need a plan and most of mine involve databases and php (or perl)

I usually am too lazy to write the create tables script as creating the tables and how they interact in phpMyAdmin usually helps me focus what I need.

I then write the connectors (and test they work)
I then write a script outline by comments of what I need in the way of functions

I then write the controller fro the functions a bit at a time, starting with checking usernames /pass and validating any user data etc.

I then fill in the blanks where the comments have noted I need a function.

Three things to remember: Test, test and test again!

If you test as it builds you will find it easier than trying to test whole scripts.

And remember echo is your friend
Reply With Quote
  #4 (permalink)  
Old 10-12-2007, 03:06 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

I like a good var_dump myself but thanks(both) for you replies. Personally I've tried Extreme Programming, and Test Driven Development and in work we use a kind of bastard hybrid of the two. I have a weird kink for engineering techniques so its always nice to hear of other peoples methods.
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #5 (permalink)  
Old 10-12-2007, 04:07 PM
Senior Member
 
Join Date: Jan 2007
Posts: 939
Default

Until recently I used to 'dive straight in' creating the mysql table structure first and then creating the scripts to insert and manipulate the data.
But now i use pen and paper first to create an overview, then write down all the pages i will need, and then add comments to each page. I don't comment on the actual php scripts themselves although i should but the paperwork is my reference
__________________
West Dorset Community
Reply With Quote
  #6 (permalink)  
Old 10-12-2007, 09:03 PM
Administrator
 
Join Date: Mar 2006
Posts: 1,702
Default

Our developers had similar problems earlier as they failed to complete some products that we needed to offer turnkey reseller hosting service.

This was quite frustrating as I had absolutely no knowledge of development / Programming and getting things managed to have owned products appeared to be impossible.

Finally I recalled something that was taught in School which is "Algorithm" & "Flowchart"

I made them write Algorithm and Flowchart and submit that to me and then got them to proceed step by step. Results are positive and we will have a billing system as well as livechat software launched for our Resellers for free of cost by the end of this year
__________________
Web Hosting UK - ASP MSSQL Hosting - cPanel Linux Hosting
AIM : webredback || msn : andrew @ webhosting.uk.com
Toll Free : 0808 262 0855
Reply With Quote
  #7 (permalink)  
Old 10-13-2007, 05:37 AM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

Can't remember the last time I saw a flowchart as such - your sure they didn't just scribble something down to keep you happy

re: commenting code Jon I don't write as many as I should but I believe in 'self-documenting' code. I write API comments for classes and methods but I think that if you use sensible variable names and lay your code out neatly then it should be pretty obvious what it does.

So has anyone ever felt the need to use UML? Or do you think that some of the more formal methods/techniques are overkill for Web dev?
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #8 (permalink)  
Old 10-13-2007, 08:54 AM
Senior Member
 
Join Date: Jan 2007
Posts: 939
Default

Quote:
So has anyone ever felt the need to use UML? Or do you think that some of the more formal methods/techniques are overkill for Web dev?
Way over my head i'm afraid. My knowledge stops at the php door. As per other thread, I am trying Zend as I type and maybe that will lead to more complex modeling, don't know.

Slightly related : I did dabble in Flex for a couple of weeks on your recommendation, and really enjoyed it, but found no real uses for it at the present time as simple applications that i created were in the region of 300Kbs.
I was looking at Eclipse and that maybe something worth getting into from my perspective
__________________
West Dorset Community
Reply With Quote
  #9 (permalink)  
Old 10-13-2007, 11:06 AM
Administrator
 
Join Date: Mar 2006
Posts: 1,702
Default

Quote:
Originally Posted by kev woodman View Post
Can't remember the last time I saw a flowchart as such - your sure they didn't just scribble something down to keep you happy
Your are right

They did it just for the sake of doing it, but for someone who needs to get work done from developers has no other way to give guidelines and suggest changes.
__________________
Web Hosting UK - ASP MSSQL Hosting - cPanel Linux Hosting
AIM : webredback || msn : andrew @ webhosting.uk.com
Toll Free : 0808 262 0855
Reply With Quote
  #10 (permalink)  
Old 10-13-2007, 03:09 PM
Dan's Avatar
Dan Dan is offline
Guru
 
Join Date: Aug 2007
Location: England, UK.
Posts: 686
Default

When i'm developing a project i usually initialize a Gantt chart in excel which i can then pinpoint out the tasks i need to complete.
__________________
Webhosting.UK.com || cPanel VPS Hosting || Reseller Hosting || Support System || Billing System

Sales: 0808-262-0855
Support: 0800-612-8725
International: +44 191 303 8191
Reply With Quote
  #11 (permalink)  
Old 10-13-2007, 10:21 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

Actually Admin there are lots of ways that you can manage programming teams and a lot of software engineering methodologies are designed to do just that.

Personally I think traditional software engineering fails when applied to Web Dev (my thesis was on this) but it doesn't fail completely. You could try looking up test-driven development or extreme programming. Both require the programmers to get constant feedback from the stakeholders (in this case you).

Eclipse is well worth learning Jon. It can seem a bit over the top for PHP but its so configurable and powerful that after a while you can't imagine coding without it. I temporarily lost my Eclipse workspace the other day and damn near cried as hard as I did tonight when France lost
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:00 AM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum