Re:The use of ‘class’ for things that should be simple free ...
by Viliam1234 on Sunday May 29, 2022 @04:25PM
(#31552574)
> My litmus test for it is if the documentation has more lines than the code.
Not sure I am understanding this correctly. Would undocumented libraries be the best or the worst according to this metric?
Re:The use of ‘class’ for things that should be simple free ...
by sagarm on Monday May 30, 2022 @01:01PM
(#31561034)
Documentation substantially longer than the implementation can mean the abstraction/interface is more complex than simply reimplementing for a specific use case would have been.
Sometimes you want a library anyway in these circumstances though, since the expertise required for the short implementation might be significant.
I struggle with that all the time. Libraries always tend to accumulate such trivia. My litmus test for it is if the documentation has more lines than the code.
I hate libraries that are a mile wide and an inch deep.