{"id":619,"date":"2014-01-27T19:16:44","date_gmt":"2014-01-28T02:16:44","guid":{"rendered":"http:\/\/pchristensen.com\/blog\/?p=619"},"modified":"2014-01-27T20:30:04","modified_gmt":"2014-01-28T03:30:04","slug":"pedestal-lightning-talk-notes","status":"publish","type":"post","link":"http:\/\/pchristensen.com\/blog\/articles\/pedestal-lightning-talk-notes\/","title":{"rendered":"Pedestal Lightning Talk Notes"},"content":{"rendered":"<p>Tonight I gave a lightning talk about <a href=\"http:\/\/pedestal.io\">Pedestal<\/a> at the S<a href=\"http:\/\/www.meetup.com\/SF-Clojurescript-Meetup\/events\/159485492\/\">an Francisco ClojureScript meetup<\/a>. I&#8217;m still working through the tutorial so my understanding and experience are both limited, but this was a good chance to gather my thoughts.<\/p>\n<p>Most people hadn&#8217;t worked with Pedestal so even though I&#8217;m still learning, there was a lot to share and a lot of good questions. Here are the notes I presented.<\/p>\n<p><!--more--><\/p>\n<h3>What is Pedestal?<\/h3>\n<ul>\n<li>Web applications, not pages<\/li>\n<li>Designed for interactive, 2 way transfer of info to\/from multiple sources<\/li>\n<li>Framework, not Library. You put your code in the right place and Pedestal infrastructure calls it<\/li>\n<\/ul>\n<h3>Demo<\/h3>\n<p><a href=\"http:\/\/www.infoq.com\/presentations\/pedestal-clojure\">http:\/\/www.infoq.com\/presentations\/pedestal-clojure<\/a>, 5:32-8:00<\/p>\n<h3>What&#8217;s in the Box<\/h3>\n<ul>\n<li>Pedestal Services &#8211; for the server<\/li>\n<li>Pedestal Applications &#8211; for the web client<\/li>\n<li>Control flow via dataflow, messages, queues, not sequential logic<\/li>\n<li>Easy recording\/playback of messages<\/li>\n<li>Separate concerns\n<ul>\n<li>Design without application code using a sequence of played-back messages<\/li>\n<li>Develop client without the server using simulated backends that generated messages<\/li>\n<li>Services and applications don&#8217;t even go in the same project<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>How Does It Work?<\/h3>\n<ul>\n<li>Application split into 3 layers:\n<ul>\n<li>Data model &#8211; data you&#8217;re holding<\/li>\n<li>Application model &#8211; \u201cshape\u201d of the data in the rendered view<\/li>\n<li>Rendered view\n<ul>\n<li>You can also cause non-rendering side effects: any side effects of changing data\/application models, eg write to server, fire analytics<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Handle inputs to update data model<\/li>\n<li>Handle updates to data model to update application model, update downstream changes to data model, or send side-effects<\/li>\n<li>Handle updates to application model by making targeted rendering updates<\/li>\n<li>Queues for input, app-model, effects<\/li>\n<\/ul>\n<h3>Dataflow<\/h3>\n<p><a href=\"http:\/\/pchristensen.com\/wp-content\/uploads\/2014\/01\/derived-values-dataflow.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-620\" alt=\"derived-values-dataflow\" src=\"http:\/\/pchristensen.com\/wp-content\/uploads\/2014\/01\/derived-values-dataflow.png\" width=\"682\" height=\"397\" srcset=\"http:\/\/pchristensen.com\/wp-content\/uploads\/2014\/01\/derived-values-dataflow.png 682w, http:\/\/pchristensen.com\/wp-content\/uploads\/2014\/01\/derived-values-dataflow-300x174.png 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/a><\/p>\n<h3>Why I Like It<\/h3>\n<ul>\n<li>Makes data and UI changes functional rather than stateful<\/li>\n<li>Separation of concerns makes each part of the app simpler<\/li>\n<li>Record and replay of events makes designing and debugging more predictable\n<ul>\n<li>Reminds me of Rails up\/down migrations for data consistency<\/li>\n<\/ul>\n<\/li>\n<li>Strong opinions different from other web frameworks and libraries and more inline with my software views<\/li>\n<li>Reflects experience of experienced web devs<\/li>\n<li>It&#8217;s Clojure-y!<\/li>\n<\/ul>\n<h3>Resources<\/h3>\n<ul>\n<li><a href=\"http:\/\/pedestal.io\/\">http:\/\/pedestal.io\/<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/pedestal\/app-tutorial\">https:\/\/github.com\/pedestal\/app-tutorial<\/a> (<a href=\"http:\/\/pchristensen.com\/blog\/articles\/pedestal-tutorial-part-1-notes\/\">my notes on Part 1<\/a>)<\/li>\n<li><a href=\"http:\/\/teropa.info\/blog\/2013\/10\/18\/single-page-webapps-in-clojurescript-with-pedestal.html\">What I\u2019ve Learned About Making ClojureScript Applications With Pedestal<\/a> by Tero Parviainen<\/li>\n<li><a href=\"http:\/\/www.infoq.com\/presentations\/pedestal-clojure\">Web Apps in Clojure and ClojureScript with Pedestal<\/a> by Brenton Ashworth (<a href=\"http:\/\/pchristensen.com\/blog\/articles\/notes-on-pedestal-strangeloop\/\">my notes<\/a>)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Tonight I gave a lightning talk about Pedestal at the San Francisco ClojureScript meetup. I&#8217;m still working through the tutorial so my understanding and experience are both limited, but this was a good chance to gather my thoughts. Most people hadn&#8217;t worked with Pedestal so even though I&#8217;m still learning, there was a lot to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[14],"tags":[],"class_list":{"0":"post-619","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-clojure","7":"entry"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pazgP-9Z","_links":{"self":[{"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/posts\/619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/comments?post=619"}],"version-history":[{"count":0,"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/posts\/619\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/media?parent=619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/categories?post=619"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/tags?post=619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}