<?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 Jack Yeung on Medium]]></title>
        <description><![CDATA[Stories by Jack Yeung on Medium]]></description>
        <link>https://medium.com/@jyeung.se?source=rss-5d28226a3cdb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*irbMeisc9DtHDpjmET2MMg.jpeg</url>
            <title>Stories by Jack Yeung on Medium</title>
            <link>https://medium.com/@jyeung.se?source=rss-5d28226a3cdb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 05:55:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jyeung.se/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[Data Structures - Part 3 — Linked Lists]]></title>
            <link>https://medium.com/@jyeung.se/data-structures-part-3-linked-lists-25c49caf77d2?source=rss-5d28226a3cdb------2</link>
            <guid isPermaLink="false">https://medium.com/p/25c49caf77d2</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[linked-lists]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[Jack Yeung]]></dc:creator>
            <pubDate>Mon, 01 Apr 2019 01:35:44 GMT</pubDate>
            <atom:updated>2019-04-01T01:35:44.677Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data Structures - Part 3 — Linked Lists</h3><p>In the previous part (2) of data structures, we discussed what an array is and revealed its performance flaws in certain areas. The weakness of arrays was that inserting or removing an element in the beginning or anywhere not at the very end of the array would cause each element to shift its index. Today’s topic is Linked Lists.</p><p><strong>Linked Lists</strong></p><p>What are Linked Lists? Linked Lists are actually similar to arrays in some aspects; for example, they both store collections or lists of data. Arrays allocate memory for every one of its elements packaged together in a single block of memory. On the other hand, linked lists allocate space for every element separately in its very own block of memory called a <em>node</em>. The structure of a linked list is two parts: pointers and data. The pointers are what give linked lists its name and connect all the nodes. Each node in the list will point to one other node with the exception of the last node. The very last node has a pointer; however, it is null. As expected, right? The data part of each node is something we are already familiar with as we encountered in arrays. The data portion of the node can house any type of data just like an array element can.</p><p>What differs between an array and linked list is how you access data in an element or node. In an array, accessing an element is fast. Accessing data in a linked lists is a bit slower since you must start from the head of the list and move through the list via its pointers until you arrive at what you are looking for. Elements in arrays are sequential, while nodes are housed randomly in linked lists. As such, operations such as insertions and deletions will be faster with linked lists compared to arrays.</p><p>There are two types of linked lists: single linked list and double linked list. They are also referred to as singly and doubly linked lists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*5wRMqVjLatOGX88VrZgacA.jpeg" /></figure><p>So far when I mentioned linked list up until this here I was actually referring to a singly linked list. There exists a second linked list that is the same as singly linked list, but with one difference: an additional pointer per node. A double linked list consists of nodes that two pointers: one pointing to the next node and one pointing to the previous node. The benefit of a doubly linked list is that it, of course, can be traversed in both directions. In addition, the deletion operation in a doubly linked list is faster when provided with the pointer leading to the node to be removed. Likewise, inserting a new node before a given node is fast as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25c49caf77d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Structures - Part 2 — Arrays]]></title>
            <link>https://medium.com/@jyeung.se/data-structures-part-2-arrays-a33d3e64762?source=rss-5d28226a3cdb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a33d3e64762</guid>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[Jack Yeung]]></dc:creator>
            <pubDate>Mon, 25 Mar 2019 02:11:46 GMT</pubDate>
            <atom:updated>2019-03-25T02:11:46.484Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data Structures - Part 2 — Arrays</h3><p>Arrays</p><p><strong>What is an Array?</strong></p><p>An array is list or collection of data or values in the form of elements. Each element has an index or, in other words, location that is associated with it. These indices are one method of accessing an element. Arrays are sequential data structures unlike objects. An non-array object is not ideal in a scenario in which you would like to have an ordered collection as there are no methods to manipulate the order of the elements. However, since an array is ordered systematically, we can add to the collection, remove from the collection and ultimately rearrange or change it.</p><p><strong>Methods</strong></p><p>Arrays have methods built to easily manipulate it. These include:</p><ul><li>push</li><li>unshift</li><li>pop</li><li>shift</li></ul><p>The <em>push</em> method appends an element to the very end of the array. Looking at the opposite end of the array, the unshift method adds an element to the very beginning of the array. Array.<em>pop</em> will extract the last element of the array and return it. Similarly, Array.<em>shift</em> will extract the element at the start of the array.</p><p><strong>Performance</strong></p><p>Of the four listed array methods, two are more efficient while the other two are slow. Take a couple of seconds to guess which are faster and which would generally be slower. . .</p><p>. . . . . .</p><p>. . . .</p><p>. . .</p><p>. .</p><p>If you said push and pop were faster, while unshift and shift were slower… you’re right!</p><p>Earlier we reviewed that Array.<em>push</em> and Array.<em>pop</em> are methods interacting with the end of the array. Remember that arrays are index-ed. By adding or removing an element to the end of the array, only the last index is updated or a new last index is created. Now on the other hand, adding or removing an element to the front of an array is no as short and simple. Starting to see where this is going? With Array.<em>unshift</em> adding a new element to the front of the array, now every single element in the array must update their index; this will happen <em>n </em>number of times with <em>n</em> being the number of elements in the initial array. Likewise, the same happens when you call upon Array.<em>shift</em> to remove the first element; now each element that remains in the array must update it’s index as well.</p><p>In the next part on data structures, we will cover what data structure can be used to combat the weaknesses of using an array.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a33d3e64762" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Structures 101 — Part 1]]></title>
            <link>https://medium.com/@jyeung.se/data-structures-101-part-1-ac41710317ea?source=rss-5d28226a3cdb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac41710317ea</guid>
            <category><![CDATA[time-complexity]]></category>
            <category><![CDATA[big-o-notation]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[Jack Yeung]]></dc:creator>
            <pubDate>Mon, 18 Mar 2019 02:59:20 GMT</pubDate>
            <atom:updated>2019-03-18T02:59:20.470Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data Structures 101 — Part 1</h3><p><strong>What is a Data Structure?</strong></p><blockquote>In computer science, a data structure is a data organization , management, and storage format that enables efficient access and modification.</blockquote><blockquote>— Wikipedia</blockquote><p>Data structures provide us with the means of organizing and managing our data in different ways such as data storage and indexing. There are several different types of data structures and each can be applied in specific applications or specialized tasks. Each of them have their own strengths and weaknesses. Making use of data structures lead to more efficient algorithms. When it comes to data structures and algorithms, we must mention the two complexities that come with them: time and space.</p><p><strong>Time &amp; Space Complexities</strong></p><p>Time complexity is the amount of time it takes a algorithm to to execute along with its data structure. Space complexity on the other hand is the amount of memory used as a result.</p><p>There are three time complexities that we look at: best-case, worst-case, and average-case. We mainly focus on the worst-case complexity because it indicates the longest run time of an algorithm to complete and guarantees its completion. Performing any operation on with data structures requires varying amounts of time. As such, accessing, adding, deleting, or moving data coincide with different time complexities.</p><p><strong>The Big O Notation</strong></p><p>Time complexity is usually expressed through the Big O notation.</p><blockquote>In computer science, big O notation is used to classify algorithms according to how their running time or space requirements grow as the input size grows.</blockquote><blockquote>— Wikipedia</blockquote><p>A good overview of the different complexities of data structures and algorithms can be found on the <a href="http://bigocheatsheet.com/">big O cheat sheet</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uCJTo2MZe-3eUbNY2UgHmQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac41710317ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SlashTask — Get Things Done!]]></title>
            <link>https://medium.com/@jyeung.se/slashtask-get-things-done-1ae3b5243949?source=rss-5d28226a3cdb------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ae3b5243949</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[task-manager-app]]></category>
            <category><![CDATA[redux]]></category>
            <dc:creator><![CDATA[Jack Yeung]]></dc:creator>
            <pubDate>Wed, 26 Dec 2018 11:38:55 GMT</pubDate>
            <atom:updated>2018-12-26T11:38:55.227Z</atom:updated>
            <content:encoded><![CDATA[<h3>SlashTask — Get Things Done!</h3><p>Hey! I have been away from programming for a while but I’m back! I’m currently in my very last stage of graduating from Flatiron School’s Software Engineering Immersive in NYC. This blog will be focused on some of the features my application has and how I built it. I created SlashTask — an application for managing one’s to-do list or tasks to be completed. In short, it allows a user to create, edit, and delete tasks from their task list. There’s one more capability that the user has. The user can complete a task and cross it off their list. There is a second list that will show all of the tasks the user slashed and completed as well. Hence, that’s why my application is called “SlashTask”!</p><p>To give an overview, these are the steps I took to build the application:</p><ul><li>Use the <strong>create-react-app</strong> generator to set up my development environment to use the latest JavaScript features and optimize the application for production.</li><li>Use rails to generate my back-end</li><li>Use Redux for my state management</li></ul><p>I’ll walk you through with snippets of my code for the task components, actions, and reducers. Let’s start with creating a task. Below are snippets of my task creation form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*q7OI4pDbXQvUjHfo3GRk-Q.png" /><figcaption>Form in which the user fills out to create a new task</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*-ZJG7qcF_96Bzws3-TxGjg.png" /><figcaption>Functions for task creation</figcaption></figure><p>The user fill out the new task form and submits the data from the front-end to the back-end Rails API. This is done through the use of asynchronous actions. When a user hits the ‘Create Task’ button, an action is dispatched. Actions allow us to interact with the store provided by Redux and update it via reducers. What are reducers? They are pure functions that take an current state and an action to return a new state based on the actions dispatched to the store. Here are snippets of my actions and reducers for task creation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KQ8yyPvcmW35avEoUoAw4A.png" /><figcaption>Task actions</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*3MsHiXyhi8OecpdwDRuKDA.png" /><figcaption>Task reducer</figcaption></figure><p>Normally Redux actions do not support asynchronous actions, but with the use of Redux Thunk it can! Thunk allows us to return functions instead of objects in our actions: for example, a fetch request which is asynchronous.</p><p>Now that we can create some tasks we also need to show the tasks on the front end to the user. What good is a task list if the user can’t see which tasks remain to slash off right? The same process in general takes place: (1) dispatch an action to retrieve all of the tasks in our back-end Rails API (see the above action and reducer snippets) and then (2) map them into our TaskList component to present them for view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2dI3uYO1T_CGqzf3MZaI7w.png" /><figcaption>Function to map over tasks for view</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*mkhcchQU4cSHrU52iOSD_g.png" /><figcaption>Mapping state to props and connecting the component to the store</figcaption></figure><p>In our TaskList component (which contains the mappedTasks function above), we return ‘this.props.tasks’ even though TaskList does not have a local state of a tasks array. How did we get tasks? We were able to access tasks via ‘mapStateToProps’ which does exactly what it sounds like it does. As for ‘connect’, it maps the store state and dispatch to the component.</p><p>Finally, the end result for the user to see looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VLn_euDMD1n8XCRw5fxjEA.png" /><figcaption>TaskList — user’s point of view</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eWnBxzRM4SwbYH3uLQxB4A.png" /><figcaption>Slashed TaskList — user’s point of view</figcaption></figure><p>All in all this was a fun application to make. As you can see in the last two screenshots I have added a search bar as well. It filters the lists immediately based on match task titles, descriptions, and dates. Some things I will likely work on adding later on is user login and user authentication. This will be a whole topic of its own~ Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ae3b5243949" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Node.js — What, Why and How]]></title>
            <link>https://medium.com/@jyeung.se/node-js-what-why-and-how-81b9fb00c6ac?source=rss-5d28226a3cdb------2</link>
            <guid isPermaLink="false">https://medium.com/p/81b9fb00c6ac</guid>
            <category><![CDATA[non-blocking-io]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[asynchronous]]></category>
            <dc:creator><![CDATA[Jack Yeung]]></dc:creator>
            <pubDate>Wed, 05 Sep 2018 06:24:40 GMT</pubDate>
            <atom:updated>2018-09-05T17:02:27.787Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Node.js?</h3><p>From the original <a href="https://nodejs.org/en/">source</a>, Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. To provide clarity, V8 is Google’s open source high-performance JavaScript engine that is used in Google Chrome and Node.js. Node is an asynchronous event driven JavaScript runtime that was created by design to develop scalable network applications. It is a program that enables us to apply javascript outside of the browser.</p><p>Node.js runs a single-threaded event loop registered with the system. It in turn handles connections, in which each new connection triggers a JavaScript callback function to execute. Node’s use of callback functions to scale leads to efficient memory-use in handling more connections than other architectures that scale with threads such as Ruby on Rails.</p><h3>Blocking I/O vs. Non-Blocking I/O</h3><p>I/O — stand for input/output. An example would be when we make an HTTP request to an API. When it comes to I/O, there are two types — blocking I/O and non-blocking I/O.</p><p>In blocking, tasks or functions “block” execution of tasks other than the current one taking place until it is completed; operations are carried out one at a time. In a synchronous blocking example, while reading a file, all other tasks are halted and cannot be executed in parallel during this time. In the below code example, <em>localStorage</em> is an operation that is blocking <em>alert(2)</em> from executing until its own completion.</p><p>In non-blocking, tasks and functions can execute parallel to one another at the same time. Using Asynchronous servers made in Node as an example, the servers leverage a single thread to service all requests. The advantage of non-blocking asynchronous operations is that it enables the potential to maximize a single CPU along with improving memory-use efficiency. In the same code example below, <em>alert(3)</em> completed before the fetch.</p><pre>// Blocking: 1,... 2<br>alert(1);<br>var value = localStorage.getItem(&#39;foo&#39;);<br>alert(2);<br><br>// Non-blocking: 1, 3,... 2<br>alert(1);<br>fetch(&#39;example.com&#39;).then(() =&gt; alert(2));<br>alert(3);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*oU7O3Y0Km5sKMoegTAlQeg.jpeg" /><figcaption>Sourced from flicker</figcaption></figure><p>Blocking methods execute synchronously, while non-blocking methods execute asynchronously.</p><h3>Node Command</h3><p>Installation of Node.js on a system provides access to a program called Node — it is used to execute JavaScript files.</p><p>Let’s say we have a file, <strong>greetings.js</strong>, with the code content of:</p><pre>let message = &quot;Hi there adventurers&quot;;<br>console.log(message);</pre><p>We can run Node from the command line with the following code to execute our program:</p><pre>$ node greetings.js<br>Hi there adventurers</pre><p>Notice that executing the JavaScript file logs the values in our terminal rather than on a browser’s JavaScript console. In Node, the text will be outputted on the process’s standard output stream.</p><p>Similar to Ruby’s interactive Ruby (IRB), if you run <em>node</em> without providing a file, the terminal enters a session where you can type JavaScript code and receive instant results.</p><pre>$ node<br>&gt; 150 * 100<br>15000<br>&gt;[&quot;Node&quot;, &quot;Node!&quot;, &quot;Node!!&quot;, &quot;Node!!!&quot;].map((x) =&gt; x.toUpperCase())<br>[&quot;NODE&quot;, &quot;NODE!&quot;, &quot;NODE!!&quot;, &quot;NODE!!!&quot;]</pre><h3>Node Modules</h3><p>Upon installing Node on your computer, you gain access to the npm command. NPM’s main use is fetch, download, and install packages on the computer via npm install.</p><p><strong>File System Module</strong></p><p>A built-in module that is very often used in Node is the <em>fs</em> (file system) module. It exports functions for working with files and directories.</p><p>The blow example shows how the <em>readFile</em> function reads the file and follows with a callback to retrieve the file contents.</p><pre>let {readFile} = require(&quot;fs&quot;);<br>readFile(&quot;file.txt&quot;, &quot;utf8&quot;, (error, text) =&gt; {<br>  if (error) throw error;<br>  console.log(&quot;The file contains the following: &quot;, text);<br>});</pre><p><strong>HTTP Module</strong></p><p>Another commonly used module is the <em>http</em> module. This module provides functionality for running HTTP servers and making HTTP requests.</p><p>The following code displays how to start an HTTP server:</p><pre>const {createServer} = require(&quot;http&quot;);<br>let server = createServer((request, response) =&gt; {<br>  response.writeHead(200, {&quot;Content-Type&quot;: &quot;text/html&quot;});<br>  response.write(`<br>    &lt;h1&gt;Why hello there!!!&lt;/h1&gt;<br>    &lt;p&gt;You inquired about &lt;code&gt;${request.url}&lt;/code&gt;&lt;/p&gt;`);<br>  response.end();<br>});<br>server.listen(8000);<br>console.log(&quot;Listening! (port 8000)&quot;);</pre><h3>Wrap Up</h3><p>Node.js uses an event-driven non-blocking I/O model that makes it lightweight and efficient. It is a great system that allows us to run JavaScript in a non-browser context.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81b9fb00c6ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dashboards— Tips and Best Practices]]></title>
            <link>https://medium.com/@jyeung.se/dashboard-s-tips-and-best-practices-15548e3e2372?source=rss-5d28226a3cdb------2</link>
            <guid isPermaLink="false">https://medium.com/p/15548e3e2372</guid>
            <category><![CDATA[metrics]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[dashboard]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Jack Yeung]]></dc:creator>
            <pubDate>Thu, 09 Aug 2018 06:58:03 GMT</pubDate>
            <atom:updated>2018-08-09T06:58:20.395Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>Dashboards</em></strong></h3><p>First and foremost, what is a dashboard? Some would say it’s a just screen that summarizes key data points and visualizes it for the user. Well… they’re not wrong; however, behind the scenes and under the hood, dashboards can be quite complex. A lot of thought and planning goes into deciding what data to include and how to display that data. There are multiple variations of dashboards and each of them are customized to better serve its users’ purposes. For example, the following are two different dashboards:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KbkiqqLurXXxpJRYsYVSNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dSShEGLzxmlCQ4nJVbv2bg.png" /></figure><p>Both dashboards display metric trends over time, but one emphasizes graph trends and the other more numeric centric.</p><h3>Under the Hood</h3><p>I mentioned that dashboards can be both visually stimulating and simple-looking to the naked eye, but they are actually strategically constructed and displayed. Let’s think for a moment — why do people use dashboards and what purpose do they serve? Generally, dashboards are used to quickly view and relay updates. Every single metric and visual on a dashboard is there for a good reason. A dashboard has limited space and the user must select what is most important to receive updates on. Therefore, if we are to build a dashboard that maximizes efficiency and clarity we need to plan for what key analytics to track over others. Nowadays, dashboards update with a constant stream of data in real-time!</p><p>To put this in perspective, imagine you are the director of sales at a high-end boutique company. You have a dashboard open on one of your two monitors at your desk and notice a steep decline in sales in the past 72 hours in a specific department. With a real-time dashboard, you would be able to see these updates immediately and take strategic action compared to waiting until month-end close to perform post-mortem analyses.</p><h3>Tips and Guidelines</h3><ol><li><strong><em>Visibility, Readability, and Intuitiveness</em></strong></li></ol><p>A real-time dashboard should at all times keep the user up-to-date with what is happening to their company, product, service, etc. Based on what the user has predetermined as key metrics, the dashboard should be designed in a way in which information can be retrieved and act upon if required. It should be logical in flow and provide good ease of use.</p><p>2. <strong><em>Control and Manipulation</em></strong></p><p>A good dashboard should be adaptive. The user should be able to manipulate what key metrics are displayed and in what form. Depending on what data or metric is being displayed, the dashboard should allow for different representations. There are multiple instances where users have found new key metrics to track correlating to their company, product, or service’s performance and need to add them to their dashboard. A static dashboard is not a good functional dashboard!</p><p>3. <strong><em>Consistency and Framework</em></strong></p><p>For a dashboard to be consistent across the board, a good framework helps. By having consistent metrics and labels across each piece of the dashboard, the display becomes more intuitive and easy to read. Additionally, each tool or metric-tracker on the dashboard will enable the user to draw quicker conclusions and draft a plan of action.</p><p>4. <strong><em>Spacing and Interactiveness</em></strong></p><p>While a dashboard should enable a user to quickly grasp the overall status and any updates to what he/she is tracking, it should not be overflowed with pure data. Spacing out the tools and metrics will allow the user to focus on only the main important metrics to track and not every single metric that can fit on a single view. In terms of user interaction, the dashboard should not overly emphasize user input in order for the user to retrieve key analytics. Too many features or actions on a dashboard can take away from the purpose of a dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rnFWvequvfaDHLuLh6xyAQ.png" /></figure><h3>Closure</h3><p>The above list of guidelines and tips will assist in creating more efficient and strategic dashboards. Although not at all fully encompassing, following these guidelines will enable the creation of a more functional and efficient dashboard.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15548e3e2372" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[To be Swift or to be Objective (-C)? Which one?]]></title>
            <link>https://medium.com/@jyeung.se/to-be-swift-or-to-be-objective-c-which-one-7453256c5dc0?source=rss-5d28226a3cdb------2</link>
            <guid isPermaLink="false">https://medium.com/p/7453256c5dc0</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[objective-c]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Jack Yeung]]></dc:creator>
            <pubDate>Thu, 19 Jul 2018 06:54:40 GMT</pubDate>
            <atom:updated>2018-07-19T06:55:24.318Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*uZsTuTQO3i-bOmTFJeX-1w.jpeg" /></figure><p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p><h4><strong>~1~</strong> Objective-C</h4><h4>~2~ Swift</h4><h4><strong>~3~</strong> Swift vs. Objective-C</h4><h4>~4~ The Decision</h4><p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p><p>The goal of this blog post is to provide a basic introduction to the programming languages used in development associated with Apple and their OSs. It is <strong>NOT</strong> to provide a deep dive examination and comparison of every single feature and their respective pros/cons between both languages.</p><p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p><p><strong><em>// What is Objective-C ? //</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*wSKHvb-ZJ8o9g2lk9rkQwg.png" /></figure><p>Much of Apple’s OS applications are built with Objective-C. Does that mean Objective-C was created and under proprietary ownership of Apple? The short answer is no. Objective-C was created by Brad Cox and Tom Love in the early 1980s at their company Stepstone. It was then selected as the primary language for development by NeXT for the object-oriented NeXTSTEP OS. NeXT was a computer software company founded by Steve Jobs. Objective-C was selected as the main programming language for Apple OS when Apple acquired NeXT in December 1996.</p><p>Objective-C is a powerful language, but compared to many other programming languages we have today it is less “friendly” to pick up. Objective-C is a general-purpose, object-oriented programming language just like python and ruby but differs in that it adds Smalltalk-style messaging to the C programming language. Unlike Swift, Objective-C is a “strict superset” of C.</p><blockquote>“it is possible to compile any C program with an Objective-C compiler, and to freely include C language code within an Objective-C class” — Wikipedia/Objective-C</blockquote><p><strong><em>// What is Swift ? //</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*jdj-I0EFf43sl_456NVXJQ.jpeg" /></figure><p>Swift is an interactive programming language that is both expressive and “friendly”. It enables one to write software for a wide range of platforms including computer and mobile. It is used to build applications for macOS, iOS, watchOS, and tvOS. The language was released back in 2014 and has jumped in popularity for macOS and iOS development compared to Objective-C in the recent years. Swift is maintained and updated by the Swift core team at Apple along with contributions from the Swift open community. The latest version released is Swift 4 or 4.0 which was released last year back in September 2017.</p><p>As mentioned at the beginning of this blog post I will not be covering every feature in depth; however, I will highlight one feature that swift makes available — Playgrounds. Playgrounds? What does a playground have to do with programming you ask? Well, by playground I mean an application and environment on an iPad in which one is able to experiment with code and have access to the results immediately. The playground allows one to cut out the need to build and run an app before being able to test your code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*bI5haXibFkM1eLkbI9-sEA.jpeg" /><figcaption>Swift Playground — Apple</figcaption></figure><p><strong><em>// Swift vs. Objective-C //</em></strong></p><p>The two programming languages are related to one another. In fact, those who are absolutely new to them may not know that Swift was developed to support much of the core concepts of Objective-C. Some consider Swift as the future to Apple’s OS development and “successor” to Objective-C.</p><p>A well made comparison displaying the differences and pros/cons between Swift and Objective-C was made by Maksym Churylov, CTO of MindK. Below is a small snippet of his clean and well laid out comparison:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*FT4E97CSlA4p0634ZaIjVA.png" /></figure><p>In terms of popularity in the developer community, Swift is much more popular in 2018 and 2017 based on the Stack Overflow developer surveys. On the other hand, Objective-C was voted one of the more dreaded programming languages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c1NWSyx7e4zZ4vh67EL2ZQ.png" /><figcaption>Stack Overflow Developer Survey Results 2018</figcaption></figure><p><strong><em>// Decision //</em></strong></p><p>Which of the two programming languages should I choose for Apple OS app development? The answer is not black and white. If one is new and interested in jumping into iOS development, I recommend to start with Swift. The general consensus is that Swift is currently a “hot” language to work with and at the same time more “beginner friendly” compared to Objective-C. Many people are discouraged by Objective-C because of some of its unusual syntax. Meanwhile, Swift has more common and standard syntax that appeals to a larger developer base.</p><p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p><p>Cue Outro</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7453256c5dc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>