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
5分で問診!Composer セキュリティ健康診断
codmoninc
0
770
なぜ関数型プログラミングで「型」と「証明」が語られるのか #fp_matsuri
kajitack
3
1.1k
生成AI導入の「期待外れ」を乗り越える ー 開発フロー改革が目指す、真の組織変革
starfish719
0
3.3k
Apache Hive: そしてCloud Native Lakehouseへ
okumin
1
200
作るコストが小さくなった時代 幸せに働くために改めて考えたいこと 〜エンジニアとして価値を出し続けるために注視している二分野〜
yuppeeng
0
170
Embedded SREと共に達成した会員管理システムのAWS移行 - SRE NEXT 2026 ランチスポンサーセッション
niftycorp
PRO
1
3.3k
SREの積み重ねがAI駆動開発のガードレールになった ― 7つの実践/SRE Guardrails The 7
tomoyakitaura
9
5.9k
使いながら育てる Claude Code — 開発フローの1コマンド化 × 繰り返し指摘の自動仕組み化
shiki_kakaku
0
1.5k
<title><a id="</title>君はこのHTMLをパースできるか"></a></title> #雑LT_study
pizzacat83
0
130
Google Apps Script で Ruby を動かす
kawahara
0
120
Claude Opus 4.6以後の受託開発エンジニアの変化(Claude Code開発ノウハウ大公開スペシャルbyクラスメソッド)
iidatakuma
1
930
torikago - Ruby::Boxで照らすモジュラモノリスの実行境界
se4weed
1
300
Featured
See All Featured
Docker and Python
trallard
47
4k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.7k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Building the Perfect Custom Keyboard
takai
2
830
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
420
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.7k
Code Reviewing Like a Champion
maltzj
528
40k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
66
57k
Making Projects Easy
brettharned
120
6.7k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
280
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 ͷΑ͏ͳͷ͍͍͢