A function name should describe what it does, not when it's run


A function name should describe what it does, not when it's run.

Why? Good function names summarize what happens inside.

#cleancode

Code can be traced to determine when a function is called, so event oriented names convey no new information.
Good func names provide a high-level functionality outline. Event-oriented func names only convey "when". The "what" is far more important.

View original on X