Coding + Development


Many times we developers have come across the perfect contributed module, with a section of code that just doesn't do it for us. Since the Drupal infrastructure is Open to all, it is simpler to take that awesome-ish module and make the changes we need to make it full on awesome. Then we need to take those changes and apply it back to the module and let the whole world bask in the awesome, but we don't get to commit, to Git. (Rule of threes). Therefore we need to create a patch that allows the maintainer of the module to easily combine your great code with theirs.

Learn to build complex, accessible widgets

Assistive technologies use the HTML of a page to build a separate document object model (AX Tree) that is exposed to output channels like a screen reader or braille device. Semantic HTML, a term you’ve surely encountered, enriches the AX Tree representation, but it is limited by the HTML specification. The Web Accessibility Initiative -- Accessible Rich Internet Applications (WAI-ARIA) -- tools let us infuse our HTML with additional application semantics.

Drupal on Docker

You may or may not have heard the buzz around Docker, the container-based infrastructure tool. We'll give an overview of what Docker is, and how Stanford is using Docker to maximize resources when running Drupal websites in the cloud.

It will be helpful, but not necessary, to have a working understanding of the technology stack underlying a load-balanced web server.

Inventing The Container or: WTH Is A PHP Container And Why Should I Care?

Seeker: What does the Container contain?

Guru: Dependencies.

Seeker: Dependencies of what?

Guru: Everything that's dependency-injected.

Seeker: 'Dependency-injected' by what?

Guru: The Container.


This mostly-beginner talk will untangle the seeming tautology of dependency injection and service containers into terms that hopefully don't seem so confusing or strange.

Using very simple code examples, we'll seek to understand dependency injection.

Then we'll begin to design a container to manage our dependencies.

On PhpSpec, BDD, and Not-the-Drupal Way

PhpSpec is a toolset for building out testable pieces of functionality strictly designed to meet (and only meet) the project requirements that you have made explicit. Identify your inputs, test your expected outputs. That's it.

Wait! Don't go. This is not a look-at-this-cool-tool talk. This is a live identity crisis, with a demo. How do we as developers mature our skills and deliver testable, functional code while we continue to work on Drupal 7? 

Talking through that question includes:

7 to 8: Transitioning From theme() and Theme Functions to Render Arrays and Templates

Render arrays aren't new in Drupal 8. For years they have shared responsibility with theme() when rendering a page and everything in it. Don't call theme() in Drupal 8, though. It's gone. Render arrays are taking over and you should already be using them in Drupal 7.

Theme functions, such as theme_image() and theme_item_list(), are also losing the battle. They can still exist in Drupal 8, but templates and preprocess/process functions are far more common. Templates aren't new either, but like render arrays, they are far superior.

Start using both today. This session has your back.

Field of Dreams

Drupal's Field API is spectacular. It is not only awesome for developers who are looking to define a custom field, but for those that are looking to display content in a certain way. When coupled with the Field Group API, you are able to unlock the strengths of Thor on your content types.


Subscribe to RSS - Coding + Development