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
Beyond Compojure
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
ayato
November 10, 2015
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Beyond Compojure
ayato
November 10, 2015
More Decks by ayato
See All by ayato
マイクロサービス内で動くAPIをF#で書いている
ayato0211
1
1.6k
Clojureという言語が私逹にもたらしたもの
ayato0211
6
3.2k
3年間考え続けてきたWebアプリケーションにおけるテストの話
ayato0211
3
310
Re:REPL-Driven Development
ayato0211
3
1.4k
Meta Template Engine
ayato0211
2
1.2k
超変換! Hiccup data structure!!
ayato0211
2
670
About Integrant
ayato0211
0
610
Muscle Assert
ayato0211
0
330
Clojureを用いたWebアプリケーション開発
ayato0211
2
3.2k
Other Decks in Programming
See All in Programming
変わらないものが、変わるものを決める — 意図駆動開発 × イベントソーシング × イミュータブル | What Doesn't Change Decides What Can — IDD × Event Sourcing × Immutability
tomohisa
0
970
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
240
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
570
Foundation Models frameworkで画像分析
ryodeveloper
1
320
5分で問診!Composer セキュリティ健康診断
codmoninc
0
770
これって Effect でできたのでは? / TSKaigi Mashup Kansai #2
susisu
0
130
Android CLI
fornewid
0
200
Built Our Own Background Agent at LayerX #aidevex_findy
layerx
PRO
9
4.3k
php-fpmのプロセスが枯渇した日-調査・対処・そして本当にやるべきだったこと-
shibuchaaaan
0
180
なぜ関数型プログラミングで「型」と「証明」が語られるのか #fp_matsuri
kajitack
3
1.1k
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
620
FDEが実現するAI駆動経営の現在地
gonta
2
240
Featured
See All Featured
Crafting Experiences
bethany
1
230
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
The SEO Collaboration Effect
kristinabergwall1
1
510
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
2
3.7k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Evolving SEO for Evolving Search Engines
ryanjones
0
250
WCS-LA-2024
lcolladotor
0
780
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Chasing Engaging Ingredients in Design
codingconduct
0
250
Navigating Team Friction
lara
192
16k
Transcript
Beyond Compojure @_ayato_p
@_ayato_p
Compojure ͱ • ϧʔςΟϯάϥΠϒϥϦ • ಠࣗͷଋറػߏ • ϧʔτύϥϝʔλͷڧ੍ม • ϚΫϩͰϧʔςΟϯάఆٛ
• ؆୯ʹ͑Δ
͜Μͳײ͡ (ns example.routes (:require [compojure.core :refer [defroutes context GET POST]]))
(defroutes main-routes (GET "/" req (home)) (context "/user" req (GET "/" req (user-index)) (GET "/new" req (user-new)) (GET "/new" req (user-new-post))) (context "/user/:id" [id] (GET "/" req (user-show id)) (GET "/edit" req (user-edit id)) (POST "/edit" req (user-edit-post id))))
Ͱ...?
Πέͯͳ͍ • URI ͷੜ͕ग़དྷͳ͍ • ClojureScript Ͱ࠶ར༻ग़དྷͳ͍ • ֦ு͕͍͠ •
؆୯͚ͩͲγϯϓϧ͡Όͳ͍
ຊʹཉ͍͠ͷ?
ཉ͍͠ͷ • σʔλͱͯ͠ϧʔςΟϯάఆٛग़དྷΔ • URI ͷੜ͕ग़དྷΔ • ֦ு͕؆୯ • γϯϓϧͳͷ
ϧʔςΟϯάϥΠϒϥϦ • Compojure • Moustache • RouteOne • Pedestal •
gudu • secretary • silk • fnhouse • bidi
σʔλͱͯ͠ఆٛग़དྷΔ • Compojure • Moustache • RouteOne • Pedestal •
gudu • secretary • silk • fnhouse • bidi
֦ு͕؆୯ • Compojure • Moustache • RouteOne • Pedestal •
gudu • secretary • silk • fnhouse • bidi
bidi vs silk • ΄ͱΜͲಉ͡ • ΫΤϦʔύϥϝʔλ͖ URI ͷύʔεʹࠩ •
bidi αϙʔτͯ͠ͳ͍ • Έͷ https://carouselapps.com/2015/09/21/bidi-vs-silk/
bidi Λ͏
͋Ε͕͜͏એݴͰ͖Δ (ns example.routes) (def main-routes ["/" {"" :home "/user" {""
:user-index "/new" {:get :user-new :post :user-new-post}} ["/user/" [#"\d+" :id]] {"" :user-show "/edit" {:get :user-edit :post :user-edit-post}}}])
+α • ϋϯυϥʔΛఆٛ͢Δ • c.l.Keyword Λ֦ு͢Δ • ֤ϋϯυϥʔʹϝλσʔλΛՃ͢Δ http://qiita.com/ayato_p/items/8ed4688a4540491e87e0
·ͱΊ • Compojure ͚ͩ͡Όͳ͍ • Compojure ؆୯͚ͩͲউख͕ѱ͍ • bidi
silk ͷΑ͏ͳͷ͍͍͢