Live data from Hacker News

How I keep myself alive using Golang

bytesizego.com

61–70 of 136 posts

Re: How I keep myself alive using Golang

#61

After messing around with Elixir, I decided on my own that the Elixir ship wasn't worth it for me and I moved on to typescript. Now I am debating between Rust and Go for backend development (for a web service). Which one between these two would be recommended for my needs? My priorities are to be able to learn quickly and develop/iterate as fast as possible.

Unless your goal is learning the new language for the sake of it, Node should already be plenty performant for most needs

Yes, I am really looking at using something new since I did get bored with the JS/TS world.

Re: How I keep myself alive using Golang

#62

After messing around with Elixir, I decided on my own that the Elixir ship wasn't worth it for me and I moved on to typescript. Now I am debating between Rust and Go for backend development (for a web service). Which one between these two would be recommended for my needs? My priorities are to be able to learn quickly and develop/iterate as fast as possible.

If your goal is iteration and development and not performance, why not just stick with a typescript backend?

Just wanted to use something new this time since I feel like I'm bored with TS now.

Re: How I keep myself alive using Golang

#63

After messing around with Elixir, I decided on my own that the Elixir ship wasn't worth it for me and I moved on to typescript. Now I am debating between Rust and Go for backend development (for a web service). Which one between these two would be recommended for my needs? My priorities are to be able to learn quickly and develop/iterate as fast as possible.

I'd love to hear why Elixir wasn't for you - not from a judgemental place, I just like hearing others' experience reports for languages that stuck or didn't. For a web service with fast iteration times, I'd probably pick Go of those two. While I'm not personally a giant fan, I think it is a much simpler stack that lets developers be pretty productive especially in the domain of web services.

Iteration was easier but the main complaint from my team was it was hard for junior engineers to pick up and understand. Along with that, IDE support still seems poor (we use Jetbrains and the Elixir plugin doesn't work reliably for us)

Re: How I keep myself alive using Golang

#64
A good alternative to writing your own echo server and debugging requests one route at a time is requestbin, which will gladly take any requests you throw at it, log them, and optionally return a response of your choice.

Lots of different implementations and hosts: https://duckduckgo.com/?q=requestbin

Re: How I keep myself alive using Golang

#65
post #36

Mildly related, I was diagnosed with obstructive sleep (OSA) apnea 6 months ago, and when sleeping I have to use a machine that blows air with a set pressure so it 'counters' the obstruction (a CPAP machine). Not mission critical like type 1 diabetes, but those machines log a lot more than I expected. While reading this I wondered if someone has geeked something for similar for OSA, maybe for monitoring purposes or m…

Rather mission critical I reckon. A CPAP machine was a life changer for me - long term untreated sleep apnea causes heart and other life issues. During my sleep study I logged about at the worst 48 incidents per minute of stopping to breath (kind of difficult to do that when you tongue rolls back into your airway)

My sleep study revealed 90.7 events per hour (30 is considered severe) and 55% blood oxygen level. I've been using a CPAP machine for about 2 months now, but still feeling pretty tired in general. Still waiting for the life changing effects.

Re: How I keep myself alive using Golang

#66
post #25

I could be mistaken but I believe both types of diabetes has no cure; however type 2 is MUCH MORE manageable with a proper diet?

There's no cure, but 'remission' is possible in type 2 diabetes with lifestyle changes. Remission is defined as maintaining normal blood sugar levels without medication. This is not possible in type 1 diabetes

Type 1 here, there is a simple hack for both 1 & 2 and it's take melatonin at night. That upregulates the actual insulin receptors to do more with less insulin. I've been using that for 28 years now. My insulin requirements dropped 40% over my first 6 months and have stayed there ever since. I know two Type 2 who went into remission with diet, melatonin and who tapered off pills after initial use.

Re: How I keep myself alive using Golang

#67
post #25

I could be mistaken but I believe both types of diabetes has no cure; however type 2 is MUCH MORE manageable with a proper diet?

Type 2 is called Insulin Resistance - basically your pancreas works fine but the cells in your body stops responding to the hormone that tells it to remove glucose from your blood leading to a dangerous build up. I use a drug called Metformin daily which slows down my digestive tract (you feel fuller after a meal longer like Ozempic), lowers the uptake of glucose in your gut and lowers glucose production in your live…

Also note that drugs like Ozempic (GLP1 Receptor Agonists) work in at least the following ways:

- slow down stomach emptying (which was noted)

- improving glucose disposal

- reduce appetite by affecting brain chemistry

GLP1 RAs are really really interesting compounds (I'm a bit biased of course)

Re: How I keep myself alive using Golang

#68
post #36

Mildly related, I was diagnosed with obstructive sleep (OSA) apnea 6 months ago, and when sleeping I have to use a machine that blows air with a set pressure so it 'counters' the obstruction (a CPAP machine). Not mission critical like type 1 diabetes, but those machines log a lot more than I expected. While reading this I wondered if someone has geeked something for similar for OSA, maybe for monitoring purposes or m…

https://home.sleephq.com/ does a good job of processing this data if they support your machine.

Re: How I keep myself alive using Golang

#69
My son was diagnosed in 2022 with T1D, I wrote this post about it mostly out of determination to understand how to manage https://maori.geek.nz/the-unreasonable-math-of-type-1-diabet...

He is now on Dexcom+Omnipod+AAPS and doing well.

Being familiar with PagerDuty and Datadog/ELK stack, all I want is a similar set of services that can scale (cheaply) to manage all people with T1D. Nightscout is a start but won't scale.

Awesome work and best of luck, T1D is shite.

Re: How I keep myself alive using Golang

#70
post #65

Earlier quoted context omitted.

Rather mission critical I reckon. A CPAP machine was a life changer for me - long term untreated sleep apnea causes heart and other life issues. During my sleep study I logged about at the worst 48 incidents per minute of stopping to breath (kind of difficult to do that when you tongue rolls back into your airway)

My sleep study revealed 90.7 events per hour (30 is considered severe) and 55% blood oxygen level. I've been using a CPAP machine for about 2 months now, but still feeling pretty tired in general. Still waiting for the life changing effects.

Have you analyzed the data from your cpap to see if it's doing what it needs to do? It has the data for your apnea events, sleep time, all kinds of interesting things.

Check for leaks. Make sure your mask is actually comfortable, I'd recommend trying multiple if you haven't already.

Post reply on HN