You are here

An introduction to OOP via a Drupal 8 lens

Wednesday, May 13, 2015

I posted this on twitter a while ago, and sadly only just got around to saving it to my own website, so apologies for those that have already seen it.

Earlier in the year (around Drupal Camp London time) I decided I wanted to actually dedicate some time to properly getting an overview of Object Oriented Programming.  I have used elements of OOP before when extending objects, particularly any part of the cTools Drupal module suite.  But I just wanted to understand more of the Nomenclature used when developing a brand new item within OOP.  At the London Drupal Camp there was a great talk on OOP which introduced a lot of interesting areas, some of which I already knew, others were new to me, such as class, object, property, method, trait, interface, abstract class etc.

So, what was the next step in this, well I wanted to see how OOP was going to be used in Drupal 8, and use that to learn better OOP naming and standards.  And thus the attached pdf document was born.  It just introduces a few of the concepts mentioned earlier, and also shows, using PHPstorm, the inheritance tree for a node.  I hope it is of interest to others, and if anyone wants to suggest improvements, feel free to message me on twitter @retrodans.

Technologies: 

Blog & News

Monday, March 7, 2016

Okay, I know it is awful practice to put 2 things into one article, but I didn't want to write two tbh, so I will keep this tidy, and you can grab out what you need.

 

Subscribe to Blog & News

About

Cultivating a better future, with the seeds of better websites

For several years I have evolved through one of the largest media charities in the UK to the role of Senior developer.  I loved it there, but have to stepped out on my own as a freelance developer.

My main skills are with the Drupal CMS, developing code for it, ensuring standards through projects (whether that design, development, or planning), and leading teams to build applications they can be proud of.

Digital Consultancy, Web Development and Project Architecture are where I try to focus my skills, supporting my passion and desire to create stunning websites on time, in budget, and meeting your objectives.

To build a powerful web presence, I combine my creative, technical, and managerial experience (alongside a good splash of passion) which I have cultivated over 10 years in the industry, creating websites people want to shout about.

More on how I can help