Reflection Means Hidden Coupling

Reflective programming (or reflection) happenswhen your code changes itself on the fly. For example, a method of a class, when we call it,among other things adds a new method to the class(also known as monkey patching). Java, Python, PHP, JavaScript, you name it���theyall have this ���powerful��� feature. What���s wrong with it? Well, it���s slow, dangerous,and hard to read and debug.But all that is nothing compared with the coupling it introduces to the code.

[image error]Wheelman (2017) by Je...
 •  0 comments  •  flag
Share on Twitter
Published on June 04, 2022 17:00
No comments have been added yet.