Save the Date: Chris Shattuck AMA on Reddit is November 26

Are you ready to get the truth, the whole truth, and nothing but the truth...? Don't worry, you still have a week to prepare!

Mark your calendars, because next week is when you'll get your chance to ask Chris Shattuck ANYTHING! Just tune into r/Drupal on Tuesday, November 26 starting at 11 a.m. EST to get all the juicy details.

In the meantime, you can brainstorm about what kind of questions you want to ask (maybe about BuildAModule, Drupal, start-ups, or why Dominion is such an awesome game), and you should also check out some of the new Object Oriented Programming videos in the Drupal 8 Developer Prep collection.

5 NEW videos added in "Drupal 8 Developer Prep"

A summary of staying sane with OOP, and our use case for re-factoring - 1:43

We're about to dive into some re-factoring of our example code, but before we do, we do a quick review of things you can keep in mind to keep yourself from fretting too much about your code.

(FREE!) How and why to use static methods in classes - 5:21

Sometimes there are methods that you'd like to be able to call on their own without going through instantiating a new object. The "static" keyword does exactly that. Static methods still make the relationship between methods and their class container explicit - which is a win over traditional procedural functions - but without having to needlessly create objects.

Refactoring to add a new "Builder" class, and how to decide when to use a static method - 5:09

Now that you know how to use static methods, how do you figure out when to use them? In this video we look at one example where we generalize an idea from our code and decide how to expose the methods. It's more fun than it sounds, I swear.

What a "controller" is, and how to implement one in our code - 3:41

Early on in this series, we created a "controller" inside of our Drupal 8 module. If you've never worked with object-oriented code before, you might be a little confused about what the role of a controller is. No problem, here we make it simple and explore an example in our code.

How to inherit methods and properties from another class - 3:51

Over the next few videos we're going to look at a few different ways to allow one class benefit from the work we've done in another class. The first method we'll look at is how to "inherit" another classes methods and properties. If you've never seen this before, you'll likely immediately see the application in your own projects.

 

Add to playlist

Add to , or

Add to new playlist:

Add to playlist
This is a member-only feature
But, it's easy to become a member

Add to cart:


Loading...
Contact us

Below are the supported keyboard shortcuts for our video player.

space
Start / stop video
shift
Go to next video
shift
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
1...9
Jump to a percentage (2 is 20%, for example)
f
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
$29
1 month
$156
6 months
10% off
$276
12 months
20% off
All memberships come with the following:
24 / 7 access to the entire 1800+ video library
An innovative video player with a rolling transcript
Extensive Drupal and cross-platform training
A thorough and thoughtful training style
Progress tracking
Take notes on specific video sections
Intuitive multi-user management
How many users?
user
Go solo with a single user, or give multiple team members access through one account and get discounts by bundling multiple users into a single membership.