<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Vasavi Developers Community</title>
    <description>The latest articles on Forem by Vasavi Developers Community (@vasavideveloperscommunity).</description>
    <link>https://forem.com/vasavideveloperscommunity</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F63476%2F5ddc4bd8-aeb5-4fd9-8de2-e0169b568e64.png</url>
      <title>Forem: Vasavi Developers Community</title>
      <link>https://forem.com/vasavideveloperscommunity</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/vasavideveloperscommunity"/>
    <language>en</language>
    <item>
      <title>Functional Programming with Clojure | Vasavi Developers Community</title>
      <dc:creator>Vasavi Developers Community</dc:creator>
      <pubDate>Wed, 21 Mar 2018 13:13:37 +0000</pubDate>
      <link>https://forem.com/vasavideveloperscommunity/functional-programming-with-clojure--vasavi-developers-community-5h3h</link>
      <guid>https://forem.com/vasavideveloperscommunity/functional-programming-with-clojure--vasavi-developers-community-5h3h</guid>
      <description>&lt;p&gt;Hello Vasavi developers,&lt;/p&gt;

&lt;p&gt;We are very excited to introduce you to the concepts of Functional Programming and learn a new language called Clojure.&lt;/p&gt;

&lt;p&gt;Functional Programming(FP) is a programming paradigm like Object oriented Programming(OOP). In OOP, you think about programs in the form of classes and objects, whereas in FP, everything you write is a function.&lt;/p&gt;

&lt;p&gt;In the seminar, we would introducing you to the concepts of Functional Programming using Clojure. Clojure is purely functional programming language used by companies such as Apple to build the iTunes software, Netflix, Spotify and Facebook. In fact, the chat application Whatsapp is written in another functional language called Erlang.&lt;/p&gt;

&lt;h4&gt;
  
  
  Clojure in Action
&lt;/h4&gt;

&lt;p&gt;let us say you wanted to create an array of first 10 numbers and then filter out the even numbers. The way you do in Clojure is by simply saying&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(-&amp;gt;&amp;gt; (range 10)(filter even?) )
=&amp;gt; (0 2 4 6 8)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Interesting, right ?&lt;/p&gt;

&lt;p&gt;Now, let us say we want to insert the number 5 between every two elements in the array, you can just simply do by calling &lt;code&gt;interpose 5&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(-&amp;gt;&amp;gt; (range 10)(filter even?)(interpose 5) )
=&amp;gt; (0 5 2 5 4 5 6 5 8)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pretty clean!!! Good luck doing this in C++ with all the array shift, new array allocation etc.&lt;/p&gt;

&lt;h4&gt;
  
  
  Agenda
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Firstly a demo to get you all excited&lt;/li&gt;
&lt;li&gt;What is Functional Programming ?&lt;/li&gt;
&lt;li&gt;Core concepts of Functional Programming&lt;/li&gt;
&lt;li&gt;OOP vs FP&lt;/li&gt;
&lt;li&gt;Functional languages and who uses them&lt;/li&gt;
&lt;li&gt;Cool Demos&lt;/li&gt;
&lt;li&gt;Resources to learn more&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The seminar will be up on 28 March,2018 on Youtube. So stay tuned!&lt;/p&gt;

&lt;p&gt;If you have any suggestions or questions you would like to ask, comment down below. I encourage silly questions :P. It need not be even related to Clojure.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>clojure</category>
      <category>functional</category>
      <category>functions</category>
    </item>
  </channel>
</rss>
