The following will make little sense without a word or two about the background. I have been using my Diet-minder program on a daily basis for over a year now. It takes effort, but I’ve got the process down to a few minutes a day. Second, I did not loose one pound as a result of my recording what I eat. Lets say I was not overweight prior to to loosing 12 pounds, but that I feel more comfortable now that I can see my toes again. I lost these 12 pounds over a period of one and a half months by eating less. About half of what I normally ate. Once I attained my weight goal, I gradually increased my food intake to maintain that weight. If you want to know more about my weight loss experience you can read “My Weight Loss Story.
Tracking what I eat with my Diet-minder program was more a matter of curiosity at first. This is not to say that it doesn’t keep me on my toes as far as caloric intake goes. It does. But at one point I began to wonder if I was eating the right mix of carbohydrates, protein, fats, sodium, fiber, and cholesterol. These things also matter. This is where the program I call Diet-Minder comes in. It tracks not only calories, but also things like carbohydrates, protein, fats, sodium, fiber, and cholesterol. At the end of the day I can see at a glace if I am getting enough or too much of each.
Tracking requires some effort. But once you get in the habit of writing down what you eat, it becomes automatic. I’ve tried a couple of ways to do this, but found the easiest is a steno pad and a small scale. Any scale that measures ounces will do. Mine was an old postage scale. I simply jot down what I eat, and when necessary weigh the portion. I rarely eat out, but when I do, I make the best estimate I can. I never bring a scale to the restaurant.
To store the day's data by parameter to your local storage you must enter a retrival key. This can be any continuous series of characters, but it is suggested that you use the current mmddyy as your key. For example for November 15, 2020 the key would be 111520.
Enter your key Then press Save
To view data for a specific day you will have to enter the key you saved it under. So if you saved your data as suggested by date yymmdd, all you need to do is enter this key, and press the find key.
Enter your key Then press Retrieve
For the data stored with the key
The following results from entering the above data into the program follow:
Data Summary
Calories 1421 Carbs 155 Protein 84 Fat 23 Sodium 982 Fiber 24 Cholesterol 330The Diet-minder program is written entirely in JavaScript and runs locally on your computer. If you are interested in seeing the code, and perhaps modifying it for your particular needs you can right click on this page and scroll down until you see the line The Diet Minder Program. The program starts around line 169 and ends around 1210). Warning. This is not for the faint of heart. However, if you are a JavaScript guru, this should not be a problem. And if you are, please don’t criticize my humble attempt at writing this program.