Slashdot Mirror


User: fractoid

fractoid's activity in the archive.

Stories
0
Comments
4,106
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 4,106

  1. Re:I'm not autistic on Autism: Are Social Skills Groups and Social Communication Therapy Worthwhile? · · Score: 1

    Likewise, the novel The Curious Incident of the Dog in the Night-time is told from the point of view of a 15-year-old boy with Autism-spectrum traits (although the author does not share those traits, so it's not really "an insider's POV").

  2. Re:Eleven Things to Thync On on Mood-Altering Wearable Thync Releases First Brain Test Data · · Score: 1

    I prefer:
    1. Rationalize with your enemy
    2. Maximizing efficiency will not save us
    3. There's something beyond empathy
    4. The data should be a guideline in war
    5. Get your reasoning
    6. Belief and seeing are both oneself
    7. Be prepared to be often wrong
    8. Never say reexamine your reasoning
    9. Naturally, you may have to engage in evil
    10. You can't change human proportionality

  3. Exceptions make it easy to handle fault conditions badly, but no easier (and arguably harder) to handle fault conditions correctly. I was just reading this rant on Old New Thing today about this very subject. If nothing else, the amount of debate on "how to do this easy thing properly" should suggest that exceptions aren't a silver bullet.

  4. I've seen the structure you're describing in a DirectX tutorial (admittedly, back in DX3):

    if (!doFirstStage()) goto cleanup;
    if (!doSecondStage()) goto cleanup;
    ...
    if (!doTenthStage()) goto cleanup;
    printf("woohoo!\n");
    return true;

    cleanup:
    cleanupTenthStage();
    cleanupNinthStage();
    ...
    cleanupFirstStage();
    printf("bugger");
    return false;

    It was actually advised as best practice for initializing the stack of COM objects required to get DX up and running. It's certainly cleaner than:

    if (!doFirstStage()) {
    cleanupFirstStage();
    return;
    }

    if (!doSecondStage()) {
    cleanupSecondStage();
    cleanupFirstStage();
    return;
    }
    ...
    if (!doTenthStage()) {
    cleanupTenthStage();
    cleanupNinthStage();
    // ...
    return;
    }


    The RAII pattern makes this a lot simpler (at least in OO languages), but if you're sticking with C then this "goto failed;" is simpler and probably cleaner.

  5. Re:Unequal application of the law on EFF: Hundreds of S. Carolina Prisoners Sent To Solitary For Social Media Use · · Score: 1

    You really think none of your jokes have ever offended an entire group? Typical stupid AC. :P

  6. Re:Science... Yah! on Science's Biggest Failure: Everything About Diet and Fitness · · Score: 1

    Not a closed system. Even those little sealed terrariums will die if you leave 'em in the dark for long enough.

  7. Re:Science... Yah! on Science's Biggest Failure: Everything About Diet and Fitness · · Score: 1

    First up, your book promo selfie is very impressive! I hope I look as good as you do at your age! I'm not as ripped as you are (proof, since you asked) but I'm fairly happy with myself currently. I eat and drink whatever I want on weekends (last weekend I had rather a lot of red wine on Friday night, an entire pizza to myself on Saturday night, and then another pizza on Monday night, so I'm not exactly some masochistic food nazi), and weekdays I eat whatever I want to, but stay under my energy cap (~6500kj or so). I've just started working out again (20 minutes, 3-4 times a week) after 4 month break thanks to the arrival of our daughter. I think it's fair to say that my approach doesn't take a lot of willpower to maintain a steady weight, and I've maintained this weight for more than three years now so I think it's safe to say it's not temporary.

    If your goal is to slowly trim 12kg over the course of several years (if I'm rightly interpreting your blog post), then eating a healthy diet and exercising six hours a week will obviously do the trick. However, my post was in the context of people who need to "lose a lot of weight". To do that you need to run a significant energy deficit - ~2500kJ a day seems to be a good target. I challenge you to suggest a diet that will allow you to run that kind of deficit without feeling hungry (and thus, requiring willpower). And not just a diet where you don't want to eat more broccoli, but one where you won't be tempted by the chips at the lunch bar. I can have those chips if I want 'em, as long as I don't go over my cap.

    Obesity rates in many first-world countries are due, I believe, to poor health and nutritional education (just witness the flood of replies I've had in this thread saying either "energy balance doesn't affect weight gain/loss" or "energy balance is out of my control") compounded by food that is super tasty but very energy dense and very nutritionally poor, and by food manufacturers pushing ever-bigger portions in a runaway arms race against each other.

  8. Re:"Energy Balance" an overly simplistic view on Science's Biggest Failure: Everything About Diet and Fitness · · Score: 1

    Fair enough, I'm used to kilojoules so I wouldn't be surprised if my calorie numbers are out a bit. I was assuming ~8000kJ a day for an average sedentary adult male. (Incidentally, while Wikipedia more or less agrees with that level, This Australian government website seems to think I should need more like 12k kJ... which seems wrong to say the least.)

    I'm a few inches shorter than you and work out 3+ times a week, and I aim for ~6k kJ on weekdays, and splurge to maybe ~8k - ~9k on weekends, which has kept me at my target weight (plus/minus a couple of kilos) for the past few years now.

  9. Re:Science... Yah! on Science's Biggest Failure: Everything About Diet and Fitness · · Score: 1

    That kind of metabolic disorder does exist, but the numbers I've seen indicate that maybe 1 in 200 people actually have that kind of biological reason for being fat. (Happy to read links to studies with better/more reliable figures?) So while, yes, there are rare people who have a legitimate medical condition, the vast majority of people can lose virtually all of their excess body fat through controlling their energy balance.

    (And while your hunger levels are definitely affected to some degree by hormones, that just means you need more self-control to achieve your desired result. The question wasn't "is it easy and fun to lose weight", it was "does calorie control work" and the answer is a demonstrable "yes".)

  10. Re:"Energy Balance" an overly simplistic view on Science's Biggest Failure: Everything About Diet and Fitness · · Score: 1

    Um, what? Gonna need a citation on that first part. And even if it's true that you only absorb 1/4 of the energy in your food but your body can step it up to 100% as it chooses, that just means you need to cut your energy intake by 80%, not 20%.

    No argument that eating kilojoules as sugar is as bad as (probably worse than) eating kilojoules as fat.

  11. Re: "Energy Balance" an overly simplistic view on Science's Biggest Failure: Everything About Diet and Fitness · · Score: 1

    True. Human bodies are pretty good at absorbing calories in food, and the amount of food you eat still sets the upper limit of the amount of energy you can absorb, but still, fair point.

  12. Re:Science... Yah! on Science's Biggest Failure: Everything About Diet and Fitness · · Score: 0

    No, it really doesn't, because it really is that simple and it does help people.

    Imagine instead of playing a game of football, you just sat down the captain of the Seahawks at a table with a bunch of snacks in front of him. He starts off 2000 points, and each snack he eats makes the other team score a 100 points. If he eats more than 20 snacks, he loses. If he eats less than 20 snacks, he wins. That is literally the game we are discussing, and you're saying that he can't win that game.

  13. Re:Science... Yah! on Science's Biggest Failure: Everything About Diet and Fitness · · Score: 2

    OK, I'll bite. Is there anything in cell biology which violates the laws of thermodynamics?

  14. Re:Science... Yah! on Science's Biggest Failure: Everything About Diet and Fitness · · Score: 3, Interesting

    You're absolutely right that some foods have different effects on perceived 'fullness' and hunger levels for the same amount of energy consumed. And sure, this may make it marginally easier or harder for someone to stay at their target energy intake.

    It doesn't change the fact that, whether you use a patch or you go cold turkey, in order to quit cigarettes you have to reduce the number of cigarettes you smoke.

  15. Re:Science... Yah! on Science's Biggest Failure: Everything About Diet and Fitness · · Score: 3, Informative

    The definition of "portions" is a horrible marketing deception. You get a packet of instant pasta that will just fill a small bowl, and it's labeled as "serves 6". Maybe 6 leprechauns. I think the worst one I saw was a 300mL bottle of fruit juice which was labeled as "1.6 serves". Once you accounted for the actual amount in the bottle it had more kilojoules in it than the same amount of Coke.

  16. Re:"Energy Balance" an overly simplistic view on Science's Biggest Failure: Everything About Diet and Fitness · · Score: 4, Interesting

    It's true that some people burn more energy than others, and that those people can (in fact, must!) eat more to maintain a steady weight. That's what "energy balance" means: energy consumed minus energy used! Maybe you naturally burn 10,000 calories a day. If so, you need to eat less than 10,000 calories to lose weight, and more than 10,000 calories to gain weight. More likely, you burn 2000 calories a day, same as the rest of us, and so you should eat less than 2000 calories a day if you want to lose weight.

    No matter how much you talk about the different ways the body metabolizes food, or all the different ways different peoples' bodies work, you can't change the fact that to lose weight you personally must eat fewer calories than you personally burn. If you eat fewer calories than you burn, you will lose weight. It's a fact.

  17. Re:Start with Stem cells and.... on Telomere-Lengthening Procedure Turns Clock Back Years In Human Cells · · Score: 1

    Maybe in the last 50 years, with modern medicine, and with specific types of cancer, yes. But historically, cancer has been an almost universal death sentence. Also, there's no such thing as "obsolete DNA", only more or less effective DNA as demonstrated by the phenotypes it produces. If an organism is still around producing offspring generations later, then it's clearly very well adapted to its environment. If it's no longer well adapted, it will die out, solving the 'problem.'

  18. Re:Science... Yah! on Science's Biggest Failure: Everything About Diet and Fitness · · Score: 4, Insightful

    This, absolutely this. I believe the number one reason many people choose to disbelieve that energy balance is the primary determinant for weight gain/loss is simply that they don't like the answer it gives them: That to lose weight, you have to eat less food and that this means sometimes feeling hungry.

    Magic, pills, voodoo, fad diets, resonant crystals, homeopathy... ANYTHING but having to exercise self-restraint.

  19. Re:cancer on Telomere-Lengthening Procedure Turns Clock Back Years In Human Cells · · Score: 1

    Yep.

  20. Re:Start with Stem cells and.... on Telomere-Lengthening Procedure Turns Clock Back Years In Human Cells · · Score: 2, Insightful

    You jest, but this is why we have children instead of just living forever. Think of reproduction as, in a sense, compressing all the information required to make an animal down into a much smaller amount of storage medium than the entire animal takes up. That's a far smaller volume for 'bad data' (mutations, genetic abnormalities etc) to exist in. Then the process of 'unpacking' this data applies a bunch of checksum checks (changes are liable to render the embryo non-viable rather than continuing). In the end you have a genetic copy of the parent(s), but with all of the bad data and random junk squeezed out.

    It's not as simple as adding extra telomerase to the end of your DNA strands. The reason we have this genetic equivalent of a MAX_LOOPS constant is that once cells have subdivided that many times, they error rate gets too high. Extending cellular life in this manner without some form of added error correction will just result in cancer.

  21. Re:What's more irritating? on One In Five Developers Now Works On IoT Projects · · Score: 1

    I'll avoid them by "surfing the net" instead.

  22. Re:What's more irritating? on One In Five Developers Now Works On IoT Projects · · Score: 1

    Oh, so that's what "IoT" is? Fucksake. As if "the internet of things" is somehow more special than the idea that as the tech gets cheaper, more and more things will connect to wireless networks. If this is going to be the next "cloud", I hope at least the cloud-to-butts browser addon gets updated so I can read about the Internet of Butts.

  23. Re:Alternate Link on Ask Slashdot: What Makes a Great Software Developer? · · Score: 2

    What is this "technical track" you speak of? The last company I worked for (I'm currently working on a startup) had a single tier of engineers, a couple of "tech lead" / "senior engineer" roles (only available if you outlasted the incumbent), and everyone above that level (and there were 3+ tiers of them) was a nontechnical manager. Which is part of why I no longer work there but that's another story.

  24. Re:Alternate Link on Ask Slashdot: What Makes a Great Software Developer? · · Score: 1

    I absolutely agree that curiosity (along with a willingness to actually RTFM) go a long way to making one indispensable in a team. However, that brings its own risks with it: If you can't be replaced, you can't be promoted. How do you balance the benefits to your career (in terms of increased productivity, reputation etc) against the risks (stagnation, either because they can't manage without you, or because they realise how productive you are and aren't prepared to lose your utility)?

  25. Re:You nerds need to get over yourselves on Why Coding Is Not the New Literacy · · Score: 5, Insightful

    Programming is absurdly simple. Back in the 80's, you couldn't throw a stone without hitting a kid who wrote games for his home micro as a hobby.

    There were plenty of kids who knew how to write "10 PRINT FART; 20 GOTO 10" or who typed in listings from magazines, and I agree that programming at that level is probably accessible to most people - but you can't equate that level of programming with modern software development.

    You've probably noticed this yourself, but there are a LOT of really stupid professional developers.

    I wouldn't phrase it as "really stupid professional developers". There are certainly a lot of incompetent professional developers, and they're part of what's formed my opinion about some people not being mentally equipped for software development. Do you honestly believe that such a proportion of people who make their living developing software are that bad at it purely because they're lazy, apathetic or unmotivated?

    For the obligatory car analogy, most people are probably capable of learning to swap to a spare tyre, change the oil, or top up the radiator (learning some simple scripting). Most people are probably not capable of learning to design high-flow intake manifolds or variable valve timing mechanisms (useful commercial software development).