Re:Bosque Programming Language
by reikonomusha on Wednesday April 17, 2019 @10:37AM
(#19682931)
Can you show me some examples? I understand complexity, I also understand incidental complexity, but I’m not sure about it being accidental.
Google the "Out of the Tar Pit" paper by Moseley and Marks. After incidental complexity, Accidental complexity is the all remaining stuff. It's the complexity you wouldn't have to deal with in an ideal perfect world. For example: manual memory management, performance optimisations, JavaScript equality semantics, aspect-oriented programming, dependency injection frameworks or any other ad-hoc technology to work around issues further down in the stack.
That sounds bizarro. Accidental complexity is pretty obvious to show in an example of a function or an application architecture or class.
It might be harder to define in abstract (except as e.g. "complexity not imposed inevitably by the functionality/problem domain"), but it's very easily observable in specific code examples.