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
310
Design It! in a nutshell
nunulk
1
260
PHP Getting Faster
nunulk
0
260
How does learning English broaden your world?
nunulk
0
350
Testing on Laravel
nunulk
1
1.5k
Vue.js + TypeScript + Firebase
nunulk
0
930
Nuxt.js in TypeScript
nunulk
1
430
A startup meets Laravel + Vue.js
nunulk
1
2k
Unit Testing Laravel
nunulk
0
470
Other Decks in Programming
See All in Programming
3年ぶりにコードを書いた元CTOが Claude Codeと30分でMVPを作った話
maikokojima
0
710
外接に惑わされない自システムの処理時間SLIをOpenTelemetryで実現した話
kotaro7750
0
130
Dive into Triton Internals
appleparan
0
350
Temporal Knowledge Graphで作る! 時間変化するナレッジを扱うAI Agentの世界
po3rin
5
1.1k
理論と実務のギャップを超える
eycjur
0
210
Introducing RemoteCompose: break your UI out of the app sandbox.
camaelon
2
250
Researchlyの開発で参考にしたデザイン
adsholoko
0
100
Pythonに漸進的に型をつける
nealle
1
140
テーブル定義書の構造化抽出して、生成AIでDWH分析を試してみた / devio2025tokyo
kasacchiful
0
340
エンジニアインターン「Treasure」とHonoの2年、そして未来へ / Our Journey with Hono Two Years at Treasure and Beyond
carta_engineering
0
470
スマホから Youtube Shortsを見られないようにする
lemolatoon
27
34k
CSC509 Lecture 08
javiergs
PRO
0
270
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
44
7.9k
Gamification - CAS2011
davidbonilla
81
5.5k
Building Adaptive Systems
keathley
44
2.8k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
Testing 201, or: Great Expectations
jmmastey
46
7.7k
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
Bash Introduction
62gerente
615
210k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.7k
GitHub's CSS Performance
jonrohan
1032
470k
Speed Design
sergeychernyshev
32
1.2k
Git: the NoSQL Database
bkeepers
PRO
431
66k
What's in a price? How to price your products and services
michaelherold
246
12k
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)
まだまだ面白い機能あります
興味ある方は一緒にやりましょう!
ご静聴ありがとうございました。