If you're familiar with Node.js promises, you already know how it works. I just pass a hollow "DB" object to my controllers that can perform queries and commands, but instead of returning data imperatively, I use JS-like "promises" to chain the next steps. On the "success" callback you have the result of queries. At the end I will just return this "chain of statements" that wasn't executed yet. I only really run everything at the "imperative" layer, within a database transaction.
That's also similar to how Haskell IO works. If you desugar the "do" syntax, you get something like this. Of course I said "monadic" between quotes above because it doesn't follow the functor/monad laws, it's just a Fluent interface promise-thing tailor-made for that very small app.
A big issue is that this was in very small project. Promises are not exactly pretty, and the code is not the easiest to maintain if you don't know how they work, which is why I "cheated" on the Golang app. I think someone else smarter might be able to figure this problem out too, though :)
How is it part of healthcare if nobody's health is threatened in 99% of cases? Do you consider steroids healthcare? What about something like plastic surgery?
Because being pregnant is actually pretty dangerous for women. It can be especially dangerous if you're in your mid-30's or older. And it's also really dangerous if you're not planning to become pregnant because babies remove essential nutrients from your body. Don't get me started on the risk of eclampsia, gestational diabetes, and post-partum depression. Babies also modify your immune system and may make you more susceptible to diseases. Delivery can be very risky too depending on the shape of your body, and some women have to undergo physically altering surgeries to deliver. Miscarriages can also kill women by causing them to bleed to death really quickly.
I think it's important to allow women to make decisions about pregnancy based on their perceived risk, rather than blithely dismissing the morning after pill as being akin to steroids.
Might be good to note as well that steroids are commonly prescribed for all kinds of ailments that people have, they're objectively healthcare as well.
Honestly that is one of those things that I did not know until recently.
Like I figured there was a legitimate reason they were prescribed, but I never actually knew first hand about. Now... my cats a small dose of steroids. The examples of people in this thread have been enlightening on that subject.
But unfortunately they do have a bad reputation. I mean if you hear steroids there is likely one image that comes to mind.
They are all similar in that they are disrupting natural bodily processes. I wouldn't call it "healthcare" when they are opposing the body. It is not very healthy for the baby in the womb.
This. A remarkable amount of medical intervention is to externally moderate natural bodily processes that, if allowed to run to their conclusion, would disrupt the body to the point of destruction.
There's nothing special and privileged about "natural" processes; if there were we wouldn't need medicine at all.
When you're diagnosed with an easily-treated cancer, be sure to not be a hypocrite and refuse medical treatment for it, because that would be disrupting natural bodily processes.
Plastic surgery can save you if you have severe burn wounds or deformations that came out of an accident. So yes, plastic surgery is health care.
Did you have other things in mind when listening these things?
Furthermore, 1% "health threat" is quite high of a percentage, don't you think?
Steroids are healthcare, and they are legitimately used for treatment of ailments.
Plastic Surgery is healthcare, as it can help treat mental disorders affected by body dysmorphia. Additionally, plastic surgery is much, much more common than you think and not always done for vanity. Even if it was, that's the individual's choice to have the procedure performed.
Do you have a source on that 99%? Most sources I'm seeing from a quick google search state that pregnancy is objectively dangerous for people that can get pregnant in many cases, much more than 1%
Oh so I guess we shouldn't consider vitamins and making sure the baby is fine reproductive health? The entire process falls under "reproductive health". Considering the process is very much still going on until that baby comes out... one way or another.
It is deeply depressing seeing comments like this on HN. But at least I feel better seeing the reaction.
fang devs like to think that they are somehow superior to the rest of us. So they think mentioning that they work for a fang company gives their statements greater importance.
That’s not what I was getting at. I’m actually half retarded when it comes to dev.
What I meant was that warp went above and beyond to accommodate organizational enforced security policies that were breaking warp for me.
So more than any place I’ve ever worked, FANGs have large organizational policies that make using alternative terminals like this more difficult.
Warp does a lot behind the scenes to do its magic. This was being broken by organizational policy enforced config on my dev box.
The warp team went above and beyond to work around those restrictions and configurations, and improved their product as a result.
I really liked that and it earned trust with me.
That’s all I meant. I should have been more clear.