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
290
Design It! in a nutshell
nunulk
1
240
PHP Getting Faster
nunulk
0
240
How does learning English broaden your world?
nunulk
0
340
Testing on Laravel
nunulk
1
1.5k
Vue.js + TypeScript + Firebase
nunulk
0
920
Nuxt.js in TypeScript
nunulk
1
420
A startup meets Laravel + Vue.js
nunulk
1
2k
Unit Testing Laravel
nunulk
0
460
Other Decks in Programming
See All in Programming
Rails Frontend Evolution: It Was a Setup All Along
skryukov
0
230
Startups on Rails in Past, Present and Future–Irina Nazarova, RailsConf 2025
irinanazarova
0
150
The Modern View Layer Rails Deserves: A Vision For 2025 And Beyond @ RailsConf 2025, Philadelphia, PA
marcoroth
2
620
チームのテスト力を総合的に鍛えて品質、スピード、レジリエンスを共立させる/Testing approach that improves quality, speed, and resilience
goyoki
5
980
なぜ適用するか、移行して理解するClean Architecture 〜構造を超えて設計を継承する〜 / Why Apply, Migrate and Understand Clean Architecture - Inherit Design Beyond Structure
seike460
PRO
3
780
ペアプロ × 生成AI 現場での実践と課題について / generative-ai-in-pair-programming
codmoninc
2
20k
A full stack side project webapp all in Kotlin (KotlinConf 2025)
dankim
0
130
レベル1の開発生産性向上に取り組む − 日々の作業の効率化・自動化を通じた改善活動
kesoji
0
260
状態遷移図を書こう / Sequence Chart vs State Diagram
orgachem
PRO
2
160
Rubyでやりたい駆動開発 / Ruby driven development
chobishiba
1
740
顧客の画像データをテラバイト単位で配信する 画像サーバを WebP にした際に起こった課題と その対応策 ~継続的な取り組みを添えて~
takutakahashi
1
150
設計やレビューに悩んでいるPHPerに贈る、クリーンなオブジェクト設計の指針たち
panda_program
6
2.3k
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Raft: Consensus for Rubyists
vanstee
140
7k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.7k
The Pragmatic Product Professional
lauravandoore
35
6.7k
GraphQLとの向き合い方2022年版
quramy
49
14k
Into the Great Unknown - MozCon
thekraken
40
1.9k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Balancing Empowerment & Direction
lara
1
440
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.3k
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 使ってみたくなりましたか?
ご静聴ありがとうございました