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
220
Design It! in a nutshell
nunulk
1
190
PHP Getting Faster
nunulk
0
180
How does learning English broaden your world?
nunulk
0
270
Testing on Laravel
nunulk
1
1.2k
Vue.js + TypeScript + Firebase
nunulk
0
860
Nuxt.js in TypeScript
nunulk
1
290
A startup meets Laravel + Vue.js
nunulk
1
1.7k
Unit Testing Laravel
nunulk
0
370
Other Decks in Programming
See All in Programming
⼤規模⾔語モデルの拡張(RAG)が 終わったかも知れない件について
nearme_tech
23
15k
Rubyでたのしむクリエイティブコーディング/Enjoy Creative coding with Ruby
chobishiba
1
180
Behind VS Code Extensions for JavaScript / TypeScript Linnting and Formatting
unvalley
5
900
Site Reliability Engineering for GMO
pyama86
7
1k
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
910
PostmanでAPIの動作確認が楽になった話
h455h1
0
160
ScalarDBを用いたマイクロサービスにおけるデータ管理 (Database Engineering Meetup #2)
scalar
0
110
MetricKitで予期せぬ終了を検知する話 / Detect unexpected termination with MetricKit
nekowen
1
180
Anthropic Cookbook のおすすめレシピ
schroneko
7
870
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
4
820
try!Swift Tokyo 2024 参加報告 LT
akidon0000
1
220
Hanami and htmx
bkuhlmann
0
210
Featured
See All Featured
In The Pink: A Labor of Love
frogandcode
138
21k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
2
3.4k
Visualization
eitanlees
136
14k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
6
1.5k
Art, The Web, and Tiny UX
lynnandtonic
289
19k
Into the Great Unknown - MozCon
thekraken
10
990
What the flash - Photography Introduction
edds
64
11k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
78
42k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
125
32k
How to train your dragon (web standard)
notwaldorf
73
5.2k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Producing Creativity
orderedlist
PRO
337
39k
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 使ってみたくなりましたか?
ご静聴ありがとうございました