You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
Using a class object to implement an ErrorReporter which is initialized just before processing, and then gets destructed if an exception occurs thereby allowing an error message to be reported within the ErrorReporter destructor (an idea similar to the RAII concept), with the aim of improving code readability/tidiness.
Pass std::size_t function parameters by const &. Although this has no compiler benefits as std::size_t is a base type, I think it would be better to use const & consistently for all standard library data types. As an exception, I think it would be ok to not pass by const & for built-in data types such as int, double, bool, etc.
The files in the tools directory should be moved to a separate repository as they could be reused in separate projects. This would require a better understanding of CMake.
Using python for the interface side of things would make more sense. It would allow easy access to packages such as matplotlib, which could have been useful for this project. Any intensive processing would remain in c++.
For a larger project it would also be important to use automated testing, and improve/add documentation.
This issue has been created in retrospect to hint at possible improvements to the code within this project. These improvements could have included:
std::size_tfunction parameters byconst &. Although this has no compiler benefits asstd::size_tis a base type, I think it would be better to useconst &consistently for all standard library data types. As an exception, I think it would be ok to not pass byconst &for built-in data types such asint,double,bool, etc.CMake.matplotlib, which could have been useful for this project. Any intensive processing would remain in c++.For a larger project it would also be important to use automated testing, and improve/add documentation.