Skip to content

Comment on Why does nobody seem to know what imperative and declarative actually mean?

Comments

I'm swayed.

I can imagine some would argue that having it in an imperative language means you can do if/else type things, but we hack the same thing into Terraform by abusing `count`. Everybody does it, certain situations make it unavoidable.

The only argument left against it in my mind, is that using an imperative language means it allows you to more easily employ anti-patterns to the declarative approach (either accidentally or deliberately). To that I'd have to say; ¯\_(ツ)_/¯ just don't do that?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.