vak: (Default)
Serge Vakulenko ([personal profile] vak) wrote 2024-03-16 10:01 pm (UTC)

Противоречия между принципами есть, да. Что делать: теория отражает жизнь. Многие противоречия известны и документированы. К примеру, на странице для SLA указаны противоречащие принципы:
  • MIMC: Adhering to SLA results in more methods and classes.
  • PSU: The purpose of SLA is to avoid mental grouping. On the other hand just adhering to SLA and neglecting PSU may result in the opposite: The reader of the code has to do mental inlining. Sometimes it can be more readable to allow a small amount of statements on the “wrong” level of abstraction (like having a guarding if statement in a higher level method).

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org