Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PHP at the Next Step
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
nunulk
February 22, 2017
Programming
0
1.6k
PHP at the Next Step
Differences and Similarities PHP 7 and Hack / Laravel in Hack with Laradock
nunulk
February 22, 2017
Tweet
Share
More Decks by nunulk
See All by nunulk
Laravelでテストしやすいコードを書く5 / 5 tips of building testable modules in Laravel
nunulk
0
330
Design It! in a nutshell
nunulk
1
280
PHP Getting Faster
nunulk
0
280
How does learning English broaden your world?
nunulk
0
380
Testing on Laravel
nunulk
1
1.5k
Vue.js + TypeScript + Firebase
nunulk
0
960
Nuxt.js in TypeScript
nunulk
1
450
A startup meets Laravel + Vue.js
nunulk
1
2.1k
Unit Testing Laravel
nunulk
0
500
Other Decks in Programming
See All in Programming
どんと来い、データベース信頼性エンジニアリング / Introduction to DBRE
nnaka2992
1
320
Nostalgia Meets Technology: Super Mario with TypeScript
manfredsteyer
PRO
0
100
Claude Codeセッション現状確認 2026福岡 / fukuoka-aicoding-00-beacon
monochromegane
4
450
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
540
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.1k
API Platformを活用したPHPによる本格的なWeb API開発 / api-platform-book-intro
ttskch
1
150
技術検証結果の整理と解析をAIに任せよう!
keisukeikeda
0
130
AHC061解説
shun_pi
0
410
Understanding Apache Lucene - More than just full-text search
spinscale
0
140
DevinとClaude Code、SREの現場で使い倒してみた件
karia
1
1.1k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
790
Laravel Nightwatchの裏側 - Laravel公式Observabilityツールを支える設計と実装
avosalmon
1
140
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
9
790
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
180
Design in an AI World
tapps
0
180
WCS-LA-2024
lcolladotor
0
490
Building Flexible Design Systems
yeseniaperezcruz
330
40k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
How Software Deployment tools have changed in the past 20 years
geshan
0
33k
Mind Mapping
helmedeiros
PRO
1
130
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
200
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Amusing Abliteration
ianozsvald
0
140
Transcript
PHP at the Next Step @nunulk PHPBLT #6 2017/02/22
いまさらですが、
Hack/HHVM
7.0 • scalar type declarations • spaceship operator • null
coalescing operator • return type declarations 7.1 • nullable type • void return type PHP / Hack
7.2 or later? RFC: under discussion • arrow function [*1]
• pipe operator • generics [*1]: シンタックスは違います PHP / Hack
• enum • type alias • callable type hinting •
null-safe operator • tuple, shape Only in Hack
Hack 使ってみたくなりましたか?
Laravel on Hack [PHPBLT編] @nunulk PHPBLT #6 2017/02/22
None
None
None
Laravel with Laradock
$ composer create-project --prefer-dist laravel/laravel app $ cd app $
git clone https://github.com/Laradock/laradock.git $ cd laradock $ docker-compose up -d nginx hhvm mysql workspace
<?php ↓ <?hh
(Code)
Hack を学んで PHP力 を上げる • 最初は PHP で書いてみる • 徐々に型を増やしていく
• 引数や戻り値の型を厳密に指定する • hh_client で型チェック • nullable を意識する • pipe operator でメソッド分割を美しくする • PHPへ戻る
Hack 使ってみたくなりましたか?
ご静聴ありがとうございました