View Poll Results: The contest topic will be:

Voters
21. You may not vote on this poll
  • LISP interpreter (a scripting language, sort of)

    4 19.05%
  • Quiz Machine (write a program which reads in questions and quizzes people)

    2 9.52%
  • Alarm Clock

    6 28.57%
  • Search and Replace (search for a string in a text file, replace with another string)

    3 14.29%
  • HTML Analyser (read html file, output statistical info, like number of links, etc)

    0 0%
  • MP3 Playlist Editor (m3u format)

    1 4.76%
  • Maze Generator

    1 4.76%
  • Redo a common program in a creative way

    0 0%
  • Make a program as obfuscated (complicated) as possible while still doing somethnig

    1 4.76%
  • An accounting program which inputs transactions and journalizes them to a data file

    0 0%
  • A card game, of any type (from Solitaire to Poker)

    0 0%
  • A Slot Machine (aka, a fruit machine)

    1 4.76%
  • Hangman

    0 0%
  • Write a hex editor

    1 4.76%
  • A basic drawing program

    1 4.76%

The fourth contest: choose your topic, one day only

This is a discussion on The fourth contest: choose your topic, one day only within the A Brief History of Cprogramming.com forums, part of the Community Boards category; tomorrow the contest starts, whatever topic is chosen. i'll put up another thread explaining details dual-catfish: i know you asked ...

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

    The fourth contest: choose your topic, one day only

    tomorrow the contest starts, whatever topic is chosen. i'll put up another thread explaining details

    dual-catfish: i know you asked to put up these polls, but these things need to be done immediately (which was sunday).

  2. #2
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    will the contest be only one day long or the poll be only one day long?

  3. #3
    Green Member Cshot's Avatar
    Join Date
    Jun 2002
    Posts
    892
    I'm assuming it's a 1-day poll. Although a lot of the programs on that list can be done in one day.

  4. #4
    Unregistered
    Guest
    I certainly hope that those who are voting for the LISP iterpreter know what is involved; if you do not know what is involved, then I can fairly well guaruntee that you will not be able to complete it.

    Further, about the alarm clock: in the case that such an application is complex enough to be useful (functions in a GUI environment, plays sound through speakers, can run hidden or on system tray), it will be necessarily be tied to a particular platform. Writing multiple versions of the source is not exactly an interesting exercise in cross-platform compatability. Yet if not this, clearly the person who happens to know of or have access to (finances are the limiting factor) the best GUI/sound cross-platform library will be the winner.

    Just some things to consider for those of you who are voting without full knowledge of what will be involved.

    I would like to insert a plug for search/place with the qualification be that scroing will be based upon who best replicates the behavior of grep without using non-language-standard libraries.

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Unregistered, I do understand your concerns on people not understanding what they're getting themselves into, but I thought I'd best reply with a couple of comments:

    >alarm clock - gui/OS specific etc.
    (this is only my opinion I believe that the competition should based on generic (standard) coding, not OS specific stuff. It's easy enough to write a clock program to run in a command line interface. Sure, it won't look pretty, but that's not the point, it's how you write the code that counts. You can gain points by adding features/functionality, like storing alarms in a config file so they can be reused etc.

    It was not my intention that people write full GUI apps, it was more to get people thinking creatively on a smaller scale.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  6. #6
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    Originally posted by moi
    will the contest be only one day long or the poll be only one day long?
    one day poll
    the contest is about a week long. it will end monday evening, midnight, next week. (EST)

    most things here aren't expected to be done with a gui. a simple command line interface will do (unless it's meant to be graphical, like the drawing program. that kind of thing will be discussed if people vote for it)


    i've written a tutorial on lisp for the uninformed.
    http://www.flashdaddee.com/Tutorials/yfperson.html
    it's a fairly simple scripting language. here's an example:
    Code:
    (defun func1 (x) 
      (- x 4)
      (+ x 3) )
    (func1 (- (+ 3 5) (/ 3 7)))
    3 + 5 = 8, 3 / 7 = 3/7
    8 - 3/7 = 7 4/7
    func1 is a user-defined function which adds 3 to whatever x is. the value returned is 10 4/7 (or whatever that is in decimal).
    the last statement in a user-defined function is the value that is returned. func1 ignores (- x 4) because it doesn't really do anything.

    lisp is named lisp because of its list variables and built in lisp manipulation functions. because implementing that would take too much time, list manipulation is not required.

    here is what's required in the lisp interpreter (if voted for):
    • it needs to work with nested lisp expressions, where a single expression is bounded by two parentheses. each expression returns some value
    • you need to create some predefined functions like +, -, *, /, etc...
      you know, the simple stuff.
    • each program needs to be able to define functions like i showed above (using the defun statement). hint: unlike C functions, which does type-checking and other complicated stuff, the defun command should be more like the C #define command.
      so, in other words:
      Code:
      (defun func1 (x) (+ x 3))
      (func1 7)
      this should become:
      Code:
      (+ 7 3)
      which is easy to evaluate.
    • each program should check the number of parentheses to help make sure there aren't any typos. this could be as simple as counting the number of '(', then counting the number of ')', and seeing if the numbers match



    one last thing, not LISP-related:
    if the search/replace program is voted for, you cannot use the string classes with it. that would just be too easy

  7. #7
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    How the hell is the Alarm Clock winning the vote?? Is this so its easy to enter?

  8. #8
    Green Member Cshot's Avatar
    Join Date
    Jun 2002
    Posts
    892
    Well since 6 people voted for the alarm clock, there better be at least 6 people signed up for the contest. I'll be ........ed if there wasn't.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WANTED: Contest Master
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-23-2003, 09:15 PM
  2. Choose the Sixiest Contest Topic
    By ygfperson in forum Contests Board
    Replies: 2
    Last Post: 09-03-2002, 02:02 PM
  3. debug program
    By new_c in forum C Programming
    Replies: 3
    Last Post: 03-18-2002, 10:50 PM
  4. Simplified code
    By soonerfan in forum C Programming
    Replies: 2
    Last Post: 12-05-2001, 02:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21