Skip to content

Comment on Tell Don't Ask (1997)

Comments

The author is incorrectly using the term "declarative" when he's really describing "imperative". Stateful OOP is in no way declarative.

It's also unclear what the thesis is. He says to not ask objects about their state, then later advocates for CQRS, which does exactly that.

Of course, imperative programming is just the Church encoding of declarative programming.

Well, no. The lambda calculus isn't imperative.

In declarative programs you specify what the program is. In imperative programs you specify what the program should do. I don’t really see the overlap.

AboutSource Built by g1lg1l

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