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
Laravel on Hack
Search
nunulk
February 11, 2017
Programming
0
380
Laravel on Hack
nunulk
February 11, 2017
Tweet
Share
More Decks by nunulk
See All by nunulk
Laravelでテストしやすいコードを書く5 / 5 tips of building testable modules in Laravel
nunulk
0
290
Design It! in a nutshell
nunulk
1
240
PHP Getting Faster
nunulk
0
250
How does learning English broaden your world?
nunulk
0
340
Testing on Laravel
nunulk
1
1.5k
Vue.js + TypeScript + Firebase
nunulk
0
920
Nuxt.js in TypeScript
nunulk
1
420
A startup meets Laravel + Vue.js
nunulk
1
2k
Unit Testing Laravel
nunulk
0
470
Other Decks in Programming
See All in Programming
プロダクトという一杯を作る - プロダクトチームが味の責任を持つまでの煮込み奮闘記
hiliteeternal
0
170
顧客の画像データをテラバイト単位で配信する 画像サーバを WebP にした際に起こった課題と その対応策 ~継続的な取り組みを添えて~
takutakahashi
4
1.4k
Gemini CLIの"強み"を知る! Gemini CLIとClaude Codeを比較してみた!
kotahisafuru
2
150
構文解析器入門
ydah
7
1.8k
バイブスあるコーディングで ~PHP~ 便利ツールをつくるプラクティス
uzulla
1
260
マッチングアプリにおけるフリックUIで苦労したこと
yuheiito
0
240
MCPを使ってイベントソーシングのAIコーディングを効率化する / Streamlining Event Sourcing AI Coding with MCP
tomohisa
0
180
Workers を定期実行する方法は一つじゃない
rokuosan
0
130
AWS Summit Japan 2024と2025の比較/はじめてのKiro、今あなたは岐路に立つ
satoshi256kbyte
1
250
The Evolution of Enterprise Java with Jakarta EE 11 and Beyond
ivargrimstad
0
470
状態遷移図を書こう / Sequence Chart vs State Diagram
orgachem
PRO
3
250
AI時代の『改訂新版 良いコード/悪いコードで学ぶ設計入門』 / ai-good-code-bad-code
minodriven
24
10k
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
42
7.4k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
850
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.9k
A designer walks into a library…
pauljervisheath
207
24k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
The Invisible Side of Design
smashingmag
301
51k
Gamification - CAS2011
davidbonilla
81
5.4k
Into the Great Unknown - MozCon
thekraken
40
1.9k
4 Signs Your Business is Dying
shpigford
184
22k
Unsuck your backbone
ammeep
671
58k
Transcript
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)
まだまだ面白い機能あります
興味ある方は一緒にやりましょう!
ご静聴ありがとうございました。