|
|
|
|
|
by Orphis
32 days ago
|
|
And the day you add a way to batch import request through another code path, you may forget the validation. Having it in the lower layer is correct, a proper optimizing compiler should be able to detect there's a single code path to the function and that the checks have already been done, skipping the second check. |
|
[1]: https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...