DrupalCon NOLA Notes. Rethinking Loops

Rethinking Loops

Sandbox - composer create-project johnkary/rethinking-loops

FizzBuzz

  • Coding exercise
  • Print ‘Fizz’ for multiples of 3
  • Print ‘Buzz’ for multiples of 5
  • Print ‘FizzBuzz’ for multiples of both
  • Otherwise print the number

DrupalCon NOLA Notes. Containing Chaos with Kubernetes

Containing Chaos with Kubernetes

Why Kubernetes

  • Scenario: Many Dockerfiles and containers needed to power application (Frontend/services container and DB container)
  • Splitting the containers down, as is best practice, to make them more ephemeral
  • Many containers on same machine = single point of failure

DrupalCon NOLA Notes. Drupal 8, where did the code go? From info hook to plugin

Drupal 8, where did the code go? From info hook to plugin

Background

  • Dependency injection container (DIC)
    • Container object that contains instances of stateless services (current user, url generator etc)
  • New routing system
    • Names instead of paths
    • Route name is just a machine name connected to a path and callbacks to provide title, content access
  • Namespaced classes like Drupal\search\Plugin\Block\SearchBlock

DrupalCon NOLA Notes. Drupal.org is Changing - Content Restructure, Issue Credits, Composer and more

Drupal.org is Changing: Content Restructure, Issue Credits, Composer and more

Content Restructure

  • Refresh of documentation
  • UI refresh
  • Blogs

DrupalCon NOLA Notes. The Future of Drupal Performance - Parallel Worlds

The Future of Drupal Performance - Parallel Worlds

We load:

  • Service container
  • All the classes

We run:

  • Session intialization
  • Authorization
  • Routing

We always start from zero (even though we cache a lot)

Not necessarily bad, just how the CGI model works. It means we do potentially unecessary work.