I feel less and less able to write code. At present, there is a problem, that is, when does
need to be judged, and when is the judgment redundant and unnecessary?
for example,
1, do you judge the addition, deletion, modification and query of the database every time?
2. Do you judge the redis operation every time?
is there a more concise way to write about judgment? I really feel redundant to judge one step at a time.