logoalt Hacker News

crimsonnoodle5812/10/20253 repliesview on HN

Being able to inherit from Ingress and add a parameter of say public=True/False and then it change annotations, middleware, etc and then being able to re-use that across 100s of stacks is very powerful. DRY is not something HCL is good at.


Replies

lijok12/10/2025

Getting too clever with an imperative language in what is inherently a declarative domain, is an idea bad enough that they invented a whole new language to avoid you doing it. But some lessons have to be learned the hard way I guess

show 5 replies
bigstrat2003last Thursday at 12:16 AM

That is... not a good idea at all imo. It's very, very easy to over-DRY infrastructure config and it sounds like you're well past that point.

JojoFatsanilast Thursday at 12:39 AM

Make a module