Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Want to write a simple (maybe) program

  1. #11
    4play's Avatar knob jockey
    Join Date
    Jan 2003
    Location
    London
    Age
    41
    Posts
    3,824
    I dont understand why you dont just make a php website with a mysql backend and have people login.

    there are already plenty of cms's you could just edit the design of and your away. it also means that you can sell this to anyone with a web browser which is pretty much everyone these days.

    you would easily be able to add more recipes and everyone would be able to view them rather then pushing out a binary update to everyone every time you want to add a new recipe.

  2. Internet, Programming and Graphics   -   #12
    Quote Originally Posted by optimus_prime View Post
    i'm not sure what way you decided to go, but there are tons of free code dealing with database in all programming languages. just google, there are lots

    as far as i understand, your software has only one table, the recipes one, and that's basic stuff, you can find examples for it in any programming book and on any learning site. just be patient and persistent

    if your recipes are unsorted, maybe it would be good start to create database first and deal with the ui later. design it on paper first (like "it would have following fields: index recipe nutritional value type of diet"...) than transfer it into access or sql - whatever you feel more comfortable with. i advise you to use access because it's pretty simple and well explained, and your database is small and won't choke it. than use some visual tool to create ui (like delphi, visual studio or whatever) and connect it to database. every step of these basic operations will surely be explained in the help of apps you decide to work with.
    Thanks optimus. I'll stick with it as I do find it interesting and would like to learn a bit of programing. Thanks again for your help and advice.

    You too 4play. I have considered just doing a website, and I might. Thanks

  3. Internet, Programming and Graphics   -   #13
    Snee's Avatar Error xɐʇuʎs BT Rep: +1
    Join Date
    Sep 2003
    Location
    on something.
    Age
    44
    Posts
    17,985
    Quote Originally Posted by optimus_prime View Post
    as far as i understand, your software has only one table, the recipes one, and that's basic stuff, you can find examples for it in any programming book and on any learning site. just be patient and persistent
    I don't know if just having one table is a good idea if he wants to run searches on ingredients. It might be better to store ingredients on their own table as there are more than one ingredient to one dish and not a fixed number of ingredients in dishes.

    EDit: It is possible to do it with one table, obviously, by checking for a substrings in the ingredient field, or whatever. But I might do it with more tables. Maybe one table for dishes, with comments about each dish, like what they are good for or whatever, diet perhaps, then one table for ingredients, possibly with a nutritional value per gram of that ingredient, and one table linking the two other tables, with one row for each combination of dish and ingredient, with the amount of the ingredient in grams. If I needed the nutritional value of each dish I'd calculate it from the sum of the nutritional values of its ingredients. If he wanted to be very specific about what was in each ingredient I might split things up even further.
    Last edited by Snee; 07-29-2007 at 09:48 PM.

  4. Internet, Programming and Graphics   -   #14
    Barbarossa's Avatar mostly harmless
    Join Date
    Jun 2002
    Location
    Over here!
    Posts
    15,180
    I agree with Snee. Nice systems design

  5. Internet, Programming and Graphics   -   #15
    optimus_prime's Avatar Guardian BT Rep: +2
    Join Date
    Feb 2007
    Posts
    395
    Quote Originally Posted by Snee View Post
    EDit: It is possible to do it with one table, obviously, by checking for a substrings in the ingredient field, or whatever. But I might do it with more tables. Maybe one table for dishes, with comments about each dish, like what they are good for or whatever, diet perhaps, then one table for ingredients, possibly with a nutritional value per gram of that ingredient, and one table linking the two other tables, with one row for each combination of dish and ingredient, with the amount of the ingredient in grams. If I needed the nutritional value of each dish I'd calculate it from the sum of the nutritional values of its ingredients. If he wanted to be very specific about what was in each ingredient I might split things up even further.
    of course you're right, and he could also add separate table for diets too
    in the end that all depends on the data available to the op, so that's probably the major thing that will guide his design

  6. Internet, Programming and Graphics   -   #16
    Is there a particular book that anyone would recommend for someone wanting to write code? How about one of the Idiot's books?

  7. Internet, Programming and Graphics   -   #17
    4play's Avatar knob jockey
    Join Date
    Jan 2003
    Location
    London
    Age
    41
    Posts
    3,824
    depends what sort of code you want to write?

  8. Internet, Programming and Graphics   -   #18
    I'm thinking C+ but, again, this is something I'm new at and do not have a full understanding of.

  9. Internet, Programming and Graphics   -   #19
    4play's Avatar knob jockey
    Join Date
    Jan 2003
    Location
    London
    Age
    41
    Posts
    3,824
    c++ primer is well worth a read. just have a look on torrentspy for it.

  10. Internet, Programming and Graphics   -   #20
    Thanks. Looks better than some of the tutorials I have been reading.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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