An if list website

Discussion in 'Mac Programming' started by macbooker15, Jul 13, 2009.

  1. macrumors 6502

    Joined:
    Jan 19, 2008
    Location:
    Hello! I'm over here!
    #1
    Is there any kind of website or service that provides any kind of database of commonly used if statement lists? For example converting letter grades to GPAs in a home brew grading application? Or assigning each letter of the alphabet to a specific number? Because if there isn't, I'm thinking of starting one. Users would go onto the website and search for a specific kind of if list in a specific language and could get said list and copy into there program. What are your comments or suggestions if i just suck at googling and something like this already exists.
     
  2. macrumors 6502

    Cinder6

    Joined:
    Jul 9, 2009
    #2
    Never heard of one, but wouldn't most of the "common" ones be pretty trivial? Your examples are, at least--especially the second one, because letters already have numbers associated with them :)

    What about, instead of common if clauses, just common tasks? That'd give it more scope, and it'd probably wind up more useful.
     
  3. macrumors 6502a

    GorillaPaws

    Joined:
    Oct 26, 2003
    Location:
    Richmond, VA
    #3
    Take a look at Code Beach.
     
  4. macrumors regular

    Joined:
    Oct 13, 2008
    Location:
    Achewood, CA
    #4
    Long "if lists" are usually a sign of bad code. Use switch statements, tables, and other techniques when possible.
     

Share This Page