Coding a random generator
July 26, 2014 3:35 PM Subscribe
I'd like to create an online idea generator but have no coding knowledge. Is there an easy way to do this or do I need to learn a bit of programming? If so which language would be best?
Let's say this generates snack suggestions. User would specify a few options (sandwich/soup/dessert; vegetarian/vegan/omni; one ingredient that has to feature) and they would then receive a suggestion created from a database of variants eg brown bread + cheese and tomatoes + mayonnaise.
Is there anywhere these exist preprogrammed but I could populate with my own variants? Or does it have to be baked fresh?
Thanks!
Let's say this generates snack suggestions. User would specify a few options (sandwich/soup/dessert; vegetarian/vegan/omni; one ingredient that has to feature) and they would then receive a suggestion created from a database of variants eg brown bread + cheese and tomatoes + mayonnaise.
Is there anywhere these exist preprogrammed but I could populate with my own variants? Or does it have to be baked fresh?
Thanks!
Best answer: This is a pretty trivial app. I'd suggest doing it in plain javascript so you wouldn't need any server-side support (using php might require more computer wizardry at the front end than you are prepared to tackle, while with javascript all you need is a text editor and a browser). There are lots of JS tutorials out there.
posted by dis_integration at 4:40 PM on July 26, 2014 [3 favorites]
posted by dis_integration at 4:40 PM on July 26, 2014 [3 favorites]
If you want a general idea generator, go to the halfbakery.com and read someone's random idea.
If you want a recipe list tool, using tools you know already (i.e. a handwritten doc and a set of dice for randomization) is probably the easiest way to go.
It's a trivial app only if you already know a lot of programming. Learning programming is not trivial.
posted by sninctown at 4:52 PM on July 26, 2014
If you want a recipe list tool, using tools you know already (i.e. a handwritten doc and a set of dice for randomization) is probably the easiest way to go.
It's a trivial app only if you already know a lot of programming. Learning programming is not trivial.
posted by sninctown at 4:52 PM on July 26, 2014
« Older Life in a large and wealthy Victorian home | Help me write my essay about Francesca Woodman Newer »
This thread is closed to new comments.
Be aware that using an actual database is both overkill for what you're describing and vulnerable to an important class of attacks called SQL injection (and most of the tutorials you'll find won't show how to protect against it). For relatively small amounts of data, you can do this easily by just storing the information in text files.
posted by Candleman at 4:26 PM on July 26, 2014 [1 favorite]