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.
I think you are missing the point. The overarching motivation here is "Normally one would do this in bash, but I want to use go instead. Is there any way for me to do that while retaining the aspects of bash that make it good for these tasks?" And the author provides a solution. Dunno why you would do that, but not really important.
I agree. It would be much more readable if it simply had a few comments too (something that can't really exist in a 1-liner) and is infinitely flexible (ex: for each match, also make an API call).
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.
Feels to me like pushing your body to extremes is akin to a metabolic shock and your system rebooting in another operating mode. Probably needs another reboot to go into regular mode, so your apetite will also vary in the meantime
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.
There is probably an exception for safety — you don’t have to merge into the rightmost lane if it is not safe. (You’re describing a scenario where it isn’t safe.) I know WA cycling law has such an exception, but I don’t know about OR specifically.
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.
I'm guessing there is a local effect of the Bortle scale because when the skies were clear we clearly saw about 30 Starlink sattelites and according to https://www.lightpollutionmap.info/ we live in an area with Bortle class 8-9, the algorithm for calculating the Bortle class seems to be a bit work intensive. https://www.handprint.com/ASTRO/bortle.html
Starling visibility is due to how far up they are and only visible for a while after launch. Once they're in position you shouldn't be able to see them.
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).
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.
A similar experience occurs with me almost always when jet lagged. After fighting off sleep for much of the day when I finally fall asleep during the later part of the day, it starts off exactly like described - a really dreamy state. Then after I have slept a couple of hours, I enter a state where I am sleeping and also awake at the same time and wanting to wake up but in a state of sleep paralysis where it is a herculean effort to try and shake off sleep and wake up. More often than not, even though I know I am in this state, still a panic sets in me that I am not able to shake off sleep and I wake up after quite some effort. And yes, I have had dreams where I have been able to solve some problems at work even without thinking about them during the day. Its totally fascinating!
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...
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.
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.
Kinda, but only indirectly as I understand it. The more I read the more it seems to matter the time spent in a fasting state relative to a fed state.
So a run could work if you’re not overeating, but if you’re regularly overeating it wouldn’t work because you might use up your food, but then immediately resupply or have eaten too much prior to it and it takes hours to finish nutrient delivery.
Mostly though they’re complimentary processes neither directly involved with the other.
As I’ve said in other comments what seems to matter is the ratio of time spent in a fed state (body delivering nurtrients) vs a fasting state (body using fat for energy, depleting stores of things and doing housekeeping).
From that perspetive running could help, but only from the point of view of possibly getting you to the fasting state more quickly (a kind of kickstarter), but it would be easy too derail that by eating to soon or a hundred other things.
Spent a few months reading about this stuff back in 2019 and basically concluded you can get roughly the same benefits from intermittent fasting / time restricted eating, caloric restriction and keto.
Fasting for 24-48 hours however triggers autophagy, which is quite significant; I don't think (but don't know if) you would get that from your runs.
You're definitely right about the many benefits of exercise, though. This is one of my favorite articles, and it only covers the benefits to the brain:
When I was reading more about this most of the anti-aging benefits of fasting where explained by your body going into autophagy. I don't think just depleting your glycogen has the same effect and I didn't find any other reliable way of going into autophagy that didn't involve not eating for 36 hours.
Also a 90 minute run can have other side effects on people that just don't have the body for it. Even being fit and in my mid 20s and running with proper gear and on dirt and sometimes with a coach I developed plantar fasciitis in my 30s, I can do 10/15 minute runs and can hike and sky but I wouldn't risk a 90 minute run.
I don't have time (nor the endurance) for a 90 minute run, so could you combine the two? I often do a 14 hour fast and then go for a 20 minute run combined with some calisthenics on my lunchbreak before eating. How can you tell your body is in a ketogenic state?
I can definitely say the first few times I exerted a ton of energy after not eating for 12+ hours I felt like I had the flu for a few hours, but now I don't really get that.
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.
The full text of your link shows the athletes didn't have elevated ketones until the second day of the race. After 80km, or about 12 hours of running, on an energy deficit.
I took this a subjective feeling of the experience, but I agree with you. It is almost literally impossible (some high level athletes can accomplish it, I believe, but not after 90 minutes) to actually enter a ketogenic state from exercise.
I have many healthcare issues in my family, so I have a lot of experience with this. It is very dependent on the field. Some are booked out for months, others you can get an appointment the week of, it is very hard to predict. Also, most medical professionals leave some amount of week-space open for emergencies, so if you REALLY need to see someone, you can in less than 24 hours in many cases. But if it's routine or part of a larger "wtf is going on" process, it can take a year to get a diagnosis bouncing between different specialists with 1+ month scheduling runways.
Currently, the industry is also facing a labor shortage, so this is making the scheduling even harder. A family member in high school was diagnosed with obstructive sleep apnea (affecting school performance! You only get 8 semesters to mess up!), and it has been (so far) 8 weeks and we still don't have a formal intake for medical equipment. We have a prescription. We just can't get the equipment supplier to process the prescription and send it to us. I ended up paying out of pocket (and doing some crazy shit) to get a machine and supplies. Note: this is with doing what is basically a part-time job squeaky-wheeling everyone I can to try to get things happening. It is the worst.
Blue collar medical workers are quitting in droves because the work sucks and it has garbage pay, and you see the executives making huge salaries. And you get yelled at by people like me trying to make the system move faster. I try to stay friendly, but... I have lost it a few times. Of the seven people in my family, five of us have chronic medical issues.
I was just talking the other day with a friend wishing there was a medical consultancy I could hire. I give them my health insurance info and family demographics and all of the healthcare shit we need done, and then they find the providers, make appointments, file reimbursements with insurance/hsa/fsa tell me how much to put in fsa/hsa each year, deal with the full time job of having a family that needs to deal with the totally bonkers american medical system. They get some commission of whatever comes back to me, and also just some baseline monthly payment for service. PLEASE GOD LET THIS BECOME A THING. Or, you know, a not insane medical system.
If you've ever been on the scheduling side of these things, you'll see that a lot of these waits come down to inefficient scheduling. If you've waited a month for your appointment, there's a good chance there were multiple cancellations before that you didn't hear about.
I listen to a workout playlist on shuffle frequently while training, while slowly adding new music to it throughout the year.
Like others have mentioned, Spotify has completely stopped recommending new music for years now. Even if I start a song radio from a song I've never listened to before, Spotify immediately just starts playing songs from my current year's workout playlist. That is not the behavior I want. Yes, I listen to that playlist a lot, but when I'm not listening to that playlist, I'm trying to find new music. It seems really obvious that that would be the expected behavior, to me at least.
This has a lot to do with your present listening habits, unfortunately. 7 years in, I still get new stuff in discover weekly, though there are also a good deal of repeats which are frankly "discoveries" as far as Spotify is concerned, but nothing new from my perspective. Basically, Spotify is also recommending I listen to stuff I used to listen to a lot before I started using it (and could therefore afford to listen to more than just whatever was loaded on my phone at the time)...