Readit News logoReadit News
jniedrauer commented on Scripting with Go   bitfieldconsulting.com/go... · Posted by u/synergy20
jniedrauer · 4 years ago
I may be in the minority here, but I personally prefer the "wrong answer" highlighted at the beginning of this article. Scripts are source code. They go in the repo, and they have the same standards applied to them as any other source code. I would much prefer that the code be explicit and rely on few if any third party libraries. I have go scripts that have been functioning in production for half a decade now without modification. They are as "self documenting" as any other go code, and I do not require esoteric knowledge about a third party library to re-familiarize myself with them.
jniedrauer commented on Scientist busts myths about how humans burn calories   science.org/content/artic... · Posted by u/sohkamyung
KennyBlanken · 4 years ago
A few hours on my bike can be 2,000-3,000 additional calories over base metabolic rate. That's not based on made-up calories but actual work from a power meter on the bike.

"You can't exercise your way out of a bad diet" - literally not true for a fuckton of endurance-sport athletes for whom the challenge is eating enough calories.

It's 100% true for people who think exercising for 30 min means license to eat whatever.

> So a good diet: takes less time than exercise, reduces calories more, and can save money

Yes, but endurance exercise over an hour or two brings its own advantages health-wise.

The real takeaway is that there are no absolutes.

jniedrauer · 4 years ago
One of the cruel aspects of endurance sports is that they suppress your appetite. You can go out and burn 6000 calories in one race, spend the whole time thinking about all the delicious food you're going to reward yourself with, and then you get there and have zero desire to eat. You sometimes can't even start refeeding until the next day.
jniedrauer commented on Burgeoning bike cities emerge across America   axios.com/burgeoning-biki... · Posted by u/sofixa
walleeee · 4 years ago
Bike lanes in the US can be pretty haphazard, in many cases they're sprinkled discontinuously around the area like a tease

it almost feels more dangerous to merge into and out of motor traffic at every other intersection

jniedrauer · 4 years ago
Worse still is having to merge in/out of traffic to avoid parked vehicles. In the state of Oregon, you are legally entitled to the same rights as any other vehicle on the road, but that also means you are legally obligated to move over when possible so faster vehicles can pass. In practice, this means swerving into the lane of car traffic to get around cars parked on the curb, and then moving back into the "bike lane", repeatedly. It's frightening, even if drivers here tend to be very considerate to pedestrians.
jniedrauer commented on New Zealand's bid to become a dark sky nation   bbc.com/travel/article/20... · Posted by u/throw0101a
tejtm · 4 years ago
At the Oregon Star Party! After you eye are dark adapted (an hour) see your shadow on the ground from the light of the Milky Way.

https://oregonstarparty.org/

https://www.openstreetmap.org/#map=12/44.3092/-120.2062&laye...

Perhaps more usefully, contact your local Astronomy clubs.

https://skyandtelescope.org/astronomy-clubs-organizations/

https://duckduckgo.com/?q=Astronomy+club+France&t=ffsb&ia=we...

jniedrauer · 4 years ago
Rural areas in the PNW are about a 2 on the Bortle scale, and the stars are strikingly vivid. The first time I saw Starlink with my own eyes, I was making an alpine start on Mt St Helens. The cluster of satellites against a backdrop of bright stars was breathtaking, and I got this powerful sense that we were truly conquering the heavens. You could call this another form of light pollution, but it made a pretty big impression on me. It felt more like science fiction than reality.
jniedrauer commented on Best practices for writing code comments   stackoverflow.blog/2021/1... · Posted by u/nsoonhui
ok_dad · 4 years ago
I write comments first, then fill in the code later, adjusting the comments as I learn better ways to do things. That way, the comments are like a guide to anyone as to the goal of a section of code. I comment about every 2 or 3 lines of code, or more sometimes. I even comment on things that everyone would easily understand. My comments are basically a plain English version of the code. Functions and such have comments or docstrings that explain the function and the basic steps of its functionality, so that’s about 2 times that I explain things in my code. I’ve never had anyone say I comment too much. When reading uncommented code, I wish there were more comments sometimes to explain what each variable does or is. My variables are often named with 4 or 5 words, connected by underscores or title case. I often see variables that aren’t named well and try to avoid that myself.
jniedrauer · 4 years ago
Are you concerned that you are introducing tech debt into the codebase? Anyone who refactors your code later will also have to refactor your comments (but likely won't).
jniedrauer commented on Sleep technique used by Salvador Dalí works   livescience.com/little-kn... · Posted by u/ohiovr
rubicon33 · 4 years ago
How would you describe your sleep hygiene? Do you sleep the same amount every night? Do you fall asleep at the same time? How much sleep do you get? Are you generally very tired when you lay down to sleep?

Just curious as someone who has never had any of these N1 experiences, what might I be missing...

jniedrauer · 4 years ago
I used to have fairly poor sleep hygiene but am now pretty good about it. I have had this experience in both states. I had night terrors as a child which eventually gave way to curiosity, and I practiced staying self aware while falling asleep. A common trick you can use is to learn to recognize the signs that you are sleeping, for example by checking your phone. Digital screens will have garbled symbols in a dream. You also might notice altered laws of physics, or suddenly remember that you already went to bed and the dream can't be real. After the first few times, your brain learns how to do it and it happens more and more without effort. Then you can stay self aware while falling asleep, and can start to explore the transition states that you otherwise couldn't see.
jniedrauer commented on Sleep technique used by Salvador Dalí works   livescience.com/little-kn... · Posted by u/ohiovr
distantaidenn · 4 years ago
Wow, I have this exact same experience before falling asleep. It feels like a direct shift in the thought processes, and as you described it, it feels as though you have become a passive observer of your own thoughts. The images are sometimes so absurd and creative that I almost laugh to myself. But I also, don't KNOW if the images are creative or absurd, but just my brain believing it so -- is there even a difference? If anyone has ever had a "genius" idea while high, written it down, and read it the next day, you know what I mean...

Just as you mentioned, this switch lets me know, I'm gonna be asleep in the next few seconds. I also often listen to audiobooks or ASMR while lying down to sleep, and just as this state kicks in, I know its time to flick out my earbuds just before I lose consciousness. However, sometimes I'm even able to ride this wave right into sleep -- as in, from weird observer state right into the dream world. I was actually thinking about this a few days ago, and did some very quick searching, but couldn't find anything -- I wonder if we are observing the switching of our own brainwaves from alpha to theta?

I'd like to ask other people that experience this: do you also have high rates of sleep paralysis? I get it almost nightly. My dreams are also very vivid, and I remember about 80% of them. Also, if I wake up during a dream, upon falling back asleep, I'm able to "continue" them. Maybe I'll try this Dali method a bit, who knows!

jniedrauer · 4 years ago
>do you also have high rates of sleep paralysis?

Yes, often toward the end of this near-dreaming state, just before entering deeper sleep. I experience a sensation like entering a free fall and lose the ability to move. It takes quite a lot of energy to climb back out of it and regain the ability to move.

jniedrauer commented on Fasting Improves Physiological and Molecular Markers of Aging (2019)   cell.com/action/showPdf?p... · Posted by u/Tomte
phonypc · 4 years ago
>When I run for more than 90 minutes without taking in carbs, my body goes into a ketogenic state very similar to a multi-day fast.

That seems rather implausible. Do you actually test your ketones in both conditions, or is this just some subjective assessment?

jniedrauer · 4 years ago
That is the normal state of ultra endurance athletes during long runs[0]. A lot of training stimulus is fat adaptation. Coaches will tell you that you begin to exhaust your glycogen stores beyond the 90 minute mark, and I can tell you subjectively that the body switches over around then. I have done fasted runs up to 3 hours before. Runs of that duration are physically impossible without burning fat as fuel.

[0]: https://www.tandfonline.com/doi/abs/10.1080/02640414.2019.17...

Deleted Comment

jniedrauer commented on Fasting Improves Physiological and Molecular Markers of Aging (2019)   cell.com/action/showPdf?p... · Posted by u/Tomte
jniedrauer · 4 years ago
When I see studies like this, I always wonder if you might get the exact same benefits and more by just going for a run. When I run for more than 90 minutes without taking in carbs, my body goes into a ketogenic state very similar to a multi-day fast. And exercise has additional benefits that simply fasting doesn't.

u/jniedrauer

KarmaCake day2487May 18, 2018View Original