<?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 Dennis Yang on Medium]]></title>
        <description><![CDATA[Stories by Dennis Yang on Medium]]></description>
        <link>https://medium.com/@denniscyang?source=rss-38609ec85990------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*n0RQVq11fNDgu6GL.jpg</url>
            <title>Stories by Dennis Yang on Medium</title>
            <link>https://medium.com/@denniscyang?source=rss-38609ec85990------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:17:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@denniscyang/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[NEW BLOG]]></title>
            <link>https://medium.com/@denniscyang/new-blog-d3554eb17d4?source=rss-38609ec85990------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3554eb17d4</guid>
            <dc:creator><![CDATA[Dennis Yang]]></dc:creator>
            <pubDate>Mon, 23 Feb 2015 01:07:50 GMT</pubDate>
            <atom:updated>2015-02-23T01:07:50.100Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi there!</p><p>I am hosting my blog on my own website.</p><p>Check it out!</p><p><a href="http://www.denniscyang.com/">Hacking Through</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3554eb17d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Journey of a Software Engineer: Week Two of Hack Reactor]]></title>
            <link>https://medium.com/@denniscyang/journey-of-a-software-engineer-week-two-of-hack-reactor-d6b34beb5bb8?source=rss-38609ec85990------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6b34beb5bb8</guid>
            <dc:creator><![CDATA[Dennis Yang]]></dc:creator>
            <pubDate>Mon, 16 Feb 2015 06:55:21 GMT</pubDate>
            <atom:updated>2015-02-16T16:20:23.866Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Once again, if you found any grammatical errors, please inform me!</em></p><p>Yes! I made it through the second week! The second wasn’t as crank up as the first week. I am guessing from now on, it will be focus on algorithm problems that will appear on a job interview and using some of the tools/API that are available out there.</p><p><em>What am I working on?</em></p><p>I realize how bad my programming typing skill is. Therefore, I am doing a daily 10 minutes session with the <a href="http://www.keybr.com/#!game">typing training website</a>. I also found a typing practice <a href="https://typing.io/lessons">site</a> for programming. It is really helpful if you need to use your [], {}, and (). I also need to improve my jQuery and CSS knowledge because I am really bad at it.</p><p><em>What did I learned this week?</em></p><p>This week starts off with a fun project where my pair and I have to use sub classes to create an application. (Not sure if I ever mentioned pair programming in my blog. At Hack Reactor, you must learn how to pair program. It is a technique where you express your idea to someone else and make sure he or she understands it. One will type and one will guide on what to code. It is not a well known practice out there and I doubt companies are willing to pay double the money for two programmers to work on the same thing. However, programmers don’t work alone, so it is important to understand how you can express your ideas to others.) What is a sub class? It is a class that links to its parent and use whatever the parent has. I think of it as a tree, where the children will have all the properties and methods of the parent or ancestors. The sub class can rewrite any of the defined properties and methods but it will break the link. If you would like to use the parent methods or properties, just make sure you call that class.</p><p>Example:</p><pre>var Parent = function(){<br>  this.age = 50;</pre><pre>};<br>Parent.prototype.set = function(){<br> //Do something here...</pre><pre>};</pre><pre>var Children = function(){<br>  //Creates the link of &#39;this&#39; to Parent<br>  Parent.call(this);<br>  //Following line breaks the link and Children will have a new age<br>  this.age = 20;<br>  //You can refer back to parent with the following line.<br>  this.parentAge = Parent.age; </pre><pre>};<br>//prototype is an object itself which is in all functions. <br>//Object.create links the Parent.prototype object with the<br>//Children.prototype object. REMEMBER! This is only a link<br>//NOT A COPY<br>Children.prototype = Object.create(Parent.prototype);<br>Children.prototype.constructor = Children; </pre><pre>Children.prototype.set = function(){<br>  //This will create a .set method of Children and breaks the link<br>  //with the parent. However, you can refer back to the parent<br>  //again with following.<br>  <br>  Parent.prototype.set();<br>};</pre><p>The only thing I wasn’t enjoying is the CSS and jQuery part. Not that I don’t like it, I am just really bad at it.</p><p>The second topic was N Queens. I LOVE IT. My pair and I spent most of our first session getting the helper functions to work. We implemented something that was already there. Note to self: Always do a quick scan of what is available to you! How does the N Queens work? N is number of rows and columns for our chest board. We have to find the number of sequences that we can place N number of Queens on the board so that they don’t attack each other. This is a decision tree where the next move and all that follow are base on the first decision. Since we are working on a chest board, first decision will be the first row/column. This also means that we have to go through each box in the first row to check where the next queens would be in the following rows/columns. This needs to be done recursively since we don’t know what N we are working on. *IMPORTANT* Think about the <a href="http://davidshariff.com/blog/what-is-the-execution-context-in-javascript/">execution context</a> when working with recursion functions. It really helps!</p><p>The third topic was <a href="http://d3js.org/">D3</a> (not Diablo 3). It stands for Data Driven Document. It is an API that allows you to do a lot of crazy stuff with your data. It binds the data that you provided with the DOM elements and update it accordingly. I was soloing and I regret it. D3 focus more on designing and how everything looks and I am just really bad at designing things.</p><p>We also did some toy problems: Finding sequences of Rock Paper Scissors, Finding number of leaves in a tree, Insertion Sort, Finding Prime numbers, and evenOccurrence.</p><p>Finding sequences of Rock Paper Scissors is similar to N Queens. You go through each row and place R, P, or S accordingly. This needs to be done recursively and think about the execution context!</p><p>Finding number of leaves in a tree: A node is a tree itself. If the node have no children at all, then it is a leave. Do a <a href="http://en.wikipedia.org/wiki/Depth-first_search">depth-first search</a> and it will work for you!</p><p>Insertion Sort: This is not a merge sort! You need to first find the place you want to insert and move the whole array back and insert that value in.</p><p>Finding Prime numbers: This is math. The hard way to do this is going through the every number until the given number and get the <a href="http://en.wikipedia.org/wiki/Module_%28mathematics%29">module</a> of current number with given number. If it is zero then it is not prime because num module num = 0 means it is divisible. This will take up alot of time if we are given a large number. The better way to implement this is, still going through a list of numbers but until the square root of the given number.</p><p>Example:</p><p>Lets say we are given 16. We know that 16 cannot be divisible by anything between 16 to 8. Now lets look at 8. We can apply the same rule here where 8 cannot be divisible by anything between 8 to 4. This leads to the only number we have to check is from 2 (2 is the first prime number) to square root of 16. We can replace 16 with N and N is any given number. This will limit the amount of numbers we are require to check comparing to the first method.</p><p>Even Occurrence: Find the elements that occur evenly in a given list. Use an object to keep track of that! If it is odd occurrence trigger the key of that value to true or false/ 1 or 0</p><p>This is it for week two!</p><p>Random thought of the week:</p><p>I felt I am really behind with a lot of stuff.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6b34beb5bb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Journey of a Software Engineer: Week One of Hack Reactor]]></title>
            <link>https://medium.com/@denniscyang/journey-of-a-software-engineer-week-one-of-hack-reactor-a21abc6ee281?source=rss-38609ec85990------2</link>
            <guid isPermaLink="false">https://medium.com/p/a21abc6ee281</guid>
            <dc:creator><![CDATA[Dennis Yang]]></dc:creator>
            <pubDate>Sun, 08 Feb 2015 23:55:19 GMT</pubDate>
            <atom:updated>2015-02-09T05:12:34.763Z</atom:updated>
            <content:encoded><![CDATA[<p>I am glad to say I made it through the first week at Hack Reactor! (Applause to myself!) It had been a crazy week where they try to push as much of computer science knowledge into my brain as possible. I can’t consider this as stress but just a lot of things to memorize (or _.memoize).</p><p>For those who are reading my blog, I am sure you are interested in what I have learned and how I am different since my last blog post. I am confident to say that I can finish my pre-course material of underbar (something similar to underscore created by HR) and recursion in one day. I haven’t got into any hard algorithmic problems yet, but I am very surprise on how significant my improvement is.</p><p><em>What did I learn?</em></p><p>Recursion: A function that keep calling itself until a condition is met and return what the programmer wants.</p><p>Scope: A real world example will be a parent and a child. A child can inhert parent’s specification. A child can have his or her own specification but parent can’t inhert them. In javascript, we have a global scope (which I consider as the root function). Whatever we declare in the global scope can be access by the function within it. However, anything in the function can’t be access by the outer function unless it returns the value.</p><p>Execution Context: Something that is happening in the computer system. You can consider it as running the program one line at a time.</p><p>Closure: My understanding of closure is a inner function that have access to the variable of the outer function without running the outer function again.</p><p>this: The keyword <em>this</em> can be referring to the function it contains in or the object on the left of the dot notation. I learn that <em>this </em>will always refer to the current object even if you pass in a different argument for your recursion function.</p><p>Decorator function vs Class function: Decorator adds or augments something new to the existing object and a Class creates or constructs an object base on the Class. Class contains an object and return everything within the object.</p><p>Class patterns: functional, functional-shared, prototypal, pseudoclassical. These are the four patters that I learn for class patterns. Functional refers to a class constructor that have all methods within the class function. Functional-shared use an extend function to add the methods into the class during construction. Prototypal creates a link to the methods and pass along the methods during construction. Pseudoclassical doesn’t return anything, it will create a object during construction. Functional-shared, prototypal, and pseudoclassical uses the keyword <em>this. </em>Pseudoclassical will require a <em>new </em>keyword in order to construct.</p><p>Data Structures: Hash table, linked list, tree, set, binary tree, and graph. Linked list connects nodes together. The previous node will contain the reference of the next node. Hash table will take a key value pair. The key will be hashed and return a number which will be an index to store the value. Tree contains parent node and child node. I consider each child node as a tree itself which means the parent node will store one or more child tree. Set is just a structure that contains no duplicates (Boring). Graph is like a web that can have connections with the near by node. I also consider it as tree that each node can be a parent when connection is form. Binary tree follows a pattern. It goes left or right depending the comparison of the current value. I personally love binary tree.</p><p>Were there more?</p><p>I was also given a lot best practice for coding and few theoretical presentation. I will give HR a A+++++ for overall experience so far. Please allow me to end here for this week’s post and vanish in to the darkest(quote from Allen Price, a HIR). I’ve got a lot of reading to do.</p><p>BTW: This is my current site. Lets see how much I have improved through the course!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P95Ib_qvJ2psRvGLOdyopA.png" /></figure><p>PEACE OUT!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a21abc6ee281" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Journey of a Software Engineer: The day before Hack Reactor]]></title>
            <link>https://medium.com/@denniscyang/journey-of-a-software-engineer-the-day-before-hack-reactor-ca4cf60adfa5?source=rss-38609ec85990------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca4cf60adfa5</guid>
            <dc:creator><![CDATA[Dennis Yang]]></dc:creator>
            <pubDate>Mon, 02 Feb 2015 02:56:50 GMT</pubDate>
            <atom:updated>2015-02-08T01:20:48.227Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Warning: you are about to read a post that might contains grammatical errors. Please feel free to contact the author regarding your concern.</em></p><h4>About to start…</h4><p>It had been a while since my last blog post on blogger. If you are interested, you may check <a href="http://denniscyang.blogspot.com/">them</a> out. Tomorrow will be a new start of my career life, the first day in Hack Reactor. Hack Reactor is a 12 weeks software engineer bootcamp. Its goal is to <em>transform </em>you from a <em>noob (</em>someone who just doesn’t know what they are doing) to a junior software engineer that can fit in any SE work culture. People from Hack Reactor will make sure you are ready for the challenging SE world out there.</p><p>If you did read my blog, you will notice that I failed my first interview but I got a second chance. However, I need to show HR how much I understand Javascript before I get that second chance. I work my way through and create a simple <em>(very simple) </em>game with JS. It displays the character’s information, asks for user inputs, randomly generates damages, and does some calculation with those data. Yes, it sounds simple but it took me 2 weeks to complete it. I told myself that I have to get in HR because it is the place to be. Before HR, I was thinking of attending a college for a master degree. However, considering the amount of time and money I have to spend, it won’t be a good choice. HR is the way to get me up and running <em>in a short period </em>of time and <em>time is of the essence</em>.</p><p>I learned a lot during the process and I thought I am ready for whatever that is coming. I quit my job at the end of November 2014, and travel all the way to San Francisco. My cohort 24 doesn’t start until tomorrow, which is February 2, 2015. My plan was to give myself all the time I could to prepare for the pre-course material. Our cohort material was released early December, but I didn’t had a chance to look over it until January due to housing and other personal issues. I was telling myself: <em>nah, it wouldn’t be THAT hard</em>. Don’t ever think how your brain thinks. Yes, your brain will trick you from time to time. I end up catching up a lot of reading and rushing for the deadline for each session. It wasn’t fun at all. However, I managed to complete all the core requirements. <em>Advice for future HRers: DO and please do spend more time doing your pre-course.</em></p><p>I will be blogging once a week during my time in Hack Reactor. It is more of a blog to myself of what I did, what I learned, and how HR is like in my point of view. I do have a lot to share of the things I learned during the pre-course. BUT! (<em>Yes, always the but) </em>I have some reading to do to get myself ready for tomorrow. Do expect a lot of technical terms in my future posts. I will sometime end it a random thoughts. Here is today’s:</p><h4>Aim high or low?</h4><p>I was thinking if I should aim high for my goal that I know I can’t really reach it without losing a leg or a bone, or aim low so that I don’t have to work too hard. People will tell me from time to time to <em>dream big</em>. But how big? When I think about my future career, I am considering if I should aim for a position in Google (<em>who shouldn’t?)</em>? Be a co-founder of a company like Facebook (<em>Yeah right.)</em>? Or simply get a <em>job </em>as a software engineer and work my life through?</p><p>Here is the scenario: If I aim high and can’t reach, I can grab whatever that is below that and it is something good too. If I aim low, I can never reach anything higher than that.</p><p>So are you aiming high or low? I am aiming high.</p><p>Peace O.U.T.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca4cf60adfa5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>