Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old June 10th, 2002, 07:14 PM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: This should make things interesting

Well, thanks a lot. Just eliminate a part of the challenge, why don't you?

Anyhow. very messy way of doing it.. yuck yuck. no scalability there whatsoever, very "patched" code.. where do you initialize $mazes? it'll spew out notices..

(sorry to be so condescending, but showing competition code is not exactly a very sporty thing to do).

Reply With Quote
  #2  
Old June 10th, 2002, 07:15 PM
lostzen lostzen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 6 lostzen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: This should make things interesting

why would you post this?

Reply With Quote
  #3  
Old June 10th, 2002, 07:19 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
This should make things interesting

php Code:
Original - php Code
  1.  
  2. removed


Should work according to spec, i dont think it handles double blank lines to well though.

Reply With Quote
  #4  
Old June 10th, 2002, 07:38 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: This should make things interesting

CmdrDats: On the contrary, it shows no error messages regarding $mazes. I am interested in why you consider this code 'patchy','yucky' and 'unscalable'.

lostzen: why should it be a bad thing to share code during a competition. My primary goal in developing for these competitions is to increase my knowledge of php, and general CS abilities. If my post inspired one more person to participate, and or garnered commentary on itself, who has lost anything?

Reply With Quote
  #5  
Old June 10th, 2002, 08:02 PM
lostzen lostzen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 6 lostzen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: This should make things interesting

I understand your point, I just think it would be better to post solutions (even partial solutions) after the contest has ended. Then we could look at each others code and coment on it.

I think people learn best by trial and error. If they try and come up with their own solution first I believe that they will learn a lot more than how to cut and paste. Just my opinion

Reply With Quote
  #6  
Old June 10th, 2002, 09:22 PM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: This should make things interesting

hmm, interesting. Got your php setup to show all E_NOTICES as well?

Well. If you looked, you would see a switch (ord($variable)) and case 33: . That's just way unstable imho, what happens if suddenly the definition changes? no foresight... Can't remember the rest..

Also, sharing code isn't a big deal if no one else copy & pastes it. the challenge is "file-format" to a degree.. posting a function that reads it is a kindof anticlimax doncha' think?

Reply With Quote
  #7  
Old June 10th, 2002, 09:56 PM
diclophis diclophis is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Tampa. FL, USA
Posts: 35 diclophis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to diclophis Send a message via AIM to diclophis Send a message via Yahoo to diclophis
RE: This should make things interesting

Cmd: Not to be a troll or anything, but i doubt the ASCII definition of a newline is gonna change anytime soon ;). One thing i noticed is that he didnt take into account the possibilty of a user using win32 style text files ie. rn. Matt: should we worry about this, or will all the test files that get sent to our scripts be using the just a newline? Also, a note for the next contest... lets work with some binary files, these text files are getting boring. Maybe like some sort of simple database dbm style index file or something... that would be inetersting.

p.s. if anyone is interested, i managed to get the code before it was removed, so i could send it to you. I timed it and it was slower than the code i had originally written to parse the file.

Reply With Quote
  #8  
Old June 11th, 2002, 11:06 AM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: This should make things interesting

heh, but say you want to handle another character as a newline instead of newline (ie. "!")? I just tend to think "scalable and flexible", ie: the style of newline (rn, n or r) should be handled automatically in a well written function..

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > This should make things interesting


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT