PHPnews.io

Overview for 'yegor256'

To Measure or Not to Measure

Written by Yegor Bugayenko / Original link on Jun. 23, 2020

The question was asked on StackExchange nine years ago (just around the time the site was launched): “If not lines of code, then what is a good metric by which to measure the effectiveness of remote programmers.” The answers, not surprisingly, were all along this line: programmers are not supposed…


Veil Objects to Replace DTOs

Written by Yegor Bugayenko / Original link on May. 19, 2020

Here is a new idea I discovered just a few days ago while working with Codexia, a Ruby web app. I had to fetch data rows from PostgreSQL and return objects to the client. It’s always been a problem for me, how to do that without turning objects into DTOs. Here is the solution I found and gave a nam…


EO the Career Killer

Written by Yegor Bugayenko / Original link on May. 13, 2020

It’s time to answer one of the most popular questions I hear from junior programmers when they meet me at a software conference or online: What is the point of studying Elegant Objects (the new object-oriented paradigm I’ve been preaching for the last five years) if almost nobody is using it on rea…


Open Source Arms Race

Written by Yegor Bugayenko / Original link on May. 5, 2020

Some companies massively invest in open source software projects, while others still remain skeptical and stay away from this trend. What’s in it for those philanthropists, like Google, IBM or Microsoft? Why spend money on something that doesn’t belong to them and is shared among all of us develope…


Prefixed Naming

Written by Yegor Bugayenko / Original link on Mar. 3, 2020

If you look at the source code of Takes or Cactoos for the first time, you most probably, like many others, will be triggered by the naming convention, which implies that most class names have two-letter prefixes: BkSafe, RqFake, RsWithStatus, TkGzip, and so on. To be honest, I haven’t seen a singl…


Fat vs. Skinny Design

Written by Yegor Bugayenko / Original link on Feb. 19, 2020

It seems that type/class hierarchies in OOP may be designed in two extreme ways: either with full encapsulation of data in mind; or with just a few interfaces making raw data visible, and letting classes deal with it, parse it, and turn it into smaller data elements. You may be surprised, but I’m…