Comment

Comment by torben-friis

Maybe it is clearer if I explain it in syntactic terms? In my mental model objects are nouns (described entities) and methods are verbs - actions over the noun.

process.start() is the action of starting done by the the noun that is the process.

It's not exactly a matter of naming, as some methods are not explicitly verbs, but there is almost always an implicit action there: word.to_string() clearly has the convert/transform implication, even if ommitted for brevity.

I see no path where 5 is a noun and times the verb, nor any verb I can put there that makes it make sense. If you try to stick a verb (iterate?) it becomes clear that 5 is not the noun, the thing performing the iteration, but a complement - X iterates (5 times). Perhaps the block itself having a times object with 5 as an input would make it more standard to me (?).

But I do understand that if something is extremely practical a purist/conceptual argument doesn't go very far.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton