Tag php
Google Cloud NEXT '17 - Using Google Container Engine to Deploy Scalable and Secure PHP Applications
Advantages of Compute Engine for PHP
- Easy to spin up apps like WordPress (via cloud launcher)
- Easy to spin up LAMP stack (via cloud launcher)
- Low barrier of entry (it’s just VMs people!)
- Autoscaling instance groups
- Easy SSL firewall
Retroactive Unit Testing
So we all know that we should be writing unit tests for our code, right? And on top of that we should be using behaviour driven tests like Behat as part of our continuous integration.
But what about those libraries, modules and websites you wrote ages ago? They don’t have unit tests…
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. Dependency Injection in Drupal 8
Dependency Injection in Drupal 8
What is Dependency Injection?
Injecting the dependency into your class
DrupalCon NOLA Notes. Get off the Island - But build bridges back!
Get off the Island - But build bridges back!
- Complex modules with many custom classes, entities etc can become tightly coupled to Drupal itself
- Even with seperation of concerns it is easy for tighy-coupling to creep in e.g. using
variable_get
in a PHP class - Hard to isolate and test classes
→
1