From the point of view of purists, this violates all kinds of best practices (for example, dependence on implementation, tight coupling, opaque dependencies, etc.). I would say this myself, but lately I have been leaning towards simpler solutions, not diving too much into the enterpriseizey functions and keywords. Therefore, if itβs good with you, write such code, if this architecture allows you to quickly develop and test and, most importantly, solve your business problem - itβs just fine.
source share