Hacker Newsnew | past | comments | ask | show | jobs | submit | more lambda's commentslogin

I wouldn't characterize the way he was acting as seeming drunk. Rather, he seemed animated, probably because this is stuff he so deeply cares about.


And for anyone who's not familiar, rapeseed oil is sold as canola oil in the US and Canada.


Why wouldn't you be running TextSecure?


No one I know uses it or will use it. Is there another reason I should?


Even if your friends don't yet use TextSecure, you can still send / receive messages with them; when they do (if they do) get TextSecure, then messages can be encrypted -- until then, they will be as insecure [and with privacy issues] as normal default messaging.

So, what do you lose if you use TextSecure ... even if your friends don't or won't use it? What is the problem?


Why do people think that it's OK to allow kids to drink soda? In fact, why do people think that drinking soda is something that anyone must do?

I used to drink soda. Gave it up many years ago. Have not missed it. Have much less of a sweet tooth now; don't eat desserts very often, and when I do, a very small portion is plenty. I think giving up soda helped with that.

If I want a caffeinated beverage, I drink coffee, black or with cream but no sugar. If I want a cool, carbonated beverage, I drink beer (which has most of its sugar fermented out; still has some calories, but not nearly so sweet). If I just need to be rehydrated, I drink water.

It seems to me that so many people have this idea that sugary drinks, whether in the form of soda, sweet juices, sports drinks, and so on, but drinking those on a regular basis is a fairly new thing that I don't thin our bodies are well adapted for.

Cutting out sugars via drinks are some of the easiest empty carbs to cut out of your diet.


My kids get an Izzy (a 10-oz can of juice-sweetened soda) as a treat about once a month or so, and a "Zevia" soda (no sugar or calories of any kind) a couple more times a month.

One kid gets a (small) chocolate milk a 1-3 times a week. That's probably the most sugar either gets (outside of birthday parties and sugar-based holidays); the other will drink water even when she has the option of free soda.

Funny thing is that we don't restrict sugar. There's a container of candy in the cupboard that they can eat when they want (they typically ask first, but we rarely say no), but it frequently goes weeks without being touched. Sometimes they'll have a square of chocolate or two, but it's not a regular thing.

It turns out that if you "allow" kids to do most anything they want, but give them the tools to think clearly about what is healthy and why, they are perfectly capable of making good choices. I think it's the very restrictions that parents place on kids that makes them crave the same things those parents restrict.


> Why do people think that it's OK to allow kids to drink soda? In fact, why do people think that drinking soda is something that anyone must do? > I used to drink soda. Gave it up many years ago. Have not missed it.

Why do people feel the need to hold a personal choice as something everyone else must do?

Please, next tell me how you don't have a TV.


Because moderate social pressure can be a good way to change habits? If you regularly see people drinking soda on a daily basis and hear nothing against it, it's a lot easier to fall into the habit. If you hear about people who stopped drinking soda and don't miss it, it might inspire you to do the same.

I'm not saying that no one should ever drink soda; just that more moderation should be encouraged, people should start treating it as a choice that you should make as a responsible adult and use in moderation, like caffeine or alcohol, rather than a default that everyone does starting as a kid and continues doing whenever they feel like.


Most people seem to either not realize it's bad for you, or not care because they are so used to it.

I significantly cut back on soda last year, and haven't had any at all for months. I drink mainly water. I don't miss soda; doesn't even sound appealing any more.


Well, caffeine is addictive, and many sodas have caffeine in them, so it is not a 'used to it' thing, it's very physical[0]. When you order that diet coke with lunch everyday, you develop a habit that is very hard to break for a lot of folk. Also, enjoying a Dr. Pepper is not terrible, you just have to know you are drinking a lot of sugars.

As an aside, the sugar profile of most sodas is made to mimic that of honey closely. So much so, that 'stretching' honey is a cause for concern in apiarist communities as it is quite easy to do so [1].

[0]http://www.caffeineinformer.com/caffeine-withdrawal-symptoms...

[1]https://www.ncbi.nlm.nih.gov/pubmed/23575142


Keeping children off of sugar is rather challenging. We had our young kids on a nearly zero sugar diet for a couple years, but they had really strong behavioral reactions to even small amounts of sugar (e.g., three starbursts) given to them by friends or adults. We have slightly increased their sugar consumption (e.g., maple syrup on pancakes) and they don't have the same reaction to small amounts of sugar. Not our favorite trade-off though.


You know, there's no (non-psychological) link between sugar and hyperactivity- it's basically the same as giving kids fizzy applejuice, saying it's beer and watching them get "drunk". They act hyperactive because they expect that sugar will make them hyper; thus they do.


> I drink beer (which has most of its sugar fermented out; still has some calories, but not nearly so sweet).

Beer is better, but it's still got a surprising amount of sugar, depending on the brew. A can of Coke has 39 grams of sugar [1]. A Sierra Nevada Bigfoot has 30.3 [2]. Of course, that's the worst offender. Popular "craft" or "imports" seem to be around 10-15 (Anchor Steam is 14.2, Beck's is 9, Guiness is 14, Killian's is 14.8, etc.).

American light beers are around 3-5, which is much better than a can of Coke.

If you're switching from soda to anything but "light" beers, you're cutting some carbs, but not by about 1/2 or 2/3.

[1]: https://www.fatsecret.com/calories-nutrition/food/soda/carbo... [2]: http://www.popsugar.com/fitness/Calories-Popular-Beers-15046...


> A Sierra Nevada Bigfoot has 30.3 [2].

That number is the total carbs, not sugar specifically. Most beers have relatively low sugar content; your link actually claims 0g of sugar for the Sierra Nevada Bigfoot. Calories in beer come partly from alcohol and partly from complex carbs (hence "liquid bread"). That doesn't make them healthy, but 30g of complex carbs is a lot less bad for you than 30g of simple sugars.


Ah, sorry, reading fail on my part. I've been trying to watch my carb/sugar intake recently so I pay attention to those numbers, but I've yet to figure out which matters more for my own body chemistry.


Why do people think that it's OK to allow kids to drink coffee? In fact, why do people think that drinking coffee is something that anyone must do?

I used to drink coffee. Gave it up many years ago. Have not missed it. Have much less of a caffeine addiction now; don't drink caffeinated drinks very often, and when I do, a very small portion is plenty. I think giving up coffee helped with that.

If I want a sweetened beverage, I drink soda, sugarless or with sugar but no caffeine.

Etc.


> Why do people think that it's OK to allow kids to drink coffee?

Actually, most people I know don't consider coffee to be an acceptable drink to give to kids; but they don't think twice of serving them soda with the same amount of caffeine, or just lots of sugary drinks like non-caffeinated sodas, sweetened juices, "low fat chocolate milk" (as if the fat, rather than the sugar, is the problem there), etc.

> In fact, why do people think that drinking coffee is something that anyone must do?

Caffeine (and the various forms it's consumed in, like coffee or tea) has both health benefits and health risks. As far as I can tell, based on all of the data I have seen, sugary drinks are much, much worse for you.


I appreciate what you're pointing out how, but it doesn't strictly work since sugar arguably has a far larger affect on overall health and metabolism than caffeine. At least in the context of this story.


I learned this from my doctor (who is a diabetic specialist), some years ago we were talking about how to form good habits for kids and my wife and I were avoiding caffeine beverages for the kids, but letting them have apple juice etc. His opinion based on the evidence is that he would much rather have our kids drink caffeine every day but stay away from the sugar. His specific point was that people on the internet point to unknown risks with aspartame or caffeine, but ignore the mountain of known risks associated with sugar.

It was an eye opening discussion to say the least.


Sure, but the GP is arguing against soda, when there's a perfectly good alternative: sugarless soda. He doesn't provide any argument as to why one should cut soda completely, he just says "sugar is bad, therefore you need to cut soda".

I don't even think he's saying that, actually, he seems to be saying "I don't drink soda so neither should you".


What I'm saying is that culturally, we need to shift away from thinking that sweets are something that should be consumed on a daily basis. Based on my personal experience, avoiding having sweet drinks on a daily basis can help you lose your sweet tooth; and thus be less compelled to consume more of other sweet things.

Having cut out soda, I find I have a lower tolerance for sweet food in general. I'm less likely to order sweet and sour chicken, or foods that are glazed, or things with barbecue sauce, or honey-mustard dressings or dips. I have desserts less often, and when I do, split them more ways.

As others have pointed out in this thread, most people have a sense that feeding caffeine or alcohol to kids is a bad idea; and even as adults, that they are things that should be consumed in moderation. They don't have coffee available in the school cafeteria. However, most people have no such sense about sugar, giving kids juice boxes, chocolate milks, and putting soda machines in schools for them to buy whenever they have a little extra allowance left over.

While sugar-free soda is probably an improvement over soda with sugar in it, it still leaves you with that sweet tooth, and you're more likely to subconsciously keep consuming sugars in other forms.


>Why do people think that it's OK to allow kids to drink soda?

Because it is "okay". Why do people think it's okay to tell others what is okay?

>It seems to me that so many people have this idea that sugary drinks

What idea is that? Some people just like the taste of Mountain Dew. You, or your choice of coffee and beer, isn't superior.


> Because it is "okay". Why do people think it's okay to tell others what is okay?

Culturally, we consider coffee and alcohol to be things that should generally only be consumed by adults, and in moderation. Alcohol we have serious laws about; coffee not as much, but I know very few parents who would feed their children coffee on a regular basis.

However, we have no such cultural taboo about sugary drinks, despite the increasing amount of research showing that they are actually much more problematic when consumed regularly than caffeine or alcohol consumed in moderation.


this video turned me off from drinking regular coke and switched to coke zero.

https://www.youtube.com/watch?v=LZp29Qeu8_U


Most likely because their "C++ developers by platform" statistic does not include an "other" category, while there are actually developers working on platforms than Windows, OS X, or Linux (such as Solaris, BSD, etc). Since they didn't include an "other" category but the numbers add up to 100%, they probably just left out people who didn't respond to that question; thus in fact, in their sample, the number of Windows developers is probably less than 36%.

Another thing to note is the sources of information used for these statistics, including their own user surveys. These aren't necessarily accurate for the industry as a whole, but rather represent a particular sample, which happens to include their own existing users, people on Reddit, people sharing code on GitHub, etc.


HN does not use standard Markdown. It uses a very simple markup language possibly inspired by Markdown, but with much more limited functionality.

On HN, only two spaces are necessary for code:

  example
And it only supports asterisks for italics, two blank lines for paragraphs, and turning URLs into links; it doesn't support any of the rest of Markdown.


> they have root on your box

Or they have your discarded dead drive from your backup disk that you forgot to enable full disk encryption on. Or they rooted a machine that you were using "ssh -A" on to forward your agent, and have been able to temporarily hijack your SSH agent session. Or there's an information disclosure vulnerability in your web browser that allows them to read files from your hard drive, though without control of what files they can read, and by chance the attacker got lucky and one of the files was .ssh/id_rsa.

While the above description goes way further than I probably would, and yeah, 2FA would be more reasonable, there are good reasons to practice defense in depth, and try to design systems that have a chance of staying secure even if one of your assumptions fails like "private key is compromised".


As long as % formatting still works, it is in many ways more convenient that format. '"Foo: %s" % bar' is a lot shorter to write than '"Foo: {}".format(bar)'. And % formatting is still built into logger, so if you use logger heavily you will probably be used to it.

While the format() mini-language is nicer in a lot of ways, the convenience of % and its ubiquity mean that I generally use it more often. The main time when I reach for format() is when I need more detailed control of column widths and the like, which you can do with things like "{var:{width}}".format(var=var, width=width)


Personally I dislike % formatting even if it's a few characters shorter to type. .format is superior in every other way and has consistent-with-everything-else method call syntax.

Edit: I think it's largely the special flower overloading of the % operator that bugs me the most. If % was spelled .sprintf I'd like it more.


Lots of good stuff in here.

Python 3.5 may actually be what finally convinces me to move to Python 3 (that, and the end of Python 2.7 support coming up in a few years).

The new async stuff, finally fixing some of the problems with byte strings that made them not really an adequate replacement for Python 2.x strings, and os.scandir is a substantial performance improvement over os.listdir plus calls to stat (though os.scandir, at least, is also available in Python 2.7 via PyPI).


For what it's worth, even if the core Python developers discontinue support for 2.7 (and they might not, it was originally supposed to EOL this year), there is enough Python 2.7 code running in the wild, making people money, that some entity will certainly take over maintenance responsibilities. Python 2.7 is here to stay for a very long time if only because of the huge amount of legacy code written in it.


"Python 2.7 is here to stay for a very long time if only because of the huge amount of legacy code written in it."

True. It might even outlive Python 3, just as Perl 5 looks like it will outlive Perl 6.


It will stick around like Perl4 did and then fade away with time.


Let's not forget https://www.python.org/dev/peps/pep-0484/ which looks really promising


Hmm? Where does it say that?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: