<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ivan Frias on Medium]]></title>
        <description><![CDATA[Stories by Ivan Frias on Medium]]></description>
        <link>https://medium.com/@ivanfrias?source=rss-81f6bee93904------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dsOyUjReFCvu29yQ1qlpQw.jpeg</url>
            <title>Stories by Ivan Frias on Medium</title>
            <link>https://medium.com/@ivanfrias?source=rss-81f6bee93904------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 21:06:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ivanfrias/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Javascript Functional Testing — Pt.1]]></title>
            <link>https://medium.com/@ivanfrias/javascript-functional-testing-pt-1-3e16e6521ffd?source=rss-81f6bee93904------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e16e6521ffd</guid>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[imperative-programming]]></category>
            <dc:creator><![CDATA[Ivan Frias]]></dc:creator>
            <pubDate>Mon, 27 Nov 2017 23:47:27 GMT</pubDate>
            <atom:updated>2017-11-27T23:47:27.615Z</atom:updated>
            <content:encoded><![CDATA[<p>My original background is Java. During many years I have been doing my unit tests, the TDD-way: declare a <em>TestCase</em>, declare my unit testing methods, and for each individual method, write the necessary <em>setUp()</em> and <em>tearDown()</em> methods. Part of my current job implies that I search for technological solutions for problems we, software developers face everyday, and also make myself updated with the latest trends on this subject. For that particular reason I’ve decided to use this ‘medium’ as a way of documenting this process. My intention is to publish at least one article per week related to software development. As a starting point, I’ve decided to talk about three different subjects, that will be split in 3 different parts:</p><ol><li><strong>Functional programming as a programming style</strong></li><li><strong>Unit testing</strong></li><li><strong>Immutable data structures</strong></li></ol><h3>Functional Programming</h3><p>The first part will target the Functional Programming subject — what it is, what are the alternatives and provide some background on it.</p><p>Early programming languages imposed an imperative style of programming. The whole idea behind this is that the programmer write statements that can change the state of the program being run. Procedural programming is a type of the imperative programming where multiple <em>functions</em> will be written as pieces of the software being produced. Those pieces of software can be all wired up through a main entry point of the application composing what we call a program. That’s the essence of structured programming. There are several examples of imperative languages — FORTRAN, C, Ada, etc.</p><p>In the 80’s &amp; 90’s, object oriented languages’s increased popularity. C++ and Java are just two examples of that. The concept of structured programming is expanded through the use of <em>classes</em>. The main idea is to build a domain model using those classes which can represent everyday objects like a ‘Car’. Those objects can have attributes and behaviour. For example, a ‘Car’ can have the following <strong><em>attributes</em></strong>:</p><ul><li>brand</li><li>color</li><li>engine spec</li><li>a license plate</li></ul><p>That ‘Car’ can have some <strong><em>behavior</em></strong>:</p><ul><li>accelerate</li><li>stop</li><li>turn left</li><li>turn right</li></ul><p>The object oriented languages may offer a typed system that will ultimately improve code reuse and that will eventually have some impact on software maintenance.</p><p>Functional programming on the other hand, is a programming style that follows a declarative ‘way’ of doing this, so we can say that it is <strong><em>declarative </em></strong>by nature. Like a mathematical function it expects an input and return an output no matter the circunstances. That leads us to another characteristic of functional programming — it’s <strong><em>purity. </em></strong>That purity means there should be <strong><em>no side-effects </em></strong>from the usage of a particular function and that only happens because the scope of the mutated data should exist only for a particular function. A simple analogy would be the Car Factory. Someone supplies the factory with raw materials and hopefully in the end there will be a car. That same car should represent the same outcome everytime — a product that allows the transportation from A to B.</p><p>There are several examples of functional languages out there: Common Lisp, Scheme, Clojure, Herlang, Haskell, F# to name a few. Some imperative languages also provide additional constructs that can used in a functional way: e.g. Perl, Java 8, C# ,etç. The benefits of functional programming can be resumed to the following points:</p><ul><li><strong><em>Modularity</em></strong></li><li><strong><em>Testability</em></strong></li><li><strong><em>Less Race conditions</em></strong></li><li><strong><em>Faster</em></strong></li><li><strong><em>Easier to read</em></strong></li></ul><p>And that’s it for today. Next part will focus on Unit Testing as software development discipline. I will be talking about how we can testcases using TDD and BDD approaches and what are the differences between those two approaches.</p><p><strong><em>References:</em></strong></p><ul><li><a href="https://en.wikipedia.org/wiki/Imperative_programming">https://en.wikipedia.org/wiki/Imperative_programming</a></li><li><a href="https://en.wikipedia.org/wiki/Functional_programming">https://en.wikipedia.org/wiki/Functional_programming</a></li><li><a href="https://www.youtube.com/watch?v=NPB34lDZj3E">https://www.youtube.com/watch?v=NPB34lDZj3E</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e16e6521ffd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The interview day]]></title>
            <link>https://medium.com/@ivanfrias/the-interview-day-4a574d6402b8?source=rss-81f6bee93904------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a574d6402b8</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[telecommunication]]></category>
            <dc:creator><![CDATA[Ivan Frias]]></dc:creator>
            <pubDate>Tue, 07 Nov 2017 23:57:18 GMT</pubDate>
            <atom:updated>2017-11-07T23:57:18.733Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The interview day</strong></p><p>So.. last July I left my old job and joined this nice UCaaS company from US with the hope that I could make new things. In the process I improved my learning process which was a little bit rusty.. I guess some routines can make us lazy at some point… Actually I’ve already forgotten how major corporations work.</p><p>Some context here: I worked for a telecommunication company between 2010 and 2013. Those years, professionally speaking were <em>bitter</em> ( I am trying to carefully choose an appropriate word ). Before that I was working for a startup, nice young team working with cutting edge technologies at the time, using the best pratices books can teach. Ambition lead me to quit that same team and search for a new challenge. Eventually the challenge came and it was something like : “We offer you this job on this amazing company , you’ll earn more and will be working with the top professional of the market”. That same decision made me grow stronger as a professional, but not for the best reasons. During that period I learned how business works, I had to build software that was actually used by people but I also discovered that some large corporations don’t care about individuals.</p><p>Today I had to interview one person that works for that same company. I understood his motivations to quit his current job. I don’t doubt that same person can be an useful resource for our team, at the same time I regret the time we spent on that previous company. That reminds me that HR are important, also important is to fit on the team &amp; company agenda. Hopefully we will shortly have this new element on the team and I feel that well be able to actually make good things from now on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a574d6402b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>