PHPnews.io

Overview for 'yegor256'





The Principle of One

Written by Yegor Bugayenko / Original link on Jun. 14, 2022

When I make a slide deck for a new presentation, invent a new domain name, think about a name for a new Java class, itemize bullet points in an academic paper, even write an email—I try to follow a simple principle which helps me make my content more solid. Well, at least I believe it does. Maybe…


Reflection Means Hidden Coupling

Written by Yegor Bugayenko / Original link on Jun. 5, 2022

Reflective programming (or reflection) happens when 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—they all have this “powerful” fea…