Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 13, 2009, 07:54 PM   #1
macbooker15
macrumors 6502
 
Join Date: Jan 2008
Location: Hello! I'm over here!
An if list website

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.
__________________
Rooted HTC Evo Shift 4g; NEW 13" Macbook Pro 2.53 Ghz 4gb RAM 500 GB HD
macbooker15 is offline   0 Reply With Quote
Old Jul 13, 2009, 08:27 PM   #2
Cinder6
macrumors 6502
 
Join Date: Jul 2009
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.
Cinder6 is offline   0 Reply With Quote
Old Jul 13, 2009, 08:44 PM   #3
GorillaPaws
macrumors 6502a
 
GorillaPaws's Avatar
 
Join Date: Oct 2003
Location: Richmond, VA
Quote:
Originally Posted by Cinder6 View Post
What about, instead of common if clauses, just common tasks? That'd give it more scope, and it'd probably wind up more useful.
Take a look at Code Beach.
GorillaPaws is offline   0 Reply With Quote
Old Jul 13, 2009, 10:10 PM   #4
autorelease
macrumors regular
 
Join Date: Oct 2008
Location: Achewood, CA
Long "if lists" are usually a sign of bad code. Use switch statements, tables, and other techniques when possible.
__________________
*** -[NSAutoreleasePool autorelease]: Cannot autorelease an autorelease pool
autorelease is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Next List - doubles photos for calendar and background for to do list CornerGuy iPhone and iPod touch Apps 0 Feb 3, 2014 02:38 PM
How to insert a numbered list or bullet list in Note.app on iPad? sza iPad Apps 1 Feb 12, 2013 05:07 PM
List+, a simple todo list + reminder app (promotion codes) bnfan iPhone and iPod touch Apps 12 Dec 24, 2012 03:02 PM
List Buddy 2.4: The best list making app receives a major update Holosynthetic iPhone and iPod touch Apps 0 Jun 13, 2012 12:19 PM

Forum Jump

All times are GMT -5. The time now is 10:00 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC