Happy code roll-out

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Happy code roll-out

Post by nielsene »

Isn't it a wonderful feeling when you finally move your latest development version over to your live web site and everything works :) (Course I'll likely have bug reports waiting in the morning, but everything seems to be working on my new site :) )
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

I basically faint when I see that my 1000 line code turns into 2-3 lines of text on the client-side. ;)
Image Image
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Hmm lets see what that check equates to on my site:
index.php: 62 lines
includes used by index.php: 3100 lines (out of 14K)
resulting page served: 70 lines, with only a few sticking slightly past 80 characters

Most "real" pages are about the same source file length, but use a greater portion of the includes and generate much longer pages. I try very hard to make sure that both source and served php/xhtml are nicely indented,
not wrapping, and commented. Typically my html comments are used to label what php code produced the output something like
<!-- begin HTMLDisplay::userBox() -->
<!-- <caller provided comment> -->
output html
<!-- end HTMLDisplay::userBox() -->
as well as a few more mundane comments.
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post by JPlush76 »

can we see it eric? or is it top secret? 8O
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

The site's not exactly a secret, but its not exactly that interesting either, unless you are running/registreing for a ballroom dance competition. I'll provide links after explaining the "vision" of the site.

Its a collection of different tools used to assist in the planning and running of ballroom dance competitions. A arbitrary number of competitions will be hosted at any given time at different stages of planning. The average user, who only wants to register for a competition, does not need a login at present (this has some drawbacks, but has been ok in the first two beta tests). A person on the planning staff of a competition, or managing a whole team of registrants, needs an account to reach the privileged regions of the site.

Currently only one tool is near completion, the tool used for on-line registration -- codenamed "SlidingDoors." Competitions being hosted by me will typically link to their competitions SlidingDoors main page, bypassing all the top level stuff for their registrants.
You can see a reference/ demo site. The demo site is fully functional, but i have turned off some of the backend cron jobs so that stats pages will not get rebuilt on database updates. This portion of the site is the oldest and has been in development for a little over a year, its HTML 4.01 and was designed to work on the troublesome NN4.xx family as the lowest common denominator, so the HTML is a little nasty at times.

The main site is XHTML 1.0 Transitional. My development branch is moving towards Strict+CSS, but that's still underway. This code is only a few weeks old and I'm still working on different layouts. However its really only seen by about 4 people right now and it was more important to get the site up for the three schools I'm hosting this fall than to get that part pretty.
Post Reply