Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
shine9674y@N00bPancakes would that work with my 'programmer conscience' as well? It is my programmer conscience that is taking the hit for this. :/
-
-
hitko31454yIf you're dealing with Python dicts, you could probably skip those ifs and just write
for rbt in rtbls.get('rtb', []): -
shine9674y@ScriptCoded terminal like what? What's wrong with my terminal? I love my terminal. I do everything on a terminal.
If it wasn't obvious enough, it wasn't the terminal that I was guilty about. It was the nested if-for loops that I was guilty about. -
I feel your pain. There’s no easy way to do this, and personally I think you’re doing great. Terraform is the cursed prodigal child. Regarding Terraform apps, If it works, and it’s easy to read.... ship it. Terraform code is different, and working with TFState is even worse. Terraform isn’t meant to be DRY, or elegant, or performant. It has one job, and whatever fucking code you have that makes it work, run with it.
I completely understand what you’re doing and I have never seen your code before. I’d fully support that in my prod stack. -
shine9674y@C0D4 I don't know whether you meant that comment in sarcasm or not.
I'm no hacker ( as in cracker ), but I really like my green on black terminal.
@ScriptCoded -
shine9674y@devphobe I'm surprised you figured that the file was a terraform state parser.
And based on your comment, I have a feeling that you been through the same pain before.
That aside, I like Terraform as a tool. I don't think its a prodigal child or anything. Its neat. And like you said, it does one thing and does that well. I like that.
But yes, I also agree that it isn't DRY or designed with NASA-grade efficiency or performance. Well, I guess that is the side-effect of designing a whole configuration language.
Related Rants
why am I feeling so guilty about this? should I be feeling guilty about this?
PS : this is not a support request. I genuinely feel bad about writing that piece of code and sense something is wrong somewhere, but I cannot figure out what. I stared at the screen for quite a while before giving up.
maybe it might reveal itself to me when I continue staring at it tomorrow.
question
nestedlops
python
not-a-support-request