Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
320
Design It! in a nutshell
nunulk
1
260
PHP Getting Faster
nunulk
0
270
How does learning English broaden your world?
nunulk
0
360
Testing on Laravel
nunulk
1
1.5k
Vue.js + TypeScript + Firebase
nunulk
0
950
Nuxt.js in TypeScript
nunulk
1
440
A startup meets Laravel + Vue.js
nunulk
1
2k
Unit Testing Laravel
nunulk
0
490
Other Decks in Programming
See All in Programming
TUIライブラリつくってみた / i-just-make-TUI-library
kazto
1
400
Flutter On-device AI로 완성하는 오프라인 앱, 박제창 @DevFest INCHEON 2025
itsmedreamwalker
1
120
これだけで丸わかり!LangChain v1.0 アップデートまとめ
os1ma
6
1.9k
まだ間に合う!Claude Code元年をふりかえる
nogu66
5
850
愛される翻訳の秘訣
kishikawakatsumi
3
330
宅宅自以為的浪漫:跟 AI 一起為自己辦的研討會寫一個售票系統
eddie
0
510
tparseでgo testの出力を見やすくする
utgwkk
2
250
Github Copilotのチャット履歴ビューワーを作りました~WPF、dotnet10もあるよ~ #clrh111
katsuyuzu
0
120
ZOZOにおけるAI活用の現在 ~モバイルアプリ開発でのAI活用状況と事例~
zozotech
PRO
9
5.8k
大規模Cloud Native環境におけるFalcoの運用
owlinux1000
0
130
AI時代を生き抜く 新卒エンジニアの生きる道
coconala_engineer
1
330
実は歴史的なアップデートだと思う AWS Interconnect - multicloud
maroon1st
0
220
Featured
See All Featured
From π to Pie charts
rasagy
0
86
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
0
59
Become a Pro
speakerdeck
PRO
31
5.7k
Building the Perfect Custom Keyboard
takai
1
660
Site-Speed That Sticks
csswizardry
13
1k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.2k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
58
Mobile First: as difficult as doing things right
swwweet
225
10k
Prompt Engineering for Job Search
mfonobong
0
110
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 使ってみたくなりましたか?
ご静聴ありがとうございました