75 ms·
False dichotomy; cart before the horse? My general approach is validate inputs before running "the thing". Check if file exists Parsing CSV file is moved to
by hnrodey 2y ago
False dichotomy; cart before the horse?
My general approach is validate inputs before running "the thing".
Check if file exists
Parsing CSV file is moved to another class, do more validations on data
HTTP calls, if failed, shouldn't eject the entire algo.
FWIW, that Go code might be "safer" but it hurt my eyes.