Главная
Study mode:
on
1
Intro
2
Overview
3
Static Type Checking
4
Inferred Generics
5
Inferred Union Types
6
Two kinds of Arrays
7
Arrays with Generics
8
Hack Arrays
9
Arrays with mixed types
10
Using Optional Fields
11
Type Refinement
12
PHP Standard Library
13
Composing PHP functions
14
Hack Standard Library
15
Hack Pipeline with HSL
16
Type Checked Regex
17
XHP: Type safe HTML
18
Fix with automation
19
Move code into functions
20
DB Types: Before
21
Inferred Return Types
22
Untyped code
23
Eliminate PHP Dependencies
24
HHVM 4.0 Upgrade
25
Lessons Learned
Description:
Explore Slack's journey of migrating from PHP to Facebook's Hack programming language in this 31-minute conference talk from the International PHP Conference. Discover the surprising, challenging, and beneficial aspects of transitioning a multi-million line PHP codebase. Learn about Hack's features, including static type checking, inferred generics, union types, and type-safe HTML with XHP. Gain insights into the differences between PHP and Hack arrays, type refinement, and the Hack Standard Library. Understand the process of eliminating PHP dependencies and the lessons learned during the migration. Draw inspiration for your own projects as the speaker reflects on the benefits and drawbacks of Hack, offering valuable perspectives for the PHP community.

PHP to Hack - An Incrementally Typed Adventure at Slack

International PHP Conference
Add to list