<?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 Bailey Cheung on Medium]]></title>
        <description><![CDATA[Stories by Bailey Cheung on Medium]]></description>
        <link>https://medium.com/@baileycheung28?source=rss-2cce79486d69------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*b55K8jEtOn50m-6EO2Lo3w@2x.jpeg</url>
            <title>Stories by Bailey Cheung on Medium</title>
            <link>https://medium.com/@baileycheung28?source=rss-2cce79486d69------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:21:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@baileycheung28/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[Git & GitHub Explained]]></title>
            <link>https://baileycheung28.medium.com/git-github-explained-a2a8d3e61f92?source=rss-2cce79486d69------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2a8d3e61f92</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git-commands]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Bailey Cheung]]></dc:creator>
            <pubDate>Fri, 12 Mar 2021 19:04:30 GMT</pubDate>
            <atom:updated>2021-03-12T19:04:30.058Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Basics and Helpful Commands to Know</h4><p>Most computer science students have at least heard of Git and GitHub. However, if you’re anything like I was, that’s as familiar as you are with this tool. Let’s see if I can help by starting with the basics:</p><p>Git is one of the largest version control tools for software development. It can be used by an individual for a side project or by a group as a collaboration tool. Either way, this tracking system tool, keeps versions and configurations of a software project organized.</p><p>GitHub is a code hosting platform that uses Git. By which, multiple members of an organization can access the remotely hosted code on their local machines. This facilitates collaboration by allowing for local changes to the main code base to be visible remotely after being approved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*lOjCQyoC7J0JYOeb_AvhoQ.png" /></figure><p>Imagine that you and a friend are writing a research paper together. If each of you write your portion on a physical piece of paper, in your own homes, then even the simplest change on either of your parts will take a lot of effort to be reflected in the final work. As new research is done, grammatical errors are found and progress is made, endless in-person meet ups are made necessary. But what if you each wrote to a Word Document on your respective local machines and then uploaded those changes to the same Google Doc? Because the paper is hosted remotely by Google, you’re then still able to do your individual work and merge it with the final draft when needed. This is the exact problem that GitHub solves, but for software projects.</p><p>Git, used by GitHub and other hosting platforms like Bitbucket, is the man behind the curtain. Git helps keep up with all versions of your project and all the versions of the code that exist between you and your teammates (called branches). The former function is similar to ‘ctrl-z’ in a Word Document, you can always revert back to a previous version of your code by using the appropriate commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*eGS_hu8SDAdgU0aamgRg9w.png" /></figure><p>Secondly, Git allows teammates to have their own local versions of the code in isolation from other’s updates and edits. After getting a copy of the remote repository from GitHub (or wherever the code is hosted) and storing such on your local machine, a developer has the ability to start working on their part of the project. But in order to prevent any current work from overwriting anyone else’s, individuals should <strong>branch</strong> off from the main code base, or <strong>master branch</strong>. A branch contains all the code that the master branch does at the time it’s created. Any changes made to the branch you are working on, is only reflected there, until merged with the master branch. This is great because your coworkers, classmates or whoever has access to the overall project (stored as a <em>repository</em> on GitHub), can update their own local version, then safely and quickly <em>merge</em> it with the original, main code. With Git, work can easily be divided among the team, changes can be tracked and undone, and work can be completed from anywhere in the world.</p><p>As mentioned, a <strong>repository </strong>holds all of the code, but also any other important documents like configuration files and READMEs (a markdown document with information about the project). This directory can be public or private, local and remote, and is only accessible by the allowed parties. All of the branches of the code base are also tracked in a repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*Pls8wMCHFHcgQVr7SRyVcA.png" /></figure><p>Because other collaborators are constantly adding and refactoring code, you want to make sure your local environment reflects these changes before working on your own. If you’ve already cloned the <em>remote repository</em> onto your machine, <strong>pull</strong> any changes from the remote repository to your <em>local repository</em>. Now create a <em>branch</em>, work on your changes, then <strong>add</strong> them from your <strong>working directory</strong> to the <strong>staging area</strong>. When you’re ready to have these changes reflected on your branch, in your local repository, <strong>commit</strong> them. Finally, <strong>push</strong> your branch’s recent commit to the remote repository. When you’re ready to have the <em>master branch</em> reflect your branch’s work, you can <strong>merge</strong> such in the form of a <strong>pull request</strong> (PR). If your request to pull your commit from your branch to the master is approved, the master branch code base will then reflect this change. And that’s it!</p><h4>Basic Workflow Git Commands to Know</h4><p><strong>cd</strong> <em>localWorkingDirectory </em>(change to your working directory)</p><p><strong>git pull</strong> (pull any new code from remote repository into your local repository)</p><p><strong>git checkout -b</strong> <em>branchName </em>(create a new branch and switch to it)</p><blockquote>make changes to code on your new branch</blockquote><blockquote><strong><em>git add</em></strong> fileYouChangedOrAdded <em>(files are added to staging are)</em></blockquote><blockquote><strong><em>git commit -m</em></strong><em> </em>“Describe what you did in present tense” <em>(takes changes from staging area to commit)</em></blockquote><p><em>(repeat above until satisfied with work)</em></p><p><strong>git push</strong> <em>branchName </em>(local branch changes are pushed to remote branch)</p><p><strong>git merge</strong> <em>branchName </em>(from branch to master branch)</p><h4>Other Helpful Git Commands</h4><p><strong>git clone</strong> <em>remoteRepositoryURL </em>(clones remote repository to your current directory)</p><p><strong>git status</strong> (tells you the current file changes)</p><p><strong>git log</strong> -<em>n </em><strong>count</strong><em> </em>(lists a log of branches last n commits)</p><p><strong>git diff</strong> <em>fileName </em>(shows changes between working directory and staging area)</p><p><strong>git reset</strong> <em>fileName</em> (resets to previous working state)</p><p><strong>git stash</strong> (put current working directory changes in stash for later use)</p><p><strong>git stash pop</strong> (apply stash to current working directory and clear stash)</p><p><strong>git stash drop</strong> (delete a stash)</p><p><strong>git branch</strong> (to see all local branches)</p><p><strong>git checkout</strong> <em>branchName </em>(switches to branch)</p><p><strong>git -d</strong> <em>branchName </em>(deletes branch)</p><p><strong>git remote -v</strong> (to see bookmarked remote repositories)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2a8d3e61f92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agile — what and why?]]></title>
            <link>https://baileycheung28.medium.com/agile-what-and-why-325b50e9defb?source=rss-2cce79486d69------2</link>
            <guid isPermaLink="false">https://medium.com/p/325b50e9defb</guid>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[kanban]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[kanban-board]]></category>
            <dc:creator><![CDATA[Bailey Cheung]]></dc:creator>
            <pubDate>Tue, 16 Feb 2021 21:47:20 GMT</pubDate>
            <atom:updated>2021-02-16T21:50:25.788Z</atom:updated>
            <content:encoded><![CDATA[<h3>Agile — what and why?</h3><p>So it’s my first week of work as an associate software engineer, which means lots of on boarding and discussions around tech best practices. While it’s still fresh, I wanted to take some time to go over Agile for anyone who may be unfamiliar or wants a refresher :)</p><p>So. Agile is a way to approach a project and in my case, a software development project. This process capitalizes on constant communication and collaboration. Teams will work on a certain amount of work for a sprint (1 to 4 week period) in order to work towards the overall goal. After the product is up and running, the team’s sprints will often comprise of new feature releases, hot fixes, and enhancement. To approach a project in an agile way, teams can choose from 2 different agile strategies — <strong>scrum</strong> and <strong>kanban</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/227/1*53qFA9sHRbukYnnbldFehQ.png" /></figure><p>Scrum is the agile framework I am more familiar with so I’ll start here. There are 3 key players in the scrum team — product owner, scrum master, and the development team. These development teams should be no larger than 9, but no smaller than 3 and can include back-end engineers, business analysts, qa engineers, UI/UX designers etc.</p><p>As a <strong>product owner</strong> you know exactly what the end product should look like. And when you don’t, you, and only you, check in with the client to get a clearer vision. The product owner communicates these specifications into a log called the ‘product backlog.’ The ‘product backlog’ is where the dev team pulls out tasks for their next sprint’s work.</p><p>The facilitator of the sprint planning and other relevant scrum meetings is the <strong>scrum master</strong>. If the dev team is impeded in any way, the scrum master gets them back on track. Leading, managing and ensuring progress via the scrum progress is his or her day to day.</p><p>Finally the <strong>development team</strong> is comprised of all individuals necessary to build a working product for the client. Every sprint these individuals work on their allocated user stories and communicate daily what was done the day before, what will be done today, and any roadblocks. These meetings are called <em>daily</em> <em>stand-ups</em> and are facilitated by the scrum master.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*0qkNJRTD-WSbDCAFcw6HLA.jpeg" /></figure><p>So what are <em>scrum practices</em>? I’ve already discussed a big one, <strong>daily stand-ups</strong>, but prior to beginning a sprint, the team needs to plan it. In <strong>sprint planning</strong>, the scrum master walks the team through the product back-log’s most essential tasks. Remember, the product owner doesn’t specify the ‘how,’ just the ‘what,’ and it’s up to the creativity of the dev team to implement. Each team member decides what task, or user story, they will work on and approximately how long it will take. <strong>User stories</strong> are the tasks that communicate a product feature or need that delivers business value. Assignment of such continues until everyone has plenty of work for this next sprint. All of the sprint’s user stories are stored in the <strong>sprint backlog</strong>. As a developer completes a task, the user story is moved from the sprint backlog, to in progress, to done (scrum boards can be as complicated or simple as you like). After the sprint is completed the team will be led in a <strong>retrospective</strong> meeting where the successes and failures of the previous sprint are hashed out.</p><p>Checking in at every step of the process is what allows change and progress to simultaneously exist in the scrum world. This is so important in tech because often the client changes requirements, implementation looks different than intended, or a newly released feature has some undiscovered bug. Because scrum teams can effectively develop a product that matches the vision and business needs of the client, projects progress smoothly and adjust well to real life.</p><p>Kanban boards are visual, time constraint free, and flowy. These guys help you see your team’s progress in real time. First things first, you and your fellow devs need to determine what needs to get done during your sprint. Tasks can be physically written out or virtually typed up. In today’s work from home times the latter is probably your go to :) The board you will be displaying your sprint tasks on is then divided into columns are to-do, doing, blocked*, and done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*NP_L4T_JD1ETFWeAqeLrog.jpeg" /></figure><p>Of course all tasks start off in the ‘to-do’ column and move across the board in a left to right direction as they near completion. Each team member should always be working on something and see it to the end. This ensures a steady flow of progress (encouraging for the team!) and constant deliverables (good for business value!). Unfortunately, by including a ‘blocked’ column, this flow is halted and can be viewed as ‘anti-kanbanian,’ so include at your team’s discretion. I think as long as communication is apt, you’ll be fine without it.</p><p>Anyways, I hope you enjoyed my brief overview of these two agile frameworks. Good luck putting it to practice and feel free to comment about your experience!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=325b50e9defb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The SOLID Architecture]]></title>
            <link>https://baileycheung28.medium.com/the-solid-architecture-127e0608a22e?source=rss-2cce79486d69------2</link>
            <guid isPermaLink="false">https://medium.com/p/127e0608a22e</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[solid-design]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Bailey Cheung]]></dc:creator>
            <pubDate>Tue, 15 Oct 2019 00:23:02 GMT</pubDate>
            <atom:updated>2019-12-04T18:56:37.659Z</atom:updated>
            <content:encoded><![CDATA[<h4>OBJECT ORIENTED PROGRAMMING</h4><p>Object Oriented programming relies on <strong>objects </strong>to solve whatever problem the developer is currently facing. Objects are created, or <strong>instantiated</strong>, from files called classes. <strong>Classes </strong>are <em>blueprints </em>that describe what an object is ‘made of’ and how this object will ‘interact’ with the outside world. How well these classes are defined is often the most weighty factor in determining your code’s elegance and efficiency.</p><p>SOLID is an acronym to help developers create classes that are <em>maintainable</em> and <em>extendable</em>. Each letter stands for a design principle that should be followed when writing a class for an object oriented project.</p><p><strong>S is for Single Responsibility Principle.</strong></p><p>I like to imagine a programmer yelling at an overzealous class, exclaiming “You had ONE job!”</p><p>Each class should have only one <em>job</em>. If a class has to juggle multiple responsibilities, that means it has to be adjusted any time one of it’s many responsibilities are updated or changed. A class should only be <em>maintained </em>for a <em>single purpose</em>.</p><p><strong>O is for Open Closed Principle.</strong></p><p>I think marriage is a good analogy for this one. Your family is open to extension, i.e. with puppies and children, but closed for modification, i.e. changing out your spouse.</p><p>Each class should be ‘customizable’ with extensions, but unable to be changed. All of the initial characteristics of the base object <em>should remain inherent</em> to any future “modified” object that is designed.</p><p><strong>L is for Listov’s Substitution Principle.</strong></p><p>In a mall, you don’t want to have one store that utilizes the barter system, while another accepts IOU’s for their products. You want all of your malls and all of your stores inside the malls to use currency systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZzwHuurh31JohLbe" /><figcaption>Photo by <a href="https://unsplash.com/@laviedesaad?utm_source=medium&amp;utm_medium=referral">Saad Sharif</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Same thing with Listov’s Substitution. (If ‘Listov’ throws you off with this one, just concentrate on the ‘Substitution’ part.) Following this principle just ensures that objects of your subclass have the <em>same ‘behavior’ </em>as objects of your super-class, which is actually an extension of the above principle. You should be able to <em>substitute </em>these objects for each other without totally throwing off your whole program.</p><p><strong>I is for Interface Segregation Principle.</strong></p><p>This principle is analogous to the difference in how you would describe your work day to your partner versus your boss. Disclosing the emotional ups and downs of your office job to the person who loves you unconditionally is very different than describing deliverables and meeting notes to the person that has the power to fire you; one does not need to share certain information to parties that are not concerned with such.</p><p>Similarly, if a developer is creating interfaces that are to interact with a student object, then the designer doesn’t need to include a medical school personal statement method in the non-graduate degree seeking student interface. Instead, create a whole separate interface for students seeking a medical degree after undergraduate studies. That way, objects are only utilizing information that is <em>relevant </em>to them, which also capitalizes on the <em>principle of least privilege</em> (bonus!).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*98Ks-56XXC5sJRp4" /><figcaption>Photo by <a href="https://unsplash.com/@maltewingen?utm_source=medium&amp;utm_medium=referral">Malte Wingen</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>D is for Dependency Inversion Principle.</strong></p><p>Which relates to my first article (: When I start my car, I definitely do not care that I am actually turning the crank-shift to start moving the pistons so that the spark plugs fire. I just care that my car engine is running.</p><p>Same thing with classes. A Vehicle class should not depend on a TurnCrankShift, MovePistons, and FireSparkPlugs class, but on higher level abstractions such as an Ignition class that then can further specify how your vehicle starts. This <em>abstracts </em>the (possibly unique) <em>implementation details</em> and allows different motor vehicles to extend the Ignition class. Developers who utilize this principle are aware careful not to specialize their classes too much, in order to maintain code <em>re-usability.</em></p><p>Thanks for reading my take on SOLID! Comment with questions/helpful remarks or edits.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=127e0608a22e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Abstraction and Data Structures: ADTs]]></title>
            <link>https://baileycheung28.medium.com/abstraction-and-data-structures-adts-bbee72d1f934?source=rss-2cce79486d69------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbee72d1f934</guid>
            <category><![CDATA[abstraction]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[abstract-data-type]]></category>
            <dc:creator><![CDATA[Bailey Cheung]]></dc:creator>
            <pubDate>Mon, 30 Sep 2019 19:40:15 GMT</pubDate>
            <atom:updated>2019-10-15T16:41:38.441Z</atom:updated>
            <content:encoded><![CDATA[<h3>Abstraction and Data Structures</h3><h4>ABSTRACT DATA TYPES</h4><p>Ok. So if you’ve spent any time at all sitting in a college level computer science course or at a local software developer meetup, you’ve probably heard of the word ‘<strong>abstraction</strong>.’ If you haven’t, you should definitely tack it onto your ‘look it up later’ list. Or just keep reading :) Today, before diving into the concept of abstraction being applied to specific topics such as data structures, let’s begin the conversation about abstraction from a bird’s eye view.</p><figure><img alt="Abstraction is just hiding certain ideas/concepts/information from a party." src="https://cdn-images-1.medium.com/max/1024/0*kUgqx8ag42hLVISu" /><figcaption>Abstraction is just hiding certain ideas/concepts/information from a party.</figcaption></figure><p>We, as engineers and developers, are often asked to create some sort of application to solve a client’s problem. The client says I want to put in ‘x’ and get out ‘y.’ So we develop an application where the user will interact with an interface to compute their desired output. The interface will remain separate from the actual cogs of our problem solving techniques, ie the implementation. Keeping the ‘<strong>what </strong>is happening’ (client-side) and the ‘<strong>how </strong>it is happening’ (engineer-side) separate may seem like extra work, but the benefits are fabulously helpful, particularly in relation to data types.</p><p>A data type is a set of objects that have a corresponding set of operations. This cohesive unit is considered an <strong>abstract data type</strong> (ADT) when the only way to access the operations of a data type is through the interface. Within the interface is the definition of the ADT, but nowhere is it mentioned how the set of operations are carried out, that is left for the implementation to flesh out. This carries from the design principle know as <strong>Separation of Concerns</strong> (SoC).</p><figure><img alt="Plate can only be accessed after removing all of the plates on top of it." src="https://cdn-images-1.medium.com/max/1024/0*i8Tnn08RZ-Zd8R3z" /><figcaption>Plate can only be accessed after removing all of the plates on top of it.</figcaption></figure><p>Let’s look at an example: a <em>stack</em>. A stack is an ADT that adds elements to it’s memory ‘one on top of the other.’ This is very similar to a stack of plates, First In Last Out (<em>FIFO</em>). After you have <em>push</em>ed on the desired amount of elements, in order to access the last element, you must first <em>pop</em>, or ‘take off,’ all of the previous elements of the stack. If I wanted to write code for this ADT, I wouldn’t want my user to know how I implement the pop function, just that the pop function is available with this data type, ie the definition. So, the ‘how’ would be abstracted from the ‘what,’ which is good for many reasons, but I’ll highlight 3 here:</p><ol><li><strong>Protection</strong>. The user can’t go around messing up your beautiful algorithms.</li><li><strong>Re-usability </strong>and <strong>Flexibility</strong>. The user now has the ability to use this ADT with the same stack multiple times or different stacks, without having to go through the pain of writing the implementation logic.</li><li><strong>Maintainability</strong>. If I as the developer need to fix some aspect of the code, I can change just the one implementation file, as opposed to several combined files.</li></ol><p>The above benefits are so important to building proper containers to store and manipulate data. And as we all know, data management is everything these days. So definitely use abstraction.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbee72d1f934" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>