Repository navigation
Description
Submitted by witek96 on 2012-08-17 11:49:08
I.e. use of gtest or boost::test for unit testing, Boost.Program_options for parsing cl arguments. Same holds for logging, exceptions and very likely many more (i.e. OpenMS::String).
I do not think that it is worthwhile to touch existing code but these OpenMS utility classes should be marked as deprecated and they use in new tools and code discouraged.
Commented by aiche on 2012-08-17 15:35:12:
Thank you for the suggestion. You are right, some parts of OpenMS could be replaced by existing solutions. But this ticket is quite vaguely formulated, therefore I will close it. Please consider making individual suggestions in the form of "Replace Feature X of OpenMS with Feature Y of Library Z".
Regarding the named ones
- boost::test would be an alternative but porting the complete list of tests is not manageable. We currently (if I counted correctly) have 431 test cases using the ClassTest facility.
- Boost.Program_options is I think no alternative, since we have the concept of INI files which is not included in Boost.Program_options or any other CLI parser library I know
- Logging: I agree that the current solution is not ideal but I'm not aware of an actively maintained alternative
- Boost.Log is not part of Boost and had its last update in 2011
- log4cxx had its last release in 2010
- log4cpp has a 4 month old RC after 5 years without a release
- Exceptions, what would be the benefit of using an alternative here?
- OpenMS::String is derived from std::string and I think the STL has a pretty high quality
Commented by cbielow on 2012-08-17 17:25:21:
Agree with Stephan.
Another consideration: introducing strong dependencies to third party libraries in multiple areas also makes us a "slave" of whatever boost&co decide to do in the next release. They might rewrite the API for area Y, while making code in area X much faster. Now you can choose to either upgrade and adapt to their API or not benefit from speed upgrades. I remember the fun that Marc had, when it was decided to upgrade from Qt3 -> Qt4. Could happen again.
Also, more dependencies means more trouble maintaining platform independence and package building.
For OpenMS:String, we've already discussed that the internals need to change, but I see no reason not to stick to STL-string. Our current chaining-capabilities of String are pretty powerful, and Qt for example doesn't have it. And its not a performance critical part--- we're not doing seq-an after all.
I also agree on "cleaning" up what we have, e.g. command line parsing. But the code itself and the way its done (i.e., without third party libs) is fine, since we have pretty unique requirements for parameters, and we use quite a lot of custom functionality, e.g. in TOPPAS.
Commented by witek96 on 2012-08-20 14:51:07:
Hi,
Thanks for sharing your concerns. I am going to create several specific tickets but this will take a bit of time. When done I will close this ticket.
cheers
Activity