Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Laravel on Hack
Search
nunulk
February 11, 2017
Programming
400
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Laravel on Hack
nunulk
February 11, 2017
Transcript
17 slides
Laravel on Hack @nunulk Laravelもくもく会 2017/02/11
ご存知ですか?Hack/HHVM
PHP7の登場によってすっかり下火になって しまった感がありますが
PHP7にない機能、まだまだありますよ
というわけで、Laravel と一緒に 使ってみます
Generics
class SomeClass<T> { private Vector<T> $collection; public function __construct() {
$this->collection = Vector {}; } public function add(T $element) { $this->collection[] = $element; } }
Tuples
newtype HttpState = (int, string); HttpState $state = tuple(200, “OK”);
Pipe Operator
function index(SomeRequest $request) { return $request->all() |> $this->doSomething($$) |> view(‘index’)->with($$);
}
callable type hinting
public function apply((function(int, bool): int) $callback) { return $callback($this->value, $this->isDefered);
}
(Demo)
まだまだ面白い機能あります
興味ある方は一緒にやりましょう!
ご静聴ありがとうございました。
More Decks by nunulk
See All by nunulk
Laravelでテストしやすいコードを書く5 / 5 tips of building testable modules in Laravel
nunulk
0
360
Design It! in a nutshell
nunulk
1
320
PHP Getting Faster
nunulk
0
300
How does learning English broaden your world?
nunulk
0
430
Testing on Laravel
nunulk
1
1.6k
Vue.js + TypeScript + Firebase
nunulk
0
980
Nuxt.js in TypeScript
nunulk
1
470
A startup meets Laravel + Vue.js
nunulk
1
2.1k
Unit Testing Laravel
nunulk
0
520
Other Decks in Programming
See All in Programming
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
150
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
200
正解の無い問題を 「できるだけ上手く」解く ヒューリスティックで感性を磨こう。〜現実課題をプログラミングで解きあうコミュニティについて〜
allegrogiken
0
100
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
230
Proxmox x Talos Linux x Terraform で実現するなんかいい感じの Kubernetes クラスタ / A Sleek Kubernetes Cluster Powered by Proxmox, Talos Linux, and Terraform
nnaka2992
0
290
protojson における文字化けの扱い
kazuki1023
0
450
LLM 101
dalinaum
0
520
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
390
[DroidKnights 2026] Workflow AX 적용기 — 자동 정책 정리부터 E2E까지
dayeon
0
120
SODA - FACT BOOK(EN)
sodainc
1
270
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
170
AI Augmentation Techniques with Liberty
ivargrimstad
1
540
Featured
See All Featured
How to Ace a Technical Interview
jacobian
280
24k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
2
540
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Technical Leadership for Architectural Decision Making
baasie
4
650
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
The Limits of Empathy - UXLibs8
cassininazir
2
800
How to make the Groovebox
asonas
2
2.6k
Context Engineering - Making Every Token Count
addyosmani
9
1.3k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
550
The Invisible Side of Design
smashingmag
301
52k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
780