{"id":44014,"date":"2015-09-23T07:00:35","date_gmt":"2015-09-23T04:00:35","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=44014"},"modified":"2015-09-22T21:00:59","modified_gmt":"2015-09-22T18:00:59","slug":"clojure-web-development-state-of-the-art","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html","title":{"rendered":"Clojure web development &#8211; state of the art"},"content":{"rendered":"<p>It\u2019s now more than a year that I\u2019m getting familiar with Clojure and the more I dive into it, the more it becomes <strong>the language<\/strong>. Once you defeat the \u201cparentheses fear\u201d, everything else just makes the difference: tooling, community, good engineering practices. So it\u2019s now time for me to convince others. In this post I\u2019ll try to walktrough a simple web application from scratch to show key tools and libraries used to develop with Clojure in late 2015.<\/p>\n<p><strong>Note for Clojurians<\/strong>: This material is rather elementary and may be useful for you if you already know Clojure a bit but never did anything bigger than hello world application.<\/p>\n<p><strong>Note for Java developers<\/strong>: This material shows how to replace Spring, Angular, grunt, live-reload with a bunch of Clojure tools and libraries and a bit of code.<\/p>\n<ul>\n<li>The repo with final code and individual steps is <a href=\"https:\/\/github.com\/pjagielski\/modern-clj-web\">here<\/a>.<\/li>\n<\/ul>\n<h2>Bootstrap<\/h2>\n<p>I think all agreed that <a href=\"https:\/\/github.com\/stuartsierra\/component\">component<\/a> is the industry standard for managing lifecycle of Clojure applications. If you are a Java developer you may think of it as a Spring (DI) replacement &#8211; you declare dependencies between \u201ccomponents\u201d which are resolved on \u201csystem\u201d startup. So you just say \u201cmy component needs a repository\/database pool\u201d and component library \u201cinjects\u201d it for you.<\/p>\n<p>To keep things simple I like to start with <a href=\"https:\/\/github.com\/weavejester\/duct\">duct<\/a> web app template. It\u2019s a nice starter component application following the <a href=\"http:\/\/12factor.net\">12-factor<\/a> philosophy. So let\u2019s start with it:<\/p>\n<p><code>lein new duct clojure-web-app +example<\/code><\/p>\n<p>The <code>+example<\/code> parameter tells duct to create an example endpoint with HTTP routes &#8211; this would be helpful. To finish bootstraping run <code>lein setup<\/code> inside <code>clojure-web-app<\/code> directory.<\/p>\n<p>Ok, let\u2019s dive into the code. Component and injection related code should be in <code>system.clj<\/code> file:<\/p>\n<pre class=\"brush:java\">(defn new-system [config]\r\n  (let [config (meta-merge base-config config)]\r\n    (-&gt; (component\/system-map\r\n         :app  (handler-component (:app config))\r\n         :http (jetty-server (:http config))\r\n         :example (endpoint-component example-endpoint))\r\n        (component\/system-using\r\n         {:http [:app]\r\n          :app  [:example]\r\n          :example []}))))<\/pre>\n<p>In the first section you instantiate components without dependencies, which are resolved in the second section. So in this example, \u201chttp\u201d component (server) requires \u201capp\u201d (application abstraction), which in turn is injected with \u201cexample\u201d (actual routes). If your component needs others, you just can get then by names (precisely: by Clojure keywords).<\/p>\n<p>To start the system you must fire a REPL &#8211; interactive environment running within context of your application:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p><code>lein repl<\/code><\/p>\n<p>After seeing prompt type <code>(go)<\/code>. Application should start, you can visit <a href=\"http:\/\/localhost:3000\">http:\/\/localhost:3000<\/a> to see some example page.<\/p>\n<p>A huge benefit of using component approach is that you get fully reloadable application. When you change <strong>literally anything<\/strong> &#8211; configuration, endpoints, implementation, you can just type <code>(reset)<\/code> in REPL and your application is up-to-date with the code. It\u2019s a feature of the language, no JRebel, Spring-reloaded needed.<\/p>\n<h2>Adding REST endpoint<\/h2>\n<p>Ok, in the next step let\u2019s add some basic REST endpoint returning JSON. We need to add 2 dependencies in <code>project.clj<\/code> file:<\/p>\n<pre class=\"brush:java\">:dependencies\r\n ...\r\n  [ring\/ring-json \"0.3.1\"]\r\n  [cheshire \"5.1.1\"]<\/pre>\n<p><a href=\"https:\/\/github.com\/ring-clojure\/ring-json\">Ring-json<\/a> adds support for JSON for your routes (in ring it\u2019s called middleware) and <a href=\"https:\/\/github.com\/dakrone\/cheshire\">cheshire<\/a> is Clojure JSON parser (like Jackson in Java). Modifying project dependencies if one of the few tasks that require restarting the REPL, so hit CTRL-C and type <code>lein repl<\/code> again.<\/p>\n<p>To configure JSON middleware we have to add <code>wrap-json-body<\/code> and <code>wrap-json-response<\/code> just before <code>wrap-defaults<\/code> in <code>system.clj<\/code>:<\/p>\n<pre class=\"brush:java\">(:require \r\n ...\r\n [ring.middleware.json :refer [wrap-json-body wrap-json-response]])\r\n\r\n(def base-config\r\n   {:app {:middleware [[wrap-not-found :not-found]\r\n                      [wrap-json-body {:keywords? true}]\r\n                      [wrap-json-response]\r\n                      [wrap-defaults :defaults]]<\/pre>\n<p>And finally, in <code>endpoint\/example.clj<\/code> we must add some route with JSON response:<\/p>\n<pre class=\"brush:java\">(:require \r\n ...\r\n [ring.util.response :refer [response]]))\r\n\r\n(defn example-endpoint [config]\r\n  (routes\r\n    (GET \"\/hello\" [] (response {:hello \"world\"}))\r\n    ...<\/pre>\n<p>Reload app with <code>(reset)<\/code> in REPL and test new route with <code>curl<\/code>:<\/p>\n<pre class=\"brush:java\">curl -v http:\/\/localhost:3000\/hello\r\n\r\n&lt; HTTP\/1.1 200 OK\r\n&lt; Date: Tue, 15 Sep 2015 21:17:37 GMT\r\n&lt; Content-Type: application\/json; charset=utf-8\r\n&lt; Set-Cookie: ring-session=37c337fb-6bbc-4e65-a060-1997718d03e0;Path=\/;HttpOnly\r\n&lt; X-XSS-Protection: 1; mode=block\r\n&lt; X-Frame-Options: SAMEORIGIN\r\n&lt; X-Content-Type-Options: nosniff\r\n&lt; Content-Length: 151\r\n* Server Jetty(9.2.10.v20150310) is not blacklisted\r\n&lt; Server: Jetty(9.2.10.v20150310)\r\n&lt;\r\n* Connection #0 to host localhost left intact\r\n{\"hello\": \"world\"}<\/pre>\n<p>It works! In case of any problems you can find working version in <a href=\"https:\/\/github.com\/pjagielski\/modern-clj-web\/commit\/c15f3c51855034a1c8f8431171134f6719cadffe\">this commit<\/a>.<\/p>\n<h2>Adding frontend with figwheel<\/h2>\n<p>Coding backend in Clojure is great, but what about the frontend? As you may already know, Clojure could be compiled not only to JVM bytecode, but also to Javascript. This may sound familiar if you used e.g. Coffeescript. However, ClojureScript\u2019s philosophy is not only to provide some syntax sugar, but improve your development cycle with great tooling and fully interactive development. Let\u2019s see how to achieve it.<\/p>\n<p>The best way to introduce ClojureScript to a project is <a href=\"https:\/\/github.com\/bhauman\/lein-figwheel\">figweel<\/a>. First let\u2019s add fighweel plugin and configuration to <code>project.clj<\/code>:<\/p>\n<pre class=\"brush:java\">:plugins\r\n   ...\r\n   [lein-figwheel \"0.3.9\"]<\/pre>\n<p>And cljsbuild configuration:<\/p>\n<pre class=\"brush:java\">:cljsbuild\r\n    {:builds [{:id \"dev\"\r\n               :source-paths [\"src-cljs\"]\r\n               :figwheel true\r\n               :compiler {:main       \"clojure-web-app.core\"\r\n                          :asset-path \"js\/out\"\r\n                          :output-to  \"resources\/public\/js\/clojure-web-app.js\"\r\n                          :output-dir \"resources\/public\/js\/out\"}}]}<\/pre>\n<p>In short this tells ClojureScript compiler to take sources from <code>src-cljs<\/code> with <code>figweel<\/code> support and put resulting JavaScript into <code>resources\/public\/js\/clojure-web-app.js<\/code> file. So we need to include this file in a simple HTML page:<\/p>\n<pre class=\"brush:java\">&lt;!DOCTYPE html&gt;\r\n&lt;head&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n  &lt;div id=\"main\"&gt;\r\n  &lt;\/div&gt;\r\n  &lt;script src=\"js\/clojure-web-app.js\" type=\"text\/javascript\"&gt;&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>To serve this static file we need to change some defaults and add corresponding route. In <code>system.clj<\/code> change <code>api-defaults<\/code> to <code>site-defaults<\/code> both in require section and <code>base-config<\/code> function. In <code>example.clj<\/code> add following route:<\/p>\n<pre class=\"brush:java\">(GET \"\/\" [] (io\/resource \"public\/index.html\")<\/pre>\n<p>Again <code>(reset)<\/code> in REPL window should reload everything.<\/p>\n<p>But where is our ClojureScript source file? Let\u2019s create file <code>core.cljs<\/code> in <code>src-cljs\/clojure-web-app<\/code> directory:<\/p>\n<pre class=\"brush:java\">(ns ^:figwheel-always clojure-web-app.core)\r\n\r\n(enable-console-print!)\r\n\r\n(println \"hello from clojurescript\")<\/pre>\n<p>Open another terminal and run <code>lein fighweel<\/code>. It should compile ClojureScript and print \u2018Prompt will show when figwheel connects to your application\u2019. Open <code>http:\/\/localhost:3000<\/code>. Fighweel window should prompt:<\/p>\n<pre class=\"brush:java\">To quit, type: :cljs\/quit\r\ncljs.user=&gt;<\/pre>\n<p>Type <code>(js\/alert \"hello\")<\/code>. Boom! If everything worked you should see and alert in your browser. Open developers console in your browser. You should see <code>hello from clojurescript<\/code> printed on the console. Change it in <code>core.cljs<\/code> to <code>(println \"fighweel rocks\")<\/code> and save the file. Without reloading the page your should see updated message. Figweel rocks! Again, in case of any problems, refer to <a href=\"https:\/\/github.com\/pjagielski\/modern-clj-web\/commit\/8649a5aa137ec15b40dfd8d47c514e5bfe8449ee\">this commit<\/a>.<\/p>\n<p>In the next post I\u2019ll show how to fetch data from MongoDB, serve it with REST to the broser and write ReactJs\/Om components to render it. Stay tuned!<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/pjagielski.pl\/2015\/09\/17\/clojure-web-dev-state\/\">Clojure web development &#8211; state of the art<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/jcg\/\">JCG partner<\/a> Piotr Jagielski at the <a href=\"http:\/\/pjagielski.pl\/\">Full stack JVM development&#8230;<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>It\u2019s now more than a year that I\u2019m getting familiar with Clojure and the more I dive into it, the more it becomes the language. Once you defeat the \u201cparentheses fear\u201d, everything else just makes the difference: tooling, community, good engineering practices. So it\u2019s now time for me to convince others. In this post I\u2019ll &hellip;<\/p>\n","protected":false},"author":542,"featured_media":93,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-44014","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-clojure"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Clojure web development - state of the art - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"It\u2019s now more than a year that I\u2019m getting familiar with Clojure and the more I dive into it, the more it becomes the language. Once you defeat the\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Clojure web development - state of the art - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"It\u2019s now more than a year that I\u2019m getting familiar with Clojure and the more I dive into it, the more it becomes the language. Once you defeat the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2015-09-23T04:00:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/clojure-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Piotr Jagielski\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Piotr Jagielski\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html\"},\"author\":{\"name\":\"Piotr Jagielski\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/f7f6c25fc656fa6c07b052dc4d3954a4\"},\"headline\":\"Clojure web development &#8211; state of the art\",\"datePublished\":\"2015-09-23T04:00:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html\"},\"wordCount\":846,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/clojure-logo.jpg\",\"articleSection\":[\"Clojure\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html\",\"name\":\"Clojure web development - state of the art - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/clojure-logo.jpg\",\"datePublished\":\"2015-09-23T04:00:35+00:00\",\"description\":\"It\u2019s now more than a year that I\u2019m getting familiar with Clojure and the more I dive into it, the more it becomes the language. Once you defeat the\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/clojure-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/clojure-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/09\\\/clojure-web-development-state-of-the-art.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JVM Languages\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/jvm-languages\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Clojure\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/jvm-languages\\\/clojure\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Clojure web development &#8211; state of the art\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/f7f6c25fc656fa6c07b052dc4d3954a4\",\"name\":\"Piotr Jagielski\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2a3b5fcddd72c97c690352169a64cb7403265e120b1c69c335c8c91d94767c99?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2a3b5fcddd72c97c690352169a64cb7403265e120b1c69c335c8c91d94767c99?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2a3b5fcddd72c97c690352169a64cb7403265e120b1c69c335c8c91d94767c99?s=96&d=mm&r=g\",\"caption\":\"Piotr Jagielski\"},\"sameAs\":[\"http:\\\/\\\/pjagielski.pl\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/piotr-jagielski\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Clojure web development - state of the art - Java Code Geeks","description":"It\u2019s now more than a year that I\u2019m getting familiar with Clojure and the more I dive into it, the more it becomes the language. Once you defeat the","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html","og_locale":"en_US","og_type":"article","og_title":"Clojure web development - state of the art - Java Code Geeks","og_description":"It\u2019s now more than a year that I\u2019m getting familiar with Clojure and the more I dive into it, the more it becomes the language. Once you defeat the","og_url":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2015-09-23T04:00:35+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/clojure-logo.jpg","type":"image\/jpeg"}],"author":"Piotr Jagielski","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Piotr Jagielski","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html"},"author":{"name":"Piotr Jagielski","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/f7f6c25fc656fa6c07b052dc4d3954a4"},"headline":"Clojure web development &#8211; state of the art","datePublished":"2015-09-23T04:00:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html"},"wordCount":846,"commentCount":2,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/clojure-logo.jpg","articleSection":["Clojure"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html","url":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html","name":"Clojure web development - state of the art - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/clojure-logo.jpg","datePublished":"2015-09-23T04:00:35+00:00","description":"It\u2019s now more than a year that I\u2019m getting familiar with Clojure and the more I dive into it, the more it becomes the language. Once you defeat the","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/clojure-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/clojure-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2015\/09\/clojure-web-development-state-of-the-art.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"JVM Languages","item":"https:\/\/www.javacodegeeks.com\/category\/jvm-languages"},{"@type":"ListItem","position":3,"name":"Clojure","item":"https:\/\/www.javacodegeeks.com\/category\/jvm-languages\/clojure"},{"@type":"ListItem","position":4,"name":"Clojure web development &#8211; state of the art"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/f7f6c25fc656fa6c07b052dc4d3954a4","name":"Piotr Jagielski","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2a3b5fcddd72c97c690352169a64cb7403265e120b1c69c335c8c91d94767c99?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2a3b5fcddd72c97c690352169a64cb7403265e120b1c69c335c8c91d94767c99?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2a3b5fcddd72c97c690352169a64cb7403265e120b1c69c335c8c91d94767c99?s=96&d=mm&r=g","caption":"Piotr Jagielski"},"sameAs":["http:\/\/pjagielski.pl\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/piotr-jagielski"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/44014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/542"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=44014"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/44014\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/93"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=44014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=44014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=44014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}