Why do developers spend so much time fixing infrastructure instead of coding?

Posted by aniketanand02@reddit | learnprogramming | View on Reddit | 46 comments

​ As someone still learning and building projects, one thing that surprised me is how much time developers spend on things outside of actual programming. You start with “I’ll build this feature today” and somehow end up debugging deployment issues, fixing server configs, handling environment variables, managing APIs, or dealing with hosting problems for hours. I used to think programming was mostly writing code, but now it feels like understanding infrastructure and deployment is becoming just as important. For experienced developers here: \* Is this normal in real-world development? \* How long did it take you to get comfortable with deployment/cloud/infrastructure stuff? \* Any advice or resources for beginners to learn these skills properly? Would love to hear real experiences from people working in the industry.