Harry Nguyen
Jul 20, 2017 · 1 min read

is it just me or anyone else feels annoyed with naming such as “reducer” and “thunk”. I mean we got it the first time, you don’t have to reinforce those concepts in our faces repeatedly by such crappy naming.

such names are good when you write some toy project to demonstrate ideas to people and maybe teach (patronize) them a few things. When you write libraries and actual products you want names that speak the domain language or the use case that the pattern applies to. Your naming should tell WHAT your code is trying to do not HOW (“reduce” what?).

In this case the “thunk” is such an useless name of the prop, imo it should be something like “loader”, “willMount” or “didMount” works too, but again they are too bogged down to the HOW.

)

    Harry Nguyen

    Written by