If you have difficulty concentrating, are easily distracted, impulsive (i.e. checks Hacker News a lot), are irritable, etc, you might look into whether you have ADD/ADHD.
I had all of those symptoms, but never considered I might have ADD until a few months ago. My doctor had me try Adderall, and the difference has been like night and day.
I'm not saying you have ADD or ADHD. I'm not a doctor. But just based off of what you said, I wanted to mention it, because I wish someone had mentioned it to me like 10 years ago.