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
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
270
Design It! in a nutshell
nunulk
1
230
PHP Getting Faster
nunulk
0
230
How does learning English broaden your world?
nunulk
0
320
Testing on Laravel
nunulk
1
1.4k
Vue.js + TypeScript + Firebase
nunulk
0
910
Nuxt.js in TypeScript
nunulk
1
390
A startup meets Laravel + Vue.js
nunulk
1
1.9k
Unit Testing Laravel
nunulk
0
450
Other Decks in Programming
See All in Programming
小さく段階的リリースすることで深夜メンテを回避する
mkmk884
2
140
ローコードサービスの進化のためのモノレポ移行
taro28
1
350
Productivity is Messing Around and Having Fun
hollycummins
0
170
snacks.nvim内のセットアップ不要なプラグインを紹介 / introduce_snacks_nvim
uhooi
0
370
これだけは知っておきたいクラス設計の基礎知識 version 2
masuda220
PRO
18
4.1k
なぜselectはselectではないのか
taiyow
2
320
Django for Data Science (Boston Python Meetup, March 2025)
wsvincent
0
290
複雑なフォームと複雑な状態管理にどう向き合うか / #newt_techtalk vol. 15
izumin5210
4
3.7k
MCP世界への招待: AIエンジニアが創る次世代エージェント連携の世界
gunta
4
830
AI Coding Agent Enablement - エージェントを自走させよう
yukukotani
12
4k
Denoでフロントエンド開発 2025年春版 / Frontend Development with Deno (Spring 2025)
petamoriken
1
1.3k
The Evolution of Enterprise Java with Jakarta EE 11 and Beyond
ivargrimstad
0
1.4k
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2.2k
Speed Design
sergeychernyshev
28
870
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Optimizing for Happiness
mojombo
377
70k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.6k
Faster Mobile Websites
deanohume
306
31k
Become a Pro
speakerdeck
PRO
27
5.2k
How to Think Like a Performance Engineer
csswizardry
22
1.5k
Done Done
chrislema
183
16k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
BBQ
matthewcrist
88
9.6k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
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 使ってみたくなりましたか?
ご静聴ありがとうございました