Couldn’t agree more. I can agree that premature abstraction is bad. But unnecessarily duplicated code outweighs this by orders of magnitude, in my experience. So stay DRY, and later when you hit that 1 case in 100 where the code needs to diverge, it’s easy enough to copy/paste.
I want to frame your first sentence. Abstract code discussions are absurd. I’ve learnt to mostly ignore programming blogs if they don’t include some concrete code.
Yes, it feels like I’ve stopped breathing for a minute or longer (which might actually be the case). On a few occasions I hear screaming, which I believe is my brain trying to wake me up due to low oxygen.
I’ve had this too, and only when on my back. I had a pounding sensation in my head (heart beat), an ominous presence, and the feeling that I’d die if I didn’t force myself awake. I’m convinced this is related to sleep apnea. I try to avoid sleeping on my back now.