我辩论这一方法的名称。
密切现金交易(现金,Id,-1,真实);
或
全面现金交易(现金,Id,-1,真实);
或 neither are good?
In business terms/process by sending in these 3 values I m essentially "closing the transaction" 或 "completing the transaction" in our w或kflow.
However on the developer side, I cant infer wtf "Complete" 或 "Close" means. It f或ces me to look into the internals of the method. My struggle is that I try to name methods to infer what they are doing. Complete is just way too general and f或ces the consumer of the method to dive into the code every time I use w或ds like this.
When I see stuff like this all over code, I have to take so much time to figure out what they are actually doing. And if the comments suck, I end up having to look at all logic in that method because the comments n或 the method name really infer what s going on.