Struggling with Coding in DevOps – Need Advice

0
1
Asked By CuriousCoder123 On

Hey everyone! I'm currently working as a DevOps/Cloud Architect, and I'm trying to implement Infrastructure as Code (IaC) using Terraform for a project in our Azure environment. While I have a solid understanding of cloud infrastructure, automation, and scripting, I'm finding it really challenging to write modular, reusable code. I get how the code works, but when it comes to writing complex elements like dynamic blocks, functions, or dealing with loops and nested structures, I hit a wall. I often find myself relying on ChatGPT to get things done, and it's making me feel like I'm just copying instead of actually learning. Every time I try to tackle it on my own, I get frustrated and give up, especially with loops and object manipulation. Has anyone experienced this same struggle? What resources or mindset shifts would you recommend to move from merely understanding code to writing it effectively? Thank you! 🙂

4 Answers

Answered By TechTraveler On

Don't be too quick to rely on ChatGPT; instead, dive into the actual Terraform documentation. It’s easy to get sidetracked by complex Terraform constructs if you don’t have a solid grasp of the fundamentals. Consider using something like Terraform CDK for a more programming-friendly approach if that suits you better.

Answered By CodeNinja85 On

It sounds like you might need to focus on breaking your code down into smaller, more manageable functions instead of trying to tackle everything at once. Each function should have a single purpose. This approach can really simplify development and help you see your logic more clearly. Also, lots of practice is essential—check out sites like codecrafters.io to rebuild familiar tools!

PracticalLearner99 -

I've found that making a habit of coding small projects helps too! It's all about getting those reps in.

DevDude42 -

Totally agree, modular coding helps a lot! Just simplifying can make a huge difference.

Answered By DevMagicMaker On

It sounds like you're hitting a plateau. Sometimes it helps to start with a "naive" implementation to understand what you’re doing before trying to optimize. Rewrite things manually and look for patterns, you'll start to naturally see where you can make your code more reusable. Just be cautious of over-abstraction—it can lead to more problems down the line!

Answered By ITVeteran2000 On

This just seems like a classic case of needing more practice. I recommend giving yourself dedicated time to tackle problems, and don’t rush to find solutions too quickly. Sites like Advent of Code offer unique challenges that can really help you grow. When you're done, review other solutions to see different approaches—that’s super valuable!

CodingNerd88 -

Advent of Code was so hard for me too, I barely made it past the first few days! But it's a great idea.

GrittyDev -

Oh, hang in there! I struggled with it too, but each day gets easier as you go!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.