DPC2019: Interface Segregation for PHP - Dan Ackroyd

Опубликовано: 02 Июль 2019
на канале: Ibuildings Dutch PHP Conference
482
9

"Interface Segregation for PHP by Dan Ackroyd

When people give talks on the ""S.O.L.I.D."" design principles one of the letters that doesn't get enough attention is the ""i"" - the ""interface segregation principle"". This talk seeks to redress that imbalance by going into a bit more in-depth into:


An introduction to interface segregation and an explanation of how it makes your code easier to test.
Why in PHP we need to apply the principle more broadly, to make types be more specific, so that code is more reasonable. *Me babbling on about emotions, and how good code is boring. Which is good!


What will people learn from your talk:


The difference between code being reasonable and understandable.
The purpose behind using types to make your code be less likely to have bugs.
How 'interface segregation' applies to more than just classes in PHP.
How to overcome some emotional barriers to writing clean code.



About Dan Ackroyd

Dan is the maintainer of the Imagick PHP extension and occasional contributor to PHP core.

After making video games for Playstation, PCs and mobile phones, Dan moved into making websites where he is happiest making working as a backend PHP developer.

Currently, Dan is launching http://opensourcefees.com/ which is aimed at making it possible for companies to support Open Source projects.


This talk was given at the Dutch PHP Conference in 2019, organised and hosted by Ibuildings. Visit https://phpconference.nl or https://www.ibuildings.nl for more information."


Смотрите видео DPC2019: Interface Segregation for PHP - Dan Ackroyd онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Ibuildings Dutch PHP Conference 02 Июль 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 482 раз и оно понравилось 9 людям.