Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 136,067 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,600 people online right now. Registration is fast and FREE... Join Now!




Php Tennis

 
Reply to this topicStart new topic

Php Tennis, can we get a game going?

fyrestorm
10 Sep, 2002 - 06:36 AM
Post #1

D.I.C Lover
Group Icon

Joined: 4 Apr, 2002
Posts: 3,103



Thanked: 2 times
Dream Kudos: 228
My Contributions
ok, so fygar and i were talking, and he wants to learn php, and i thought that the easiest way to learn was to look at code, rip it apart, and put it back together, and then since chris had his genious idea of php tennis, i thought that would be a good way to get fygar introduced to php, so, can we start something?
User is offlineProfile CardPM
+Quote Post

Fygar
RE: Php Tennis
10 Sep, 2002 - 07:04 AM
Post #2

I liek milk!!1
Group Icon

Joined: 28 Mar, 2002
Posts: 4,313


Dream Kudos: 50
My Contributions
*Nods excessivley*
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: Php Tennis
10 Sep, 2002 - 07:28 AM
Post #3

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 14,926



Thanked: 47 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
Sure, I'll add a tennis forum when I get to school in a bit...

It'll be open for PHP Tennis, Photoshop Tennis, and whatever other languages people want.

I think the best way to do the PHP tennis is to write the code, zip it, then upload it to your posts via an attachment... but if you have a better way, let me know... the reason I say zip it is because if there are multiple files, it'll be easier to download a zip than from a bunch of posts.
User is offlineProfile CardPM
+Quote Post

Spider
RE: Php Tennis
10 Sep, 2002 - 08:40 AM
Post #4

Arachnid
****

Joined: 10 Jul, 2002
Posts: 769


My Contributions
just because I think it would be helpful for anyone taking part, or just reading up on php, here's a little advice for everyone smile.gif

1. lay out your code neatly and readably, there are various different guidlines to doing this which often disagree, but my opinion is that if the code is easy to read then it doesn't matter exactly how you've layed it out.

2. when reading code, it helps huge amounts to have an editor that highlights text, I use Crimson editor which is free and very good, and there are others around.
User is offlineProfile CardPM
+Quote Post

kyouto
RE: Php Tennis
10 Sep, 2002 - 10:07 AM
Post #5

D.I.C Addict
Group Icon

Joined: 13 Jun, 2002
Posts: 718

I'm a little confused as to what this 'tenis' deal is all about? blink.gif

Crimson Rules.
User is offlineProfile CardPM
+Quote Post

fyrestorm
RE: Php Tennis
10 Sep, 2002 - 11:18 AM
Post #6

D.I.C Lover
Group Icon

Joined: 4 Apr, 2002
Posts: 3,103



Thanked: 2 times
Dream Kudos: 228
My Contributions
as far as the readiblity of code is concerned i think there should be comments and the code should be tabbed...that's usually what makes it easiest, and as far as an editor is concerned, may i suggest editplus
User is offlineProfile CardPM
+Quote Post

iordy
RE: Php Tennis
11 Sep, 2002 - 06:26 AM
Post #7

New D.I.C Head
*

Joined: 5 Mar, 2002
Posts: 45

Might I be so bold as to post a few suggestions on code and tennis in general:

1) Do you want to play snippet tennis or do you want to build real applications/modules? If it's the later (which I thought was the direction the origional tennis thread took) then you need some kind of approval system before code gets released (what if I make changes and they are worse than the origional or have bugs).

2) A generic documentation system (i.e. perl has pod) so that any modules/code you write playing tennis will have complete documentation embeded with the code. Or a DTD so you can write documentation as XML (in a seperate file) that can be read by a generic parser (it sounds way more complicated than it is). This may not sound important but if you plan to build "real" applications rather than just playing tennis with snippets of code as I have seen on other sites this will come in handy.

3) A utility for storing/archiving/searching/downloading applications and modules (like the CPAN). To do this it would be ideal if (2) had been written as you can read documentation before you download (this should give you an idea of features, version history, methods and functions).

4) A version control system, make sure the variabes $VERSION and $UPDATE are global and at the top of every application, so you dont play tennis with old code.

5) Debugging and Benchmarking modules. Rather than add more functionality dont be afraid to rewrite someones code better, benchmark it, then add in temporary documentation to say why you made the changes. Not that the old code is just plain 'wrong' just that you might know a better way.

6) There is no reason you cant have more than one tennis match going at a time so if the above sounds too complicated for you, start another tennis project with less lofty goals.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 06:48PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month