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
320
Design It! in a nutshell
nunulk
1
270
PHP Getting Faster
nunulk
0
270
How does learning English broaden your world?
nunulk
0
370
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
AIコーディングエージェント(NotebookLM)
kondai24
0
240
re:Invent 2025 のイケてるサービスを紹介する
maroon1st
0
150
LLMで複雑な検索条件アセットから脱却する!! 生成的検索インタフェースの設計論
po3rin
4
990
AI 駆動開発ライフサイクル(AI-DLC):ソフトウェアエンジニアリングの再構築 / AI-DLC Introduction
kanamasa
11
4.3k
GISエンジニアから見たLINKSデータ
nokonoko1203
0
190
C-Shared Buildで突破するAI Agent バックテストの壁
po3rin
0
420
AI Agent Dojo #4: watsonx Orchestrate ADK体験
oniak3ibm
PRO
0
110
チームをチームにするEM
hitode909
0
400
大規模Cloud Native環境におけるFalcoの運用
owlinux1000
0
200
tparseでgo testの出力を見やすくする
utgwkk
2
300
TestingOsaka6_Ozono
o3
0
180
Go コードベースの構成と AI コンテキスト定義
andpad
0
140
Featured
See All Featured
How to Ace a Technical Interview
jacobian
281
24k
BBQ
matthewcrist
89
9.9k
30 Presentation Tips
portentint
PRO
1
180
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.2k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
The Curse of the Amulet
leimatthew05
0
4.9k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
31
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
170
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
0
67
Rails Girls Zürich Keynote
gr2m
95
14k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
0
320
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
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 使ってみたくなりましたか?
ご静聴ありがとうございました