Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
PHP at the Next Step
nunulk
February 22, 2017
Programming
0
1.5k
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
190
Design It! in a nutshell
nunulk
1
160
PHP Getting Faster
nunulk
0
130
How does learning English broaden your world?
nunulk
0
220
Testing on Laravel
nunulk
1
960
Vue.js + TypeScript + Firebase
nunulk
0
770
Nuxt.js in TypeScript
nunulk
1
160
A startup meets Laravel + Vue.js
nunulk
1
1.3k
Unit Testing Laravel
nunulk
0
280
Other Decks in Programming
See All in Programming
Node.js 最新動向 TFCon 2022
yosuke_furukawa
PRO
5
2.6k
アプリのログをチーム外で活用してもらうためにやったこと
shotakashihara
0
130
microCMS × Shopifyで、ECサイトがリニューアル後急成長した話
microcms
0
450
PublishでWebサイトを構築してみた / generate_website_with_publish
uhooi
2
110
Kotlin KSP - Intro
taehwandev
1
460
Microsoft Teams の 会議アプリ開発のはじめかた / How to start Microsoft Teams app development
karamem0
0
1.5k
ebpfとWASMに思いを馳せる2022 / techfeed-conference-2022-ebpf-wasm-amsy810
masayaaoyama
0
490
Reactでアプリケーションを構築する多様化
sakito
4
3.1k
TDX22: User-Mode DB Ops
ca_peterson
3
1.1k
実録mruby組み込み体験
coe401_
0
100
GraphQL+KMM開発でわかったこと / What we learned from GraphQL+KMM development
kubode
0
100
もしも、 上司に鬼退治を命じられたら~プロジェクト計画編~
higuuu
0
270
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
31
5.8k
Put a Button on it: Removing Barriers to Going Fast.
kastner
56
2.3k
Statistics for Hackers
jakevdp
781
210k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
100
5.9k
Become a Pro
speakerdeck
PRO
3
770
Building Your Own Lightsaber
phodgson
94
4.6k
A better future with KSS
kneath
225
15k
How GitHub (no longer) Works
holman
296
140k
Product Roadmaps are Hard
iamctodd
34
6.1k
The Illustrated Children's Guide to Kubernetes
chrisshort
14
34k
Optimizing for Happiness
mojombo
365
63k
The MySQL Ecosystem @ GitHub 2015
samlambert
238
11k
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 使ってみたくなりましたか?
ご静聴ありがとうございました