<?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 Gagan Tut on Medium]]></title>
        <description><![CDATA[Stories by Gagan Tut on Medium]]></description>
        <link>https://medium.com/@gagantut?source=rss-905b86aefd7e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Z58akvEi3yDGKyiz.</url>
            <title>Stories by Gagan Tut on Medium</title>
            <link>https://medium.com/@gagantut?source=rss-905b86aefd7e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 13:19:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gagantut/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[IDK|MVC||MVVM|WAT]]></title>
            <link>https://medium.com/@gagantut/idk-mvc-mvvm-wat-daa020758f5f?source=rss-905b86aefd7e------2</link>
            <guid isPermaLink="false">https://medium.com/p/daa020758f5f</guid>
            <category><![CDATA[angularjs]]></category>
            <category><![CDATA[devleague]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Gagan Tut]]></dc:creator>
            <pubDate>Tue, 09 May 2017 19:41:44 GMT</pubDate>
            <atom:updated>2017-05-09T19:41:44.613Z</atom:updated>
            <content:encoded><![CDATA[<p>In Angularjs, there are two main patterns that act as the base of your application. The two patterns are Model View Controller (MVC) and Model View View Model (MVVM).</p><p>MVC</p><p>The MVC pattern defines three roles in the application which are model, view, and controller. Each role has a distinct role in what it does and what purpose it has in the application. The model is the data that the application wants the user to see or interact with. The view is what actually represents the data and visually displays the data on the screen. The controller is simply the link between the model and view to connect and transmit information between the two. The main aspect that differentiates MVC is the controller role. In MVC, the controller transmits the data between the two other roles when needed. Any change in the view doesn’t necessarily reflect in the model because the controller actually controls the interactions between model and view. The controller actually applies validation and business operations on the data that it receives before passing it on.</p><p>MVVM</p><p>The MVVM pattern is very similar to the MVC pattern except that the controller role is replaced with a View Model role. The view model role enables two way binding so that every data change on the view changes the data in the model and vice versa. This two way binding is the core differentiator because it pretty much simplifies the three roles in MVC to only two in MVVM since the View Model directly mediates all the data between the view and model. All the business operations are then actually happening in the view role and the view model just updates the model based on those operations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daa020758f5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Prequel to SQL]]></title>
            <link>https://medium.com/@gagantut/my-prequel-to-sql-15f531b80205?source=rss-905b86aefd7e------2</link>
            <guid isPermaLink="false">https://medium.com/p/15f531b80205</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[devleague]]></category>
            <dc:creator><![CDATA[Gagan Tut]]></dc:creator>
            <pubDate>Thu, 27 Apr 2017 19:57:19 GMT</pubDate>
            <atom:updated>2017-04-27T20:12:24.767Z</atom:updated>
            <content:encoded><![CDATA[<p>Data data data… Data is everywhere and with so much data in this world, we need a place to actually store it. This is where SQL comes in to store data in various forms to efficiently save the data and use it anyway you need to. Most people would think that there can only really be a couple data types such as numbers, letters and booleans. SQL, however, splits up those general types of data into smaller more specific types to allow for more specificity. The data types supported by SQL are as follows:</p><ul><li>CHARACTER (CHAR)</li></ul><pre>Character data type accepts character strings that have a fixed length. The length can be initially specified by adding it to the end of the character declaration as such : [CHAR(20)]</pre><pre>Note: If length is longer than initially specified, it is cut off the end.</pre><ul><li>VARCHAR</li></ul><pre>VARCHAR data type also accepts the same data as CHARACTER but unlike CHARACTER, the length declaration is mandatory. This differentiates VARCHAR because if a longer string is inserted into VARCHAR, an error is sent back.</pre><ul><li>BOOLEAN</li></ul><pre>BOOLEAN data type is same as always where there can either be TRUE or FALSE.</pre><ul><li>SMALLINT</li></ul><pre>SMALLINT data type only accepts numbers that are between the range of (2^-15) and (2^15)-1. Although this range is still quite large, it is still relative to how large numbers can actually become. For larger numbers, INTEGER is used.</pre><ul><li>INTEGER (INT)</li></ul><pre>INTEGER data type further expands the range of numbers accepted to include all numbers between (2^-31) and (2^31)-1. For even larger numbers, DECIMAL is used.</pre><ul><li>DECIMAL (DEC)</li></ul><pre>DECIMAL data type allows for a specified length a number can be when inserted as such : [DECIMAL(12,5)]. The first number refers to the length on the left side of the decimal while the second number refers to amount of digits on the right side of the decimal. If a number has more than digits on the left than initial specifications, an error is thrown. Extra numbers on right side of decimal are just cut off from end.</pre><ul><li>NUMERIC</li></ul><pre>This datatype is exactly the same as DECIMAL.</pre><ul><li>REAL</li></ul><pre>REAL data type accepts numbers up to a storage of 4-bytes.</pre><ul><li>FLOAT</li></ul><pre>FLOAT data type is similar to REAL except that the maximum can be specified such as: [FLOAT(5)] If more digits are inserted, an error is thrown.</pre><ul><li>DATE</li></ul><pre>DATE data type is used to record dates. The format for dates are &#39;YYYY-MM-DD&#39;.</pre><ul><li>TIME</li></ul><pre>TIME is the data type to record time. The format for TIME is &#39;HH:MM:SS&#39;. To be even more specific, a decimal can be used to further specify time.</pre><ul><li>TIMESTAMP</li></ul><pre>TIMESTAMP data type combines DATE and TIME into a single data type. The format is &#39;YYYY-MM-DD HH:MM:SS&#39;.</pre><ul><li>CLOB</li></ul><pre>CLOB which is short for character large object accepts strings with longer value than the CHARACTER data type. CLOB can be as large as 2 gigabytes.</pre><ul><li>BLOB</li></ul><pre>BLOB data type is similar to CLOB but instead of strings, BLOB accepts binary values as large as 2 gigabytes.</pre><p>Those are the data types in SQL but PostgreSQL further defines more data types that are only specific to PostgreSQL and not supported by the SQL language as a whole. The common additional data types are as follows :</p><ul><li>TEXT</li></ul><pre>TEXT data type stores variable-length strings.</pre><ul><li>BIT (size)</li></ul><pre>BIT data type is used to specify the length of a bit string which can be stored in that column.</pre><ul><li>BIGINT</li></ul><pre>BIGINT is similar to the INTEGER data type in SQL but BIGINT can store 8-byte integers.</pre><ul><li>SERIAL</li></ul><pre>SERIAL data type is used in PostgreSQL to automatically increment an integer. It can be used to create unique keys each time data is inserted.</pre><ul><li>MONEY</li></ul><pre>MONEY data type stores currency values. The format is &#39;M.NN&#39; where M can be an integer of any value.</pre><ul><li>TIMESTAMP WITH TIME ZONE</li></ul><pre>TIMESTAMP WITH TIME ZONE takes the TIMESTAMP data type but also hooks on the specific TIME ZONE that the data uses. Format is as follows: &#39;YYYY-MM-DD HH:MM:SS-TZ&#39;.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15f531b80205" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stoop into OOP]]></title>
            <link>https://medium.com/@gagantut/stoop-into-oop-dd47bf471e18?source=rss-905b86aefd7e------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd47bf471e18</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[devleague]]></category>
            <category><![CDATA[object-oriented]]></category>
            <dc:creator><![CDATA[Gagan Tut]]></dc:creator>
            <pubDate>Thu, 23 Mar 2017 19:56:37 GMT</pubDate>
            <atom:updated>2017-03-23T19:56:37.616Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello to all you five year olds out there trying to learn Object Oriented Programming on Javascript. If you’re not five, you’ve read this far already so whatever, keep going.</p><p>So what is OOP? It rhymes with hoop and it has to do with creating objects in Javascript that obtain properties and methods from a parent class which is also an object itself. The new object is created by entering the values that the class needs in order to create it’s list of properties and methods. an example of a class would be:</p><pre>class Human {<br>  constructor(name, age) {<br>    this.name = name;<br>    this.age = age;<br>  }<br>}</pre><p>Using the above class, you can create objects just by passing in the “name” and “age” values… like so:</p><pre>var fiveYearOld = new Human(&quot;Reader&quot;, 5);</pre><p>And so there you have a variable called fiveYearOld and it contains an object that is in the “Human” class. The most important part is that the fiveYearOld has a name (“Reader”) and an age (“5”). Using that same “Human” class lets you create as many objects with those properties as you want. Using that same class, you can also create subclasses that also take properties from the “Human” class but also can have additional properties of it’s own as such:</p><pre>class Programmer extends Human {<br>  constructor(name, age, compLanguage) {<br>    super(name, age);<br>    this.compLanguage = compLanguage;<br>    this.skills = &quot;OOP&quot;;<br>  }<br>}</pre><p>Just like how we created fiveYearOld, we can create objects that follow the “Programmer” class but the important thing is that it will also have the properties of the “Human” class since the “Programmer” extends from and is a subclass of the “Human” class. This relationship works just like our family at home. The “Human” class is the parent, while the “Programmer” class is the child. So if we were to create a new variable called “fiveYearOldAfterReadingThis” and using the “Programmer” class, it would have the properties as such:</p><pre>fiveYearOldAfterReadingThis{<br>name: &quot;Reader&quot;,<br>age: 5,<br>compLanguage: &quot;Javascript&quot;,<br>skills: &quot;OOP&quot;<br>}</pre><p>Digging deeper into this relationship between a parent and a child, we split into two concepts which are big words but have a easy, distinct difference. One is prototypical inheritance and the second a classical inheritance. The big difference is how the parent and child relationships go.</p><p>In classical, the child gains the properties of the parent when it is created but then breaks off to own. So if the parent is ever changed to add a new property or method, the child will not be affected and won’t also gain it. In prototypical, the opposite happens where the child also will have the properties of the parent even if the parent is changed after the child is created.</p><p>Javascript is created based on prototypical inheritance from its very roots but the above examples are a way to create a class to be able to use classical inheritance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd47bf471e18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s the meaning of getting an education?]]></title>
            <link>https://medium.com/@gagantut/whats-the-meaning-of-getting-an-education-428b22ba2d85?source=rss-905b86aefd7e------2</link>
            <guid isPermaLink="false">https://medium.com/p/428b22ba2d85</guid>
            <category><![CDATA[devleague]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Gagan Tut]]></dc:creator>
            <pubDate>Mon, 20 Mar 2017 19:53:16 GMT</pubDate>
            <atom:updated>2017-03-20T19:53:16.994Z</atom:updated>
            <content:encoded><![CDATA[<p>What’s the meaning of getting an education?</p><p>When talking about getting a higher education, the natural answer that most people will say is to go to college and get a degree. What gets lost in this translation is the fact that you can obtain many real-life skills without getting the college degree in that subject.</p><p>Although many professions require college degrees, I became interested in computer science where a degree isn’t the one and only option. The next step of course was getting the education so I did what most people looking for further education do and went to a community college as my first step toward a computer science degree. In my two years there, I found myself learning everything but computer science! I was taking english, history, and science classes when all I actually wanted was to learn how to program and obtain skills for computer science. The couple computer science classes I did take were also a horrible experience because they were taught at a very slow pace that just bored me and gave me an unreal look at what computer programming is. Considering there are about thirty students per class, I can get why the pace was slow since everyone has their own learning style but it clearly wasn’t for me.</p><p>During my winter break in December of 2016, I started looking into teaching myself how to code and as I did, I also started reading into bootcamps which started to sound more and more for me with a fast paced setting and a singular focus. As I did more research, I found tons and tons of bootcamps all over the country and especially in my home state of California. The one that caught my attention most was Devleague though which is in Hawaii and seemed to be built for a beginner who was just entering the programming world with no knowledge but a drive to learn real skills. There was still some doubt though about the authenticity of bootcamps since it seemed like a crazy idea to not get my education from a traditional college. After an initial interview with the founders of Devleague in which we talked about the college vs bootcamp education, I was sold and was given a programming challenge to get me accepted into the program. Through self learning as well as open help from a person at Devleague, I struggled my way through to make the challenge application and was greeted with an acceptance e-mail shortly after.</p><p>What I wanted to get out of Devleague was a new skill set with which I could actually program and get started on a new career in the field. Although getting a nice job after Devleague would be great, my main focus is to just have the ability to program and have an understanding on how I can get further since I will probably still go through college to finish my degree. That way, even if the classes continue to bore me, I actually won’t mind as much since I will be able to continue to delve into programming and learn what I want on the side with my education from Devleague.</p><p>So far, I am one week into Devleague and have enjoyed it very much since I pace is very fast but there are also instructors and aides who are with us all day whenever we need any sort of guidance and help. Although the rapid pace of the program also makes it so that there is limited time to learning each topic, the instructors are well organized and give more time on difficult subjects while rushing through the ones that are easy to grasp. I have learned more programming in this one week as I did in my two years of community college in which programming was done through dragging and dropping elements onto a page(Not what computer programming is at all).</p><p>So the original question was what exactly is the meaning of getting an education. For many, it is and will always be going to a traditional college but there are other options out there. One such option is the one I am taking and that is getting actual skills from Devleague that will open a door to a new career in a rapidly fast amount of time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=428b22ba2d85" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>