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
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
これからAgentCoreを触る方へトレンドはGatewayです
har1101
6
480
Honoでのサプライチェーン侵害対策 〜 3つのライブラリに学ぶ
yusukebe
7
1.7k
「正の参照」と 「負の導出」で組む ハーネスエンジニアリング
cottpan
1
120
過去最大のMCPアップデート! 2026-07-28 RC版の謎に迫る
licux
6
450
dRuby over BLE
makicamel
2
410
LLMによるContent Moderationの本番運用の裏側と品質担保への挑戦
suikabar
3
830
AIを活用したE2Eテスト実装効率化のあゆみ / ebisu-mobile-14-kotetu
kotetuco
0
160
OS アップデート対応の取り組み方がもっと共有されてほしい
andpad
0
110
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
500
技術記事、 専門家としてのプログラマ、 言語化
mizchi
14
7.3k
PHPだって関数型したい 〜できること、できないこと〜 / fp-in-php
jsoizo
0
160
The Bowling Game- From Imperative to Functional Programming - Part 1
philipschwarz
PRO
0
280
Featured
See All Featured
Prompt Engineering for Job Search
mfonobong
0
370
Fireside Chat
paigeccino
42
4k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
340
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
490
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.3k
AI: The stuff that nobody shows you
jnunemaker
PRO
8
770
Into the Great Unknown - MozCon
thekraken
41
2.6k
Navigating Weather and Climate Data
rabernat
0
280
Testing 201, or: Great Expectations
jmmastey
46
8.2k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
340
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.4k
Code Review Best Practice
trishagee
74
20k
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 ͷΑ͏ͳͷ͍͍͢