PHPnews.io

Overview for 'yegor256'

How Much Cohesion Is Enough?

Written by Yegor Bugayenko / Original link on Nov. 18, 2019

Which one is better: books.del(42) or books.book(42).del()?I do both and I rarely can tell which one is better. The first optionis shorter, while the second one is more object-oriented. The firstoption is more difficult to extend, while the second one is moreverbose and requires more lines of code, …


Revolutionary Evolution

Written by Yegor Bugayenko / Original link on Nov. 4, 2019

Here is the question I keep hearing almost every time I speak ata conference about object-oriented programming and mynon-traditionalunderstanding of it: “How do I convince the whole team to start doing everything so differently?”(asked herejust recently). Indeed, it’s easy to change your coding hab…


Software Quality Award, 2020

Written by Yegor Bugayenko / Original link on Nov. 2, 2019

This is the sixth year of theSoftware Quality Award. The maximum prizeis still the same—$4,096.The rules are still the same. Read on.Previous years are here:2015,2016,2017,2018,2019.Here is the formto fill out.Important! Starting this years rewards are given as donationsto a Zerocracy project. This …


SQL as a Service

Written by Yegor Bugayenko / Original link on Oct. 28, 2019

I’ve been thinking about this since 2007, somewhere around the timeS3was launched by Amazon.I even tried to implement it a few times, but failed right after thedesign phase. I’ve heard about a startup, which tried to do it too,but also failed. I’m still not surewhether it’s possible to do, but it …


Date/Time Printing Can Be Elegant Too

Written by Yegor Bugayenko / Original link on Sep. 26, 2019

I owe my pretty highStackOverflow reputation to this questionin particular, which I asked a few years ago: How do you print anISO 8601 date in Java?It managed to collect a lot of upvotes since then and 20+ answers, includingmy own one. Seriously,why didn’t Java, such a rich ecosystem, have a built-…


Trust Them to Get the Job Done, Not!

Written by Yegor Bugayenko / Original link on May. 27, 2019

There are twelveprinciples in the Agile Manifesto.The fifth one says: “Build projects around motivated individuals.Give them the environment and support they need,and trust them to get the job done.”I disagree. Strongly. This formula suggests treating people in a binary way: theyare either motivate…