Thread: Result for Hard Contest

  1. #1
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490

    Result for Hard Contest

    congratulations, prelude! great job. your entry was 100 times better than all the other contestants' combined. can anyone guess why?

    because there were no other contestants. oh well. better luck next time.

    i won't bother going through the categories. i found nothing wrong with the entry when i compiled it, except for a type-casting error which could have been avoided if i compiled it in c. one of the fractal patterns generated didn't scale upwards like the others did, but since that was not a requirement anyway, no harm done. all were executed within one second (on my machine, anyway). to see the fractals generated as png files, i've attached the file. (i did attach this file before, so don't bother downloading it if you've already seen it)

    and next, her code:

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    instead of posting the whole thing, i'll just upload her zip as an attachment

  3. #3
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    here's my code for showing the fractal, if anyone's interested.

  4. #4
    Green Member Cshot's Avatar
    Join Date
    Jun 2002
    Posts
    892
    wtg prelude! I would like to see the code for that. I would've entered the contest but didn't know anything about fractals
    I was hoping for the LISP contest.

  5. #5
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    the code is attached as the second zip i posted

  6. #6
    Green Member Cshot's Avatar
    Join Date
    Jun 2002
    Posts
    892
    Kinda sux that all these people voting for these contests and only one person actually does it. Wonder if there's a better way of doing these polls?

  7. #7
    Still A Registered User DISGUISED's Avatar
    Join Date
    Aug 2001
    Posts
    499
    Great Job Prelude. Very nice.

  8. #8
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Well then why are people polling like this...... I think Instead of a poll the webmaster himself should decide a common contest....

  9. #9
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    the webmaster isn't at all involved in this. i assume you meant me.

    in any case, last time people voted for something unpopular was the small RPG idea in the easy contest. i changed it to the next most popular idea, which got two contestants. the most popular contest so far has been the encryption contest.

    one of the reasons i'm automating the process (see the contest design thread for details) is to make each contest expected. the next contest poll is on sunday, and it should start from monday until next monday (one week exactly). then there's the next week to judge, decide, and start the next contest. 2 weeks is a long time, but it's better than what was happening before (which is partly my fault).

    the reason why i'm not simply deciding the contest myself is because it wouldn't be fun. the people should decide the contest they want. it also (ideally) better reflects what the coders out there are capable of. if i chose a hard contest, and only 2 or 3 people were capable of that, it wouldn't be fair to the others.

  10. #10
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788
    hey Prelude, why all the comments?

    Great prog!

  11. #11
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >hey Prelude, why all the comments?
    You say that like it's a bad thing?!

    Comments, when used correctly, are v good. Understanding the syntax of C is dead easy, there's like a million tutorials on how to do that. Understanding the methodology someone has used to implement a program is much harder, and quite often there are no tutorials, as the code is often unique in it's own way.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  12. #12
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >hey Prelude, why all the comments?
    Everyone programs differently, the goal of comments is not to describe what the code does as anyone can learn the syntax of a language. The goal of commenting is to pass the intention of the programmer to the reader. Why did you do this? Why this data structure instead of this one? What's the purpose of this block of code? Why did you go with the simpler/harder/more obfuscated solution instead of so and so? Comments solve the problem of why, not how.

    But I actually didn't use many comments at all, most of the commenting was documenting functions and the rest were used to clarify problematic or hard to understand blocks of code.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Inserting a swf file in a windows application
    By face_master in forum Windows Programming
    Replies: 12
    Last Post: 05-03-2009, 11:29 AM
  2. Need help with basic calculation program.
    By StateofMind in forum C Programming
    Replies: 18
    Last Post: 03-06-2009, 01:44 AM
  3. Promblem with code
    By watchdogger in forum C Programming
    Replies: 18
    Last Post: 01-31-2009, 06:36 PM
  4. Type casting
    By Lionmane in forum C Programming
    Replies: 28
    Last Post: 08-20-2005, 02:16 PM
  5. Output problems with structures
    By Gkitty in forum C Programming
    Replies: 1
    Last Post: 12-16-2002, 05:27 AM