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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
nunulk
February 22, 2017
Programming
1.6k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
PHP at the Next Step
Differences and Similarities PHP 7 and Hack / Laravel in Hack with Laradock
nunulk
February 22, 2017
More Decks by nunulk
See All by nunulk
Laravelでテストしやすいコードを書く5 / 5 tips of building testable modules in Laravel
nunulk
0
340
Design It! in a nutshell
nunulk
1
300
PHP Getting Faster
nunulk
0
290
How does learning English broaden your world?
nunulk
0
410
Testing on Laravel
nunulk
1
1.6k
Vue.js + TypeScript + Firebase
nunulk
0
970
Nuxt.js in TypeScript
nunulk
1
450
A startup meets Laravel + Vue.js
nunulk
1
2.1k
Unit Testing Laravel
nunulk
0
510
Other Decks in Programming
See All in Programming
使用 Meilisearch 建立新聞搜尋工具
johnroyer
0
100
Even G2とAWSで推しのエージェントを召喚しよう!
har1101
1
140
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
0
410
継続モナドとリアクティブプログラミング
yukikurage
3
390
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
200
Hunting Vulnerabilities in Symfony with LLMs
vinceamstoutz
0
570
IBM Bobを活用したレガシーアプリの最新化
oniak3ibm
PRO
1
240
気圧・高度・GPSを記録&可視化するアプリ「Koudo」を作った話
hjmkth
1
340
霧の中の代数的エフェクト
funnyycat
1
280
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
4
1.6k
The Bowling Game- From Imperative to Functional Programming - Part 1
philipschwarz
PRO
0
280
【やさしく解説 設計編・中級 #1】一つの車に、運転手は一人 ~ある倉庫システムの事例から~
panda728
PRO
0
110
Featured
See All Featured
BBQ
matthewcrist
89
10k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
200
Fireside Chat
paigeccino
42
4k
Leo the Paperboy
mayatellez
8
1.9k
Making Projects Easy
brettharned
120
6.7k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
The Language of Interfaces
destraynor
162
27k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
67
56k
We Are The Robots
honzajavorek
0
270
4 Signs Your Business is Dying
shpigford
187
22k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
480
Music & Morning Musume
bryan
47
7.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 使ってみたくなりましたか?
ご静聴ありがとうございました