Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

PHP to Hack - An Incrementally Typed Adventure at Slack

International PHP Conference via YouTube

Overview

Explore the journey of migrating Slack's multi-million line PHP codebase to Facebook's Hack programming language in this keynote address from the International PHP Conference 2019. Delve into the surprising, challenging, and beneficial aspects of the migration process, examining the pros and cons of Hack and identifying areas where the PHP community can draw inspiration. Learn about key topics such as the Language Server Protocol, type errors, generics, static type checking, inference, and the Hack Standard Library. Discover practical insights on fixing bugs, automated tooling, database interactions, and async/await functionality. Gain valuable lessons on test pyramids, unit tests, and best practices for considering a switch to Hack. Understand the intricacies of this incrementally typed adventure and its implications for large-scale PHP projects.

Syllabus

Introduction
History
Language Server Protocol
Type Errors
Generics
Static type checking
Inference
Multiple types
Arrays
Shapes
Examples
Type refinement
PHP standard library
Hack Standard Library
Hack Standard Pipeline
Regular Expressions
XHP
Journey
Fixing bugs
Automated tooling
Hack
Entry Point
Getting Types
Database
Async await
Inference return type
Untyped functions
Fixing errors
Coverage
Strict
Eliminate vendor code
Upgrade to latest version
Lessons learned
Test pyramid
Unit tests
Should you switch
Hack best features

Taught by

International PHP Conference

Reviews

Start your review of PHP to Hack - An Incrementally Typed Adventure at Slack

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.