News for hackers. Stuff that matters.
Re:Docker Is Four Things by rgoulter on Thursday August 31, 2023 @11:51AM (#37339146)
> The alternative is to draw a clear line where there is none.

I'd say that more/less "imperative" refers to describing sequences of actions that take place (especially those which might modify some state), whereas "declarative" is more about a structure of what the result should be.

I can agree that a Docker image can be considered as a structure, and that it's possible to construct one declaratively. Whereas I'd say a Dockerfile is an imperative construction of that.

Re:Docker Is Four Things by strogonoff on Saturday September 02, 2023 @05:02AM (#37359720)
Dockerfile describes a set of immutable layers. Whether you model it in your head as a sequence of commands or as a description of a set of immutable layers, is up to you.