Better HN
topnewbestaskshowjobs
Log inSign up

justopinions

1 karma · joined Nov 10, 2016 (10y ago) · 1 submissions

Submissions

comment 10y ago · link · parent

PathFinder is poorly designed imo. What is the result of calling getPath or getMinLength before calling findPath? The correct way of returning the path calculation is

Path findPath();

not void findPath() which stores the results as fields on PathFinder.