Results 1 to 3 of 3

Thread: Coding style opinion wanted

  1. #1
    Insert Coin (Level 0)
    Join Date
    Sep 2004
    Posts
    12
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default Coding style opinion wanted

    This question is for developers only please. Please consider this only within the context of the BASIC language and not programming languages in general.

    How would you rate the coding style of "Craps" from the classic 101 BASIC Computer Games (follow link below)?

    http://www.atariarchives.org/basicga...ge.php?page=52

  2. #2
    Great Puma (Level 12) jb143's Avatar
    Join Date
    Nov 2007
    Location
    St. Louis
    Posts
    4,250
    Thanks Thanks Given 
    5
    Thanks Thanks Received 
    69
    Thanked in
    62 Posts

    Default

    Reminds me of pretty much every BASIC program entered from a magazine from back in the day. I'm pretty sure that "coding style" wasn't really a term back then.
    "Game programmers are generally lazy individuals. That's right. It's true. Don't let anyone tell you otherwise. Since the dawn of computer games, game programmers have looked for shortcuts to coolness." Kurt Arnlund - Game programmer for Activision, Accolade...

  3. #3
    Strawberry (Level 2) ccovell's Avatar
    Join Date
    Apr 2007
    Location
    Japan
    Posts
    554
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    The style is...Okay?

    I think it was written in a way to teach beginners the structure of the program as they were thinking through the logic of the game. For example, variables are declared just before they are needed, rather than all at the start in an initialization subroutine.

    There are a lot of comparisons in a row. I guess it's because different versions of BASIC didn't have the "ON x GOTO" shortcut, so they're trying to maintain compatibility.

    The branches at the end are a little clumsy; the writer only needed to do 2 tests & jumps, allowing the final default condition to fall down. Instead, he did 3 tests and 3 jumps.

Similar Threads

  1. 32X region coding situation
    By dreamcaster in forum Classic Gaming
    Replies: 1
    Last Post: 05-10-2010, 03:34 AM
  2. Wanted: Opinion on Xbox 360 Arcade Sticks
    By Canadianzombie in forum Modern Gaming
    Replies: 2
    Last Post: 10-23-2007, 04:04 PM
  3. Wanted: 2 Player Plug 'n Play Style Systems.
    By Cleatis in forum Buying and Selling
    Replies: 2
    Last Post: 12-17-2004, 04:17 AM
  4. Trade Page Coding
    By DJCapcomBoy in forum Buying and Selling
    Replies: 0
    Last Post: 04-02-2003, 03:57 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •