Poll for people who program

In your favourite language, what do you consider a call to a functions/methods/procedures/subroutine to be, in grammatical terms?

Please elaborate, and thanks for boosting.

Follow

@wim_v12e

Voted imperative because computers are things we tell what to do.

But if we are talking about pure functions (no side effect, no change to state and so on) I would let the verb "compute" as implicit and use a name describing what have to be computed instead.

This is my usual naming approach but there are more corner cases that depend on context.

For example, when programming a domain model, specification methods are usually called `IsSatisfiedBy` since the class/interface express the conditions represented.

Similarly in DDD, I name most analysis method as `Analyse` as the interface/class name express the analysis that will be computed.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.