Back to top

Blisstering Session at DrupalCon New Orleans -- Typed Drupal

This year’s North American DrupalCon in New Orleans saw an enormous number of proposed sessions. With a record breaking 767 session submissions, you can only imagine the state of the chairs who were responsible to select the sessions for the event out of the proposed pile.


A session from Blisstering was selected in the PHP session track, given by Aditya on Typed Drupal. Typed Drupal, is a made up term to represent a great combination of Drupal 8 and PHP 7. The session was just after the DrupalCon’s most interesting part, that is, the Driesnote.

Aditya kicked off the session with a debate on weakly typed vs strongly typed. The debate led to the conclusion of advantages of strongly typed language and its following features:

  • Errors/Warnings in your editor as you code.

  • Better overall code readability.

  • Ease of Refactoring.

  • Less bugs in your code.

 

The session went on to discuss the following topics:

  • Typing in PHP 7.

  • Scalar Type hints in PHP 7 and How to use them.

  • Return Type declarations and how to use them.

  • Using Strict Typing mode in PHP 7

  • Handling Type error exceptions.

  • Designing “Typed” Drupal modules with PHP 7.


Below is the session video and the presentation to make things much simpler.

Let us know how you liked it in the comments! :)

on 23 May 2016 by
Nikhil Bondre