Diet for nerds and computer programmers

Aero Ace biplane

John Walker, the founder of Autodesk, has written an interesting guide on health and weight loss, which is available for free online: The Hacker’s Diet.

Basically, the book focuses on the fundamental mathematical issues associated with weight loss and gain, and describes some useful techniques for transitioning to a lower weight. In particular, the moving average approach to measurement described seems quite valuable, insofar as it helps to separate the ‘signal’ of actual weight from the ‘noise’ of variation in things like water retention. The moving average generates a trend line that seems like it should provide more meaningful guidance than a scatterplot of individual data points, or even a simple curve fit to them.

The book also describes a 15-minute health regimen that ramps up in difficulty and is intended to serve as a minimum level of exercise for life.

The book is quite an unusual one, as health books go. For instance, it endorses frozen microwave dinners as a convenient way to get a predetermined number of calories. It also insists that exercise is not a critical weight loss strategy, and that some degree of suffering inevitably accompanies efforts to move closer to one’s ideal healthy weight. While I am sure people could take exception to this approach, it is good to have variety out there, and encouraging that tools are being created for the ever-larger number of people worldwide that are overweight or obese, and likely to suffer significant health risks as a consequence. Those who don’t want to mess around with Walker’s custom Excel files can use a web-based version of Walker’s approach at PhysicsDiet.com

Author: Milan

In the spring of 2005, I graduated from the University of British Columbia with a degree in International Relations and a general focus in the area of environmental politics. In the fall of 2005, I began reading for an M.Phil in IR at Wadham College, Oxford. Outside school, I am very interested in photography, writing, and the outdoors. I am writing this blog to keep in touch with friends and family around the world, provide a more personal view of graduate student life in Oxford, and pass on some lessons I've learned here.

26 thoughts on “Diet for nerds and computer programmers”

  1. Crockford seems to emphasize exercise a lot more than Walker does, though I don’t think the math supports him. It takes a lot of hours to counteract the effect of relatively small numbers of calories.

    Losing weight is mostly a matter of intentional starvation.

  2. “A wise engineer once said that all systems, regardless of composition, do one of three things: blow up, oscillate, or stay about the same. Once you understand feedback, you know why this must be. If a system blows up, it is governed by positive feedback. If it stays about the same, negative feedback is on the job. If it oscillates, either negative or positive feedback can be in charge. You have to look more closely at the details.

    Feedback doesn’t explain everything, but it explains a great many things.”

  3. “Losing weight is mostly a matter of intentional starvation.”

    Starvation produces temporary weight loss. When the starvation stops, the weight is regained and exceeded. This is sometimes called the yo-yo effect. I am writing about permanent weight loss. If the loss is not permanent, then the dieting is just ineffective self-torture.

  4. Exercise has plenty of other benefits than strictly weight-loss and is essential. For one, it will increase your muscle mass and hence your BMR (ie. Basal Metabolic Rate, the amount of calories you burn at rest) and as a second, it will lower your cholesterol (more specifically raise the good HDL levels so your overall ratio is better). Not to mention, no matter how you slice it, when dieting you burn more than just fat, you are likely losing muscle mass as well, exercise will help counteract that to some extent.

    Now, if you are grossly overweight, diet alone will work, and is actually recommended as physical activity is stressful at extreme weights but its when you get down to that last 30 or so pounds to lose, that diet alone loses its effectiveness (just as exercise alone does… the body adapts and you start getting less results for the same things, thats why change in exercise routine and the odd cheat day in food are valuable, to stop the system from getting complacent).

    Not to mention, when you do lose significant amounts of weight and have been overweight for sometime prior, loose skin will be a problem. At least with exercise (specifically weight lifting) you can sculpt and tone areas to hide it (not completely though…)

  5. Walker’s book explains an interesting theory about why some people find that their weight oscillates dramatically:

    “Oscar has the very same feedback curve as Sam, but his is shifted a little to the right, toward eating too much. One day Sam eats slightly more than he needs, and the next day slightly less. But since feedback keeps him within the range his metabolism can adjust to, Sam’s weight stays the same. When Oscar eats slightly too much, though, he’s pushed immediately into the region where he packs on weight. The next day, like Sam, he may eat less but, since that’s within the flat part where metabolism compensates, he keeps all the weight he packs on whenever he eats a little too much.

    The shift in Oscar’s feedback curve with respect to his body’s need for calories acts as a ratchet; each excess runs his weight up, but equivalent shortfalls don’t burn off the excess weight. Over time, Oscar begins to see the evidence of this on the scale and in how his clothes fit. Having lived with this condition all his life, Oscar knows there’s only one solution: peel off the pounds. So, for the umpty-umpth time he embarks on a diet: perhaps a sure-fire plan that’s worked before, or maybe the current rage all the celebrities are swearing by.”

  6. From The Times
    October 19, 2009

    Exercise? A fat lot of good that is for weight loss
    In the fight against obesity, we’re urged to get off the couch. Yet new research claims that diet is what counts

    In 1932, Russell Wilder, one of the leading obesity experts, lectured the American College of Physicians, saying that his patients lost more weight on bed rest than an exercise regime.

    It’s one of those ha-ha moments of medical history, along with doctors prescribing cigarettes to patients to “clear the lungs”. Now we all know that exercise is the best way to lose weight, in the same way that we all know that our obesity epidemic is a result of Western sloths sitting on our ever fatter bottoms. It’s why chubby will be the new norm, with 90 per cent of today’s children predicted to be overweight or obese adults by 2050, costing UK taxpayers £50 billion. It’s why the most insistent plank of the Government’s anti-obesity drive is exercise. It’s why we look at our pudgy kids and cry “To the playing fields!”, and prescribe them ever more PE. It’s why, every new year, we sigh at our expanding muffin top and resolve to Power Plate it away.

    That exercise is the key to losing our collective weight is something that we know so deep in our cultural guts that to question it would be ridiculous.

    Except that is what the most cutting-edge obesity researchers are now doing. The recent studies show that the benefits of exercise for weight loss have been overstated. This idea is shocking. It goes so far against the orthodoxy that it is not something many can accept. And certainly for governments and the food industry that places them under so much pressure, it is too much to swallow.

  7. “In the 1980s Steve Ward, a professor of electrical engineering and computer science at MIT, described a sure-fire dieting scheme. “All that you need for my diet is graph paper, a ruler, and a pencil,” Steve would explain. “The horizontal axis is time, one line per day. The vertical axis is weight in lbs. You plot your current weight on the left side of the paper. You plot your desired weight on a desired date towards the right side, making sure that you’ve left the correct number of lines in between (one per day). You draw a line from the current weight/date to the desired weight/date. Every morning you weigh yourself and plot the result. If the point is below the line, you eat whatever you want all day. If the point is above the line, you eat nothing but broccoli or some other low-calorie food.

    Steve noted that this could also be called the “Bang-Bang Servo Diet” but that would likely be confusing to non-engineers (see http://en.wikipedia.org/wiki/Bang-bang_control). “

  8. For 10 weeks, Mark Haub, a professor of human nutrition at Kansas State University, ate one of these sugary cakelets every three hours, instead of meals. To add variety in his steady stream of Hostess and Little Debbie snacks, Haub munched on Doritos chips, sugary cereals and Oreos, too.

    His premise: That in weight loss, pure calorie counting is what matters most — not the nutritional value of the food.

    The premise held up: On his “convenience store diet,” he shed 27 pounds in two months.

    For a class project, Haub limited himself to less than 1,800 calories a day. A man of Haub’s pre-dieting size usually consumes about 2,600 calories daily. So he followed a basic principle of weight loss: He consumed significantly fewer calories than he burned.

    His body mass index went from 28.8, considered overweight, to 24.9, which is normal. He now weighs 174 pounds.

    But you might expect other indicators of health would have suffered. Not so.

    Haub’s “bad” cholesterol, or LDL, dropped 20 percent and his “good” cholesterol, or HDL, increased by 20 percent. He reduced the level of triglycerides, which are a form of fat, by 39 percent.

  9. The most famous equation in nutrition is “calories in = calories out.” But the right-hand side of the equation is more complicated than most people realize.

    If you add one 60-calorie cookie to your daily diet, simple math suggests you’ll gain weight for the rest of your life at a rate corresponding to about a pound of fat for each 3,500 calories. But, in fact, as you gain weight, your body has to spend more energy maintaining the new tissue, using up some of the excess calories. A paper published last year in JAMA calculated that the weight gain would level off at six pounds after a few years.

    Unfortunately for dieters, the same mechanism works in reverse when you cut calories. Your body becomes more efficient as you lose weight, and soon stabilizes at a new level. As soon as you resume your previous intake, your weight shoots back up.

    Researchers are trying to identify the subtle but insistent cues that drive how many calories we consume – and their latest results reveal just how complex these factors are.

    Last year, Dr. Chaput published an analysis of data from 537 participants in the Quebec Family Study. He found that a collection of unlikely factors – short sleep duration, emotional eating patterns and low dietary calcium intake – predicted the risk of obesity better than the amount of fat in the subjects’ diets or how much vigorous exercise they did.

  10. At high levels of exercise, numerous studies have found that appetite tends to closely match energy requirements. But this relationship breaks down at lower levels of exercise. If you feed someone a 200-calorie snack early in the day, for example, heavy exercisers will unconsciously adjust their appetite to eat 200 fewer calories over the rest of the day. Sedentary subjects, on the other hand, will eat just as much as they normally would have.
     
    http://www.theglobeandmail.com/life/health/fitness/exercise/fitness-research/sorry-folks-but-you-have-to-diet—and-exercise/article2055780/

  11. The conventional rule for slimming, espoused by both the NIH and Britain’s National Health Service, has the benefit of simplicity: cut 500 calories each day and lose half a kilo (about a pound) a week. Most experts, though, acknowledge that this rule is too blunt as it fails to account for shifts in the body’s metabolism as the kilos pile on. Dr Hall’s model tries to do this. It also accounts for baseline characteristics that differ from person to person. Fat and muscle, for example, respond differently to shifts in diet, so the same intake will have one effect on a podgy person and another on a brawny one. The result (which can be viewed here) is a more realistic assessment of what someone needs to do to get slim.

    According to the old version, for example, abstaining from a daily 250-calorie bottle of cola would lead to the loss of 35kg over three years. Dr Hall’s model predicts an average loss of just 11kg. Furthermore, it also acknowledges that a dieter’s weight will eventually reach a plateau—far more realistic than the old advice, which implied, incorrectly, that weight loss will continue steadily.

  12. Physical activity helps to lower the risk of a wide range of ailments, including heart disease, diabetes, breast cancer and depression. But academics remain sceptical that exercise alone can reverse obesity trends, despite some success stories, because the calories thus spent are often replenished by a bigger meal later, as suggested by the phrase “work up an appetite”. Exercise was once thought to speed up the metabolism, causing more calories to be burned all round. Sadly research suggests that it does no such thing. Most experts now agree that a change in diet is the single most effective way to lose weight.

  13. A CALORIE is a calorie. Eat too many and spend too few, and you will become obese and sickly. This is the conventional wisdom. But increasingly, it looks too simplistic. All calories do not seem to be created equal, and the way the body processes the same calories may vary dramatically from one person to the next.

    Metabolic syndrome can still be blamed on eating too much and exercising too little. But it is crucial to understand why some foods are particularly harmful and why some people gain more weight than others. Thankfully, researchers are beginning to offer explanations in a series of recent papers.

    One type of calorie may be metabolised differently than another. But the effect of a particular diet depends on a person’s genes and bacteria. And that person’s bacteria are determined in part by his diet. Metabolic syndrome, it seems, hinges on an intricate relationship between food, bacteria and genetics. Understand it, and researchers will illuminate one of modernity’s most common ailments.

  14. Long-term weight loss considered nearly impossible

    Here’s a CBC science piece quoting several obesity experts argues that long-term weight loss is almost impossible, saying that (uncited) meta-analyses of weight-loss intervention found that in the 5- to 10-year range, most weight-loss was reversed. According to Tim Caulfield, who holds a Canada Research Chair in Health Law and Policy, this is an open secret in scholarly and scientific weight-loss circles, but no one wants to talk about it for fear that it will scare people off of healthier eating and exercise regimes, which have benefits independent of weight-loss.

    I found the article frustrating. While I am willing to stipulate that the data on long-term weight-loss suggests extreme difficulty, I wish the journalist had found biologists or doctors to discuss the issue, and had cited actual, specific research to support the claims made, which would make it easier to parse the nuances in the piece. It’s not that I think that interdisciplinary lawyers with an undergraduate science background have something to say on this (I am 100 percent for interdisciplinary researchers, especially on complex questions like obesity), and while I think that psychologists like Traci Mann have a lot to say about some dimensions of weight-loss, it would have been great to find out what endocrinologists and other bioscience-types had to say about the phenomenon.

  15. ” For my part, I went from about 250 lbs to about 170 in 2002/3, by eating a very low-carb diet. This morning, I weighed in at 176 lbs. I attribute my sustained weight loss to daily swimming (which I do for physiotherapy for chronic back pain) and a moderate-carb diet, as well as a two-day-a-week 600 calorie fasting regime.

    Which is to say, it’s a ton of work to stay where I am, and I know from past experience that if I skip swimming for a few days, or let myself go nuts on carbs for more than a day or two, or skip fasting-days (which aren’t really fasting — just very low-calorie days) that my weight creeps up. I pretty much never eat without making a complex (and tediously unwelcome) calculation about what I’m about to consume, and I often experience guilt while eating “bad” food and shame afterwards.”

  16. To Lose Weight, Eating Less Is Far More Important Than Exercising More – NYTimes.com

    Think about it this way: If an overweight man is consuming 1,000 more calories than he is burning and wants to be in energy balance, he can do it by exercising. But exercise consumes far fewer calories than many people think. Thirty minutes of jogging or swimming laps might burn off 350 calories. Many people, fat or fit, can’t keep up a strenuous 30-minute exercise regimen, day in and day out. They might exercise a few times a week, if that.

    Or they could achieve the same calorie reduction by eliminating two 16-ounce sodas each day.

  17. Michael Graziano, a psychologist, lost 50 lbs in 8 months by experimenting on himself to see how different dietary choices affected his feelings of hunger, reasoning that the major predictor of weight control isn’t calories consumed versus calories burned — but the extent to which your unconscious mind exerts pressure on you to eat more and exercise less.

    Graziano concludes that the three major tactics for weight loss actually make it harder to limit the “hunger mood”: caloric restriction (which kicks your hunger into high gear); low fat diets (because fat produces feelings of satiety) and high-carbs (which make you hungrier, and which are almost all that’s left if you eliminate fats).

    In the end, Graziano ate a moderate fat, low carb diet without any caloric restrictions: so long as he stuck to foods that met those two criteria, he could eat as much as he wanted.

    “In some ways, the hunger system is like the breathing system. The brain has an unconscious mechanism that regulates breathing. Suppose that system got shut down so that it was up to you to consciously control your own breath, adjusting its rate and depth depending on factors such as blood oxygen, carbon dioxide level, physical exertion, and so on. What would happen? You’d die in about 10 minutes. You’d lose track of the necessities. The intellectual, conscious mind is not really good at these matters of regulating the internal environment. It’s better to leave the job as much as possible to the dedicated systems that evolved to do it. What you can do with your conscious mind is to set the general parameters. Put yourself in a place where your automatic systems can operate correctly. Don’t put a plastic bag over your head. Likewise, don’t eat the super-high death-carb, low-fat diet. Don’t micromanage your brainstem by counting every calorie. You might be surprised at how well your health self-regulates.”

    https://boingboing.net/2016/01/29/hunger-is-a-mood-the-psycholo.html

  18. What happens when the winners of reality show The Biggest Loser go home? Researchers followed a set of contestants for 6 years and came to a disheartening conclusion: losing weight lowers your metabolism (possibly permanently) and increases the hormones that make you hungrier. (SLNYT)

    Dr. Ludwig said that simply cutting calories was not the answer… “For most people, the combination of incessant hunger and slowing metabolism is a recipe for weight regain — explaining why so few individuals can maintain weight loss for more than a few months.”

    http://www.metafilter.com/159126/Its-not-about-willpower

  19. “Researchers knew that just about anyone who deliberately loses weight — even if they start at a normal weight or even underweight — will have a slower metabolism when the diet ends. So they were not surprised to see that “The Biggest Loser” contestants had slow metabolisms when the show ended.

    What shocked the researchers was what happened next: As the years went by and the numbers on the scale climbed, the contestants’ metabolisms did not recover. They became even slower, and the pounds kept piling on. It was as if their bodies were intensifying their effort to pull the contestants back to their original weight.

    Mr. Cahill was one of the worst off. As he regained more than 100 pounds, his metabolism slowed so much that, just to maintain his current weight of 295 pounds, he now has to eat 800 calories a day less than a typical man his size. Anything more turns to fat.”

  20. Slower metabolisms were not the only reason the contestants regained weight, though. They constantly battled hunger, cravings and binges. The investigators found at least one reason: plummeting levels of leptin. The contestants started out with normal levels of leptin. By the season’s finale, they had almost no leptin at all, which would have made them ravenous all the time. As their weight returned, their leptin levels drifted up again, but only to about half of what they had been when the season began, the researchers found, thus helping to explain their urges to eat.

    Leptin is just one of a cluster of hormones that control hunger, and although Dr. Hall and his colleagues did not measure the rest of them, another group of researchers, in a different project, did. In a one-year study funded by Australia’s National Health and Medical Research Council, Dr. Joseph Proietto of the University of Melbourne and his colleagues recruited 50 overweight people who agreed to consume just 550 calories a day for eight or nine weeks. They lost an average of nearly 30 pounds, but over the next year, the pounds started coming back.

    Dr. Proietto and his colleagues looked at leptin and four other hormones that satiate people. Levels of most of them fell in their study subjects. They also looked at a hormone that makes people want to eat. Its level rose.

    “What was surprising was what a coordinated effect it is,” Dr. Proietto said. “The body puts multiple mechanisms in place to get you back to your weight. The only way to maintain weight loss is to be hungry all the time. We desperately need agents that will suppress hunger and that are safe with long-term use.”

    “We eat about 900,000 to a million calories a year, and burn them all except those annoying 3,000 to 5,000 calories that result in an average annual weight gain of about one to two pounds,” he said. “These very small differences between intake and output average out to only about 10 to 20 calories per day — less than one Starburst candy — but the cumulative consequences over time can be devastating.”

    “It is not clear whether this small imbalance and the resultant weight gain that most of us experience as we age are the consequences of changes in lifestyle, the environment or just the biology of aging,” Dr. Rosenbaum added.

Leave a Reply

Your email address will not be published. Required fields are marked *