News for hackers. Stuff that matters.
Re:Show HN: Generate code and diagrams from live infrastruct... by diceduckmonk on Tuesday October 04, 2022 @11:32AM (#33081832)
> Use Javascript, a true programming language, no more YAML or Domain Specific language.

This appears to be a jab at Terraform but Terraform's declarative language is supposed to be a step forward from ad-hoc provisioning scripts. One of the issues with imperative scripts is you have to be mindful of intermediate state whereas Terraform allows the users to just think about the initial and final state.

Re:Show HN: Generate code and diagrams from live infrastruct... by jaimehrubiks on Tuesday October 04, 2022 @12:03PM (#33082338)
I must say that I prefer the declarative nature of terraform, but it's true that in many cases I've spend ages trying to create variables through loops, whereas in a regular programming language it would have taken me minutes. And sometimes I also face things impossible to do.
Re:Show HN: Generate code and diagrams from live infrastruct... by l3uwin on Tuesday October 04, 2022 @11:50AM (#33082150)
Pretty much this. I don't know any DevOps engineers begging to make their configs even less readable
Re:Show HN: Generate code and diagrams from live infrastruct... by yazaddaruvala on Tuesday October 04, 2022 @01:02PM (#33083271)
> declarative language is supposed to be a step forward from ad-hoc provisioning scripts.

The best config systems I've seen leverage a programatic framework to generate declarative JSON/YAML. Rather than needing to bolt one on top.

Re:Show HN: Generate code and diagrams from live infrastruct... by blowski on Tuesday October 04, 2022 @12:56PM (#33083184)
I use simple Bash or Python scripts while prototyping, then Terraform for anything that needs maintenance in production.