Some context for this question: I'm a mechanical engineer by training and I now work in robotics; developing path planning models in a research setting. I didn't have a traditional education in Computer Science. When I look at the computer engineering posts and comments on HN/Reddit, I feel woefully inadequate. I've never used these technologies like Kubernetes, Docker etc and feel out of place.
So, how do I write better code? How do I plug my CS foundation to better suit the current scenario of engineering?
Look into problems, you'll find solutions. Look into solutions, you'll find problems.