It is pretty common to hear people talk about "SOLID code" in talks, blogs and podcasts these days. For the object-oriented programming novice who hears this term for the first time, the Wikipedia article gives a high-level overview, but advice and information about what "SOLID" really means on a practical level can be hard to come across.
This talk aims to clarify what the SOLID principles are and how you can apply them in your work, with the aim of producing easier-to-maintain, de-coupled code with fewer smells. I'll show you PHP examples of each of the five SOLID principles, talk about when and how to implement them in your applications and give you a few other hints about ways you can improve your OOP design.

Comments

Comments are closed.

David Yell at 16:54 on 16 Feb 2017

One of the best SOLID talks I've attended, engaging, paced well and using good examples.

I enjoyed this talk. I'm always open to hearing other good examples of the SOLID principles, but hearing examples on ducks and shapes - these are easy to find and repeat from online sources and the reason behind this is because it's just not easy to come up with a decent example we could all use in the real world for a few of these principles!

So those few principles that used ducks / shapes I felt was a bit of a cop out - hence the docking of one star, but the rest of the talk I can imagine would be useful for newbies to the principles and the speaker - this was his first conf talk - well, you'd never tell, he was confident and engaging!

Good shout out about Auryn (more an 'injector' than a 'container' - completely different so I'd recommend learning and making that distinction clear). It also doesn't shift the problem like other containers do.

So future tip - remove the arbritrary non-real-world examples which are present everwhere online and copied from Uncle Bob (easier said than done) and show us something concrete we may work with instead. Good talk!

Gary Fuller at 17:01 on 16 Feb 2017

So many patterns, so many ducks, so little time! Fascinating talk by an interesting speaker about a complex topic. Looking forward to grabbing the slides and reading the source material.

Brad Bird at 17:02 on 16 Feb 2017

Great talk! Especially as it's your first one I'm really impressed. I was going to follow you on twitter but turns out I already had you on there for some reason.

Really cool talk! Loved the example with Ducks and CakePHP. :)

Mark Kathmann at 10:15 on 17 Feb 2017

Wow. Great talk on SOLID with some well thought through examples to clarify the principles in practice. Good and steady pace and a knowledgeable and engaging speaker. Definitely a highlight.

Great first talk (wouldn't have guessed it was a first), loved the consistent duck examples throughout the presentation, simple explanations for complex concepts.

Katy Ereira at 14:39 on 17 Feb 2017

Really great talk; engaging and humorous, with concrete examples that fully explored these oftentimes abstract concepts.

Covered the solid principals very well. Excellent examples well presented. Eider loved for some of the other devs in our office to attend ;) Will download the slides.

Davo Smith at 20:07 on 17 Feb 2017

Great talk - SOLID is an area that I've been partly implementing by accident, but certainly encouraged to look into using more of the principles in future.

This acronym is well known for a reason - really understanding the five pillars of SOLID will certainly make you a better coder, and the time spent going through them was well spent. Good clear presentation with the right amount of jokes, well done.

Ahmed Khan at 08:10 on 18 Apr 2017

Enjoyed Your talk

Really good talk. Don't know any talk on SOLID principles that is so complete and clear as this one. Even Uncle Bob's talks (most of available online) are more general and only about a half of principles. Couldn't say that it's your first one.
But after couple of years applying those to my code (maybe without observer) still have questions to ask and points to argue about (think all brief talks have same issue). Think it would be good for authors to leave links on last slides about where do they get more advance info to develop themselves with such questions and to level up craftsmanship.