<?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 Daniel Casasola on Medium]]></title>
        <description><![CDATA[Stories by Daniel Casasola on Medium]]></description>
        <link>https://medium.com/@casasolad86?source=rss-f1caaef4e911------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-EJ1mXg2CWYdv_7R</url>
            <title>Stories by Daniel Casasola on Medium</title>
            <link>https://medium.com/@casasolad86?source=rss-f1caaef4e911------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:23:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@casasolad86/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 Modules Patterns]]></title>
            <link>https://medium.com/@casasolad86/javascript-modules-patterns-c2cbf103cf42?source=rss-f1caaef4e911------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2cbf103cf42</guid>
            <category><![CDATA[modules]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Daniel Casasola]]></dc:creator>
            <pubDate>Mon, 19 Nov 2018 04:01:21 GMT</pubDate>
            <atom:updated>2018-11-20T01:31:27.176Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>JavaScript Module Patterns</strong></h3><p>In this post, I will explain several good reasons to use Javascript modules and how to incorporate them.</p><p>Let’s begin.</p><p>There are a lot of good reasons why to use JS modules but here are a just few that, in my opinion, are most important. Modules are like chapters in a book. Modules that are well written, are also highly self-contained and only add distinct functionality. This allows them to be removed or added as need be and without disrupting the application or code base as a whole.</p><p><strong>Maintainability</strong>: Code, specifically modules, that are written well should be maintainable. A module should aim not to depend on other parts of the codebase as much as possible. With this in mind, updating a modules should be easy. Going back to our book analogy above, if chapters in a book were interdependent it would be a hassle to change a chapter and not affect other chapters.</p><p><strong>Namespacing: </strong>Avoiding namespace pollution includes creating a private space for our variables.<strong> </strong>In<strong> </strong>JavaScript, variables that are used outside the scope of a top level function are global variables. Namespace pollution occurs when completely unrelated code shares global variables. And sharing global variables is a huge NO in software development.</p><p><strong>The Module Pattern: </strong>In JS, functions are the only way to create a new scope.<br>With this in mind, the module pattern approach is to store both public and private methods and variables in a single object. This approach allows us create ‘public’ methods that we would want to expose to the world.</p><p><strong>Examples on Incorporating Modules: </strong><br>Below I will walk through two ways to incorporate modules into your development.</p><ol><li><strong>Anonymous Closure Example:</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*wqZEblKsmmqf69rnafyhNQ.png" /></figure><p>The example above demonstrates ‘closure’ in our anonymous function. This hides our variables from our parent global scope and it is immediately evaluated. A detail to note are the parenthesis around the anonymous function. These are required because statements that start with the keyword function are considered function declarations.</p><p><strong>2. Object Interface Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*VGdJbRYew7eXAN-ttLjlYw.png" /></figure><p>The approach above creates a module and uses a self-contained object. This example lets us decide what variables or methods we want to keep private: the scores array. And, what methods, in this case, we want to expose: the double and sort functions.</p><p>These are just a two methods to incorporate module patterns into your codebase and a few good reasons to do so above. I hope this post gives a glimpse into JavaScript design patterns and that it gave you a better understanding of modules. In future posts, I will write more about JavaScrip design patterns.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2cbf103cf42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Taking the leap to software development.]]></title>
            <link>https://medium.com/@casasolad86/taking-the-leap-to-software-development-e3c1d843c445?source=rss-f1caaef4e911------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3c1d843c445</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Daniel Casasola]]></dc:creator>
            <pubDate>Sun, 22 Jul 2018 03:53:11 GMT</pubDate>
            <atom:updated>2018-07-22T03:53:53.814Z</atom:updated>
            <content:encoded><![CDATA[<p>My first exposure to programming was my freshman year of college. I rememeber that we started learning with paper and pen or pencil. We where given specific tasks like looping thru an array or summing up numbers in an array. Then increasingly building on that knowlege and applying it ‘larger’ programs.</p><p>I really enjoyed programming from the start. It gave me control of how I approached a problem or how clean it could be written.</p><p>However, I was also interested in Economics. Something with those demand and supply graphs made sence to me. It was a very ‘dry’ subject also; something like white or black or true or false. I particularly enjoyed learning about the different policies as well like Monetary policy. And how they contribute to decisions made at a higher institution like the Federal Reserve. I eventually majored in econs and choose to minor in computer science.</p><p>What I remember from my last year in school was that those computer science classes would take more time because I was not studying CS fulltime. I would finish any work related to econs and all my leftover time was dedicated to CS and mostly working out bugs in my code because by this time my CS classes where significantly higher level. An example of a project we did was a shoping cart. Given a .txt file we parse the file and eventually create all the componenets simulating a shopping cart.</p><p>Once graduated, I started working for a chemical company. I did sales for a year and eventually got the opportunity to move to a field engineer position. The position entailed working on large frame computers that where attached to a 3D printer. It was a unique job which involved alot of troubleshooting and working alot with hardware and very hands on. I enjoyed the work but I missed learning to code and coding.</p><p>I took a leap and went to work at a tech company doing tech support. It was a very complex software to say the least. My job was to reproduce bugs in the software and either solve them or move them to the engineering or dev group. Not very much coding went on but I did use sql to retrieve information from the back end. After a year on the job, I needed to make a decision either to go back to school for a CS degree or considere a bootcamp. I decided to take a night class on Javascript for a month that was provided by Fullstack Academy.</p><p>At this time, I was leaning more to attending a bootcamp. The class started with very simple concepts like variable and loops. And the instructor was really knowledgeable and wanted us to do well and learn the material. The lecture was very relavant to the exercises and you really learn the material.</p><p>I apologize for making this post too long. I promise, I’m almost done. Fast forwarding two month after taking the class I applied to Fullstack Academy and got in! I am now starting the junior phase and will keep posting my journey. Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3c1d843c445" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>