<?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 Cheuk Fung T on Medium]]></title>
        <description><![CDATA[Stories by Cheuk Fung T on Medium]]></description>
        <link>https://medium.com/@cheukfung.t?source=rss-ec6c85b1b8a4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xpVEtJUp_RsHZy78.jpg</url>
            <title>Stories by Cheuk Fung T on Medium</title>
            <link>https://medium.com/@cheukfung.t?source=rss-ec6c85b1b8a4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 08:03:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cheukfung.t/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[Use “Shortcuts” to reduce the time spent on social platforms]]></title>
            <link>https://medium.com/@cheukfung.t/use-shortcuts-to-reduce-the-time-spent-on-social-platforms-c01431abde67?source=rss-ec6c85b1b8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c01431abde67</guid>
            <category><![CDATA[lifehacks]]></category>
            <category><![CDATA[habit-building]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Cheuk Fung T]]></dc:creator>
            <pubDate>Sat, 17 Aug 2024 09:50:25 GMT</pubDate>
            <atom:updated>2025-06-22T16:25:29.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H8mKef5_ru6KrVIP" /><figcaption>Photo by <a href="https://unsplash.com/@schmaendels?utm_source=medium&amp;utm_medium=referral">Andreas Klassen</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Recently just checked out the screen time of using Instagram, found out that I spend way too much time than I expected. However, I need to keep it installed in my phone for some reasons. Tried using the “Screen Limit” time app doesn’t help much since I know the passwords to unlock the limits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3bOmnDMwXiPUiKv-dtWzUw.jpeg" /></figure><p>Figured out I was only wanna have some content to read or see. Therefore I have this idea</p><blockquote>When open Instagram, open other app with good content instead</blockquote><p>Many years ago, I used Notion to collect some good contents(eg. insights of books, links), mainly from my friends, internet, social platforms… Sometimes I’m just too busy to read it instantly hence I write it down first, hoping that I will go back to them one day. Now it’s the time.</p><p>The following implementation steps, simple enough. In order to achieve that, we gonna use a default installed app in iPhone called “Shortcuts”</p><h4>Step 1 : Open “Shortcuts”, add “+” to add a new shortcut</h4><p>After clicking the “+” button, you can change the name for that shortcut. I gonna name it “Your New Action” for demonstration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*EFTeC_uEM3dRTVPKtZbU8w.png" /></figure><h4>Step 2: Think of the target actions that you wanna do after Instagram is opened</h4><p>To me, I want to study those contents I collected long ago. Therefore I will open the app Notion. By doing this, you need to click “Add Action”. Search ing for “Open App” and also “Go to Home screen”.</p><p>Setting going to home screen is because Apple doesn’t allow app to have right to quit other app on iPhone(but strangely this allowed on Mac side). Otherwise I will quit the Instagram app instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jGz1so6CKk-PMHEvS9yV2A.jpeg" /></figure><p>After adding the related actions, you will see this screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Li9LqVm-LPxogqu9rxi4w.jpeg" /></figure><h4>Step 3: Set the automation</h4><p>You may wonder how can to trigger the scripts. This can actually be achieved by the second tab on “Shortcuts” which is “Automations”. Same as before, you can add a new automation by the following procedures. You can take reference from the below capture screens</p><ol><li>Clicking the “+” button.</li><li>Choose “Create Personal Automation”</li><li>Select “App”</li><li>When Instagram is opened, run “shortcuts”</li><li>Choose and run the shortcuts that we created previously</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MIMIcwzbWPJqE1yqcEFIUQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h9yIGAcdzNyAP3leF1GpYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MuNA11n7wMtHO27qt_t_Eg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TT2ErOGZiXNb1iN5D-fnbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4-vuFu2eMChhjlLSPZSXcA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WBddD6E5DRkvHKCya_TY_w.jpeg" /></figure><h4>Step 4: Enable the automation(or disable the automation in the future)</h4><p>We can just click the enable or disable button to do so. Personally I like to uncheck the box for “Ask before running” so I can get a seamless UX.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*95snshzwef7Rw9yPJZ0grw.jpeg" /></figure><h4>Bonus section!!</h4><p>From “Shortcuts”, you can even show a notification after opening “Notion”(in my case), I choose the following quote which I saw somewhere on Instagram.</p><blockquote>You don’t lack the time. You just lack focus</blockquote><h4>Conclusion</h4><p>That’s it. So far I have tried it for few days and it works well. Hope that you find it useful as well. If there are any questions or if you know any possible ways to quit the app. Feel free to drop me a comment or find me on <a href="https://www.instagram.com/cheukfung.t/">Instagram</a>/<a href="https://www.threads.com/@cheukfung.t">Threads</a> (@cheukfung.t) !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c01431abde67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[NodeJS] Express source code explanation]]></title>
            <link>https://medium.com/analytics-vidhya/nodejs-express-source-code-explanation-c1770ac9c989?source=rss-ec6c85b1b8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1770ac9c989</guid>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Cheuk Fung T]]></dc:creator>
            <pubDate>Mon, 15 Jun 2020 04:28:39 GMT</pubDate>
            <atom:updated>2025-06-22T16:23:16.484Z</atom:updated>
            <content:encoded><![CDATA[<h3>[NodeJS] Express source code — Router, Route, Layer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w2wU2GfWQ5GTLy25" /><figcaption>Photo by <a href="https://unsplash.com/@intothefab?utm_source=medium&amp;utm_medium=referral">Fabio Comparelli</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I wanna write an article talking about some libraries that I use very often and try to figure out how it work is. To see how well you understand it, I think it can be judged by are you able to explain concepts in your words. This skill worth spending time to practice. Therefore, this article is a kind of practice. Let’s get start.</p><h3>Article Content</h3><ol><li>What does Express do?</li><li>Understand the file structure of Express</li><li>Go Through with an example</li></ol><h3>What does Express do?</h3><p>‘Express’ allows you to build a server for receiving requests and sending responses. Also, another essential function is to allow executing specific functions if a certain endpoint is being visited(eg. when the URL is <a href="https://mywebsite/get/userInfo">https://mywebsite/get/userInfo</a>, save the IP address to log files…etc).</p><h3>File Structure of Express</h3><p>The below image shows the relationship between each file. The arrow side is the dependencies that the file needs to run. For example, router/index.js needs router/router.js and router/layer.js to run. Don’t be scared by such image, we won’t go through all of them, just the essential parts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zMgNsU2O7XICH6dl9JLi0g.png" /><figcaption>Go to node_modules &gt; express &gt; lib to see the source code after install</figcaption></figure><ul><li>index.js : the entry point of the module</li><li>express.js: grouping different parts of the application into one object</li><li>application.js: app level properties and methods</li><li>router.js: router level properties and methods</li><li>route.js and layer.js: essential files for completing functionality for router</li></ul><h3>Go Through</h3><p>I will take reference from the sample code which is on the official website and name the file testing.js</p><pre>//testing.js<br>const express = require(&#39;express&#39;);<br>const app = express();<br>const PORT = 8000</pre><pre>app.get(&#39;/&#39;, (req, res) =&gt; {<br>    res.send(&#39;Hello World!&#39;)<br>})</pre><pre>app.listen(PORT, () =&gt; console.log(`Listening at <a href="http://localhost:${PORT}`">http://localhost:${PORT}`</a>))</pre><h4>Step 1: Get the instance of express</h4><p>From the code, the first step is to require(&#39;express&#39;)and assigning it to a variable. This allows you to get the module.exports object from the related file. In this case, it is actually getting the function createApplication from lib/express.js because that function has been assigned to module.exports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zPkEAEoVCUkD1o3IQHIfSQ.png" /><figcaption>lib/express.js</figcaption></figure><h4>Step 2: Use the ‘app’ object</h4><p>You can execute the function in our testing.js using express(). After procedures in createApplication function, an app object will be returned. It included the methods we need while using Express JS.(eg. app.use… etc). To start using what app bring us, we can move to the next step.</p><h4>Step 3: Make a new route</h4><p>Let’s move to the app.get(&#39;/&#39;, ...) . This makes a new route for the express application. Showing that if endpoint&#39;/&#39; get hit, run the latter function. Actual usage can be if arrived on specific pages, send requests to the backend to get the data. You can see there are 2 parameters. One is the ‘path’. One is the function called ‘handler’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jz6Hmi9KgG6-uiJ07O5unw.png" /><figcaption>app.get function declaration</figcaption></figure><p>The words in green and the &lt;&gt; sign can be ignored if you are not so familiar with generic. However, some interesting point can be noticed is that there are ... in handlers. It means more than 1 handler can be passed in the function. This involves the middleware concept which we will cover later.</p><h4>Step 4: Build up the server</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u47FpFt44pg281OgS-4OLQ.png" /></figure><p>From the last line of demonstration code, there is app.listen . This is the step in which the server has been built as this app.listen calls createServer() and monitor if there are any requests by calling server.listen .</p><h3>Relationship between Router, Route and Layer</h3><p>You may think there is an app.get function in application.js so that this function can be called. Yes, it is. However, the author used a clever way to avoid declaring a bunch of HTTP verb action functions in application.js. A function methods.forEach(...) has been used. When we use require function, that js file is going to run once. When it comes to methods.forEach() in the runtime, it will set up those bunch of HTTP verb actions function into the app object. Therefore, it can delegate the HTTP verb action function to the router[method] function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rDIyVrnNAlEouzNJEoFx7A.gif" /><figcaption>Using debugger to show the function after app.get</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*LqNJ7ju7ilUDp00bXisT7A.png" /><figcaption>function to handle different HTTP verb action</figcaption></figure><p>A router has been initialised by the function lazyrouter(). One thing worth mentioning is that there is <strong><em>a router</em></strong> <strong><em>stack(actually an array in JS) for saving routes</em></strong>. After that, the route method in the router will be executed and make a new Route and use a Layer to wrap it. Route<strong><em> also has a stack</em></strong> to store the functions that should be called when matching a specific route.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TKqp4lo0xoVAuOBYpkd5Jg.png" /></figure><p>Therefore, The relationship ofRouter, Route andLayer can be shown as follow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aJnKBhN3EP4JrUBAnesNOw.png" /><figcaption>relationship between Layer, Router, Route</figcaption></figure><p>Router stack is inside express application. The bottom one should be app router, maybe other routers on top. In each router, there is a route stack which to store the functions that need to be executed when endpoint gets hit.</p><h3>Conclusion</h3><p>We have covered several things in this article. Here are some key takeaways. May be the topic next time will focus on req and res mechanism. If you have any questions or comments, please comment down below or reach out on <a href="https://www.instagram.com/cheukfung.t/">Instagram</a>/<a href="https://www.threads.com/@cheukfung.t">Threads</a> ! See you.</p><ul><li>The application.js file defines the necessary methods for express application to use.</li><li>methods.forEach() in application.js delegates the HTTP verb actions (eg. get delete…) to the router and further assigning the router’s handler functions to the route.</li><li>Router stack used to store routers. Each of the routers has its own route stack to save functions.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1770ac9c989" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/nodejs-express-source-code-explanation-c1770ac9c989">[NodeJS] Express source code explanation</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Spring] What is bean and why does it matter?]]></title>
            <link>https://medium.com/@cheukfung.t/spring-what-is-bean-and-why-does-it-matter-907d126a3b08?source=rss-ec6c85b1b8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/907d126a3b08</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Cheuk Fung T]]></dc:creator>
            <pubDate>Mon, 30 Mar 2020 04:31:43 GMT</pubDate>
            <atom:updated>2025-06-22T16:21:47.051Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Java Spring] What is bean and why does it matter?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WeUNUuf7c_G1e-CP" /><figcaption>Photo by <a href="https://unsplash.com/@averieclaire?utm_source=medium&amp;utm_medium=referral">averie woodard</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I am learning Java web these days, especially the usage of the Spring framework. From the materials I read, some words appear quite frequently. Wrapping things up may also be a good way for me to be clear about these abstract terms. Clutters of thought about these terms are all around my head. Hence this article will more likely to be <strong>an extended version</strong> of my mind map. Hoping to provide inspirations if you are also on the way learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RaTcvZmisdmUJjZe1XsxiQ.png" /><figcaption>What do I get now</figcaption></figure><h3>Reasons to use Spring</h3><p>Spring has a lot of functions as shown below. However, speaking of code pattern and practicality, the following reasons are those I think most important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*NYbGL4TpK9V3hfUA.png" /><figcaption>Overview of Spring framework, src: <a href="https://bit.ly/3aouip3">https://bit.ly/3aouip3</a></figcaption></figure><h4>1st reason — it <strong><em>helps maintain good code structure</em></strong>.</h4><p>The most important feature of Spring is <strong><em>IoC container</em></strong>. It is all the magic happened. Also, good structure can be achieved is because of it. IoC stands for ‘Inversion of control’. This sounds a fancy word but actually what it is telling is you don’t need to control when to initialise a class, Spring will control for you. This containers hold <strong><em>dependencies </em></strong>and<strong><em> dynamically created for using whenever you need. </em></strong>Let’s see the following example.</p><p>Imagine you have two classes. Let’s call them ‘class A’ &amp; ‘class B’. Class A may need a function from class B. If you need to call that function from class B, you need to initialise by yourself. (may use the new syntax in Java). Well, you can say <strong><em>class A is depending on class B</em></strong> (or class B is a dependency of class A )because class A needs class B to run. However, with the help of IoC container</p><h4>2nd reason — it contains different solutions</h4><p>Let’s first check out the overview of Spring framework. From the above picture you can see that there are a lot of different parts. Actually each of those provided certain functions. Spring itself relied on the core container. On top if you want to add some other features. You can easily integrate them into you application. I am also exploring the usage of Mybatis. This framework can seamlessly integrate into Spring which make your life easier if you need to connect to database for operations.</p><h3>Bean and IoC container</h3><p>From the above paragraphs, I have briefly mentioned IoC container is of utmost importance in Spring framework. Below is further information about it. I hope you still remember the functions of the IoC container is to hold different dependencies and help to initialise those dependencies when needed. We have a special name for those dependencies, which is <strong><em>‘bean’</em></strong>. It refers to those ‘reusable components’. Speaking of IoC, you heard of a word called <strong><em>dependencies injection</em></strong>(DI). In Spring, DI is the actual way you implement inversion of control. The container can ‘inject’ those beans to the right place at the right time.</p><blockquote><em>🗣</em> Bean is the reusable components. IoC container manages beans</blockquote><h3>How to configure beans</h3><p>When we say configure beans, we mean to <strong><em>indicate the relationships </em></strong>of different beans. There are two ways to configure beans. You can either use an XML file or annotation.</p><p>From my perspective, it is easier to see the overview of all beans using the XML configuration method. Annotation is simpler to write. In a real-life situation, choosing either one or use them together is fine. It all depends on your needs.</p><h3>Time to have an example</h3><p>For the sake of explaining, imagine we needed to manage a company. It is better to understand the basic mechanism first before you start, no matter what you learn. Therefore, the following code will be using XML file for configuration. After understanding it, learning annotation will be easier. Steps to use beans are as followed.</p><h4>Step 1 — Make the necessary classes</h4><p>As mentioned above, some classes are built. We will have theCompany and the SmallPotato class. Beans will be retrieved in theCompany class. These classes should be in the main src folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*7zQ-kTBivruuvOXNAK7niw.png" /><figcaption>folder structure should be like this</figcaption></figure><p>If you want to inject value from the IoC container as well, after you have configured in the XML file, please make sure you have also provided the setter method in the related classes. Otherwise, you cannot get the value.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/330cfe6d9f3e329d1381eedf21bdb8fd/href">https://medium.com/media/330cfe6d9f3e329d1381eedf21bdb8fd/href</a></iframe><p>So far there is nothing in the Company class but afterward we will take out beans for usage here.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aab0d19c0bb22b535bc81e713b5b84c0/href">https://medium.com/media/aab0d19c0bb22b535bc81e713b5b84c0/href</a></iframe><h4>Step 2 — Configure the xml file</h4><p>We need to have a XML file so that Spring will know where and when to inject the beans for us. An XML file should locate in the resource folder. A piece of script is needed. They are the basis of the configuration. On top, you can add how you want your beans to be grouped and what property they need to have. You can find the basic script on Spring official <a href="https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#spring-core">website</a> (by searching &lt;beans xmlns= after you have entered the page)</p><p>The tags I used frequently so far are:</p><p>1.&lt;bean&gt; : state out which class need to be the bean</p><p>2.&lt;property&gt; : inject what value to the related class</p><p>For &lt;bean&gt;, below 2 properties are must-have.</p><ul><li>id/name: identifier of that specific bean</li><li>class: location of the related class and Spring can help create it afterward</li></ul><p>Some additional properties for &lt;bean&gt;:</p><ul><li>init-method: when initialise the bean, run a specific method by typing that method name.</li><li>destory-method: similar to ‘init-method’, but referring to bean being destroyed</li><li>lazy-init: when to initialise the bean.<br>true: when IoC container starts <br>false: when the bean is called first-time</li><li>scope: the life cycle of the bean(I decided to put it later)</li></ul><p>As for &lt;property&gt; tag, it has some properties too.</p><ul><li>name: match with the setter method in the related class. If the param is called ‘age’, this field should call ‘age’ as well</li><li>value: the primitive value you want to pass in</li><li>ref : putting other bean’s id allows you to inject the suitable dependency.</li></ul><h4>Step 3 — Get the bean back in the needed class</h4><p>To get the bean back after configuring beanConfig.xml file. We can utilise the ApplicationContext constructor so that the container can load the configuration metadata and creating needed classes in runtime for usage.</p><p>In our XML setting, we let Spring handle our class SmallPotato. Notice we haven’t directly initialise it in the class. Instead, we get it back from the IoC container.</p><p>After running, the result should be like this. It should print out value you set from IoC container.</p><h3>Conclusion</h3><p>In this article, several things have been mentioned. Here is the recap. If you have some questions, you can comment down below or find me on <a href="https://www.instagram.com/cheukfung.t/">Instagram</a>/<a href="https://www.threads.com/@cheukfung.t">Threads</a> (@cheukfung.t) . Happy Coding.</p><blockquote>.Why do we use Spring</blockquote><blockquote>.The relationship between dependency, IoC container, dependency injection</blockquote><blockquote>.The procedure of using IoC container for getting bean.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=907d126a3b08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From zero to become a web developer in 6 months from a non-tech background]]></title>
            <link>https://medium.com/@cheukfung.t/from-zero-to-become-a-web-developer-in-6-months-from-a-non-tech-background-5014d74eabb4?source=rss-ec6c85b1b8a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5014d74eabb4</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Cheuk Fung T]]></dc:creator>
            <pubDate>Fri, 28 Feb 2020 11:27:29 GMT</pubDate>
            <atom:updated>2025-06-22T16:18:56.888Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*77oK8ksWi2yKMQa9" /><figcaption>Photo by <a href="https://unsplash.com/@cgower?utm_source=medium&amp;utm_medium=referral">Christopher Gower</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>After being a web-developer for 3 months, it still sounds unreal that I can finally be in the information technology field.</blockquote><p>Recently I always think of the time when I first started to learn coding 7 months ago. What did I learn in these few months? Is there anything that worth sharing? This article hence appears. Hopefully, it can give you some reference to get past the barriers. No matter you want to <strong><em>switch career paths </em></strong>from a non-tech background or <strong><em>being a self-learner</em></strong> of coding. Watch out, this will be a long article. If you have some questions, you can comment down below or find me on <a href="https://www.instagram.com/cheukfung.t/">Instagram</a>/<a href="https://www.threads.com/@cheukfung.t">Thread</a>(@cheukfung.t).</p><p>Before starting to write the first line of code, think about why do you want to be a coder. What drives you is very important because you may need to debug for a whole day but still not getting a fruitful outcome. It is frustrating sometimes. When you feel exhausted, your ‘why’ can always positively help.</p><p>In short, my interest and the possibility of coding drive me to learn. IT-related stuff is everywhere nowadays, websites, smartphone apps, softwares…etc. Coding can be utilised to build plenty of stuff. Also, it helps to shape your mind to be more logical. Personally speaking, websites seem more interesting which I can handle UI and data at the same time. Therefore, I just dived in to take part in a bootcamp course. Some people think bootcamp is all the cure. In my perspective, if you don’t put much effort after lectures, especially when you are starting from zero, bootcamp doesn’t help a lot. What matters most is you should try to build up a <strong><em>standard operating procedure when handling new learning material.</em></strong></p><p>After these few months of studying, I figure out some ways to deal with new materials:</p><blockquote>1. Visualising those concepts may be a good way for understanding(eg. mind map…)</blockquote><blockquote>2. Study different format materials which talks about the same topics. You will soon find out which format is better for you.</blockquote><blockquote>3. Form a study group (in my case, a bootcamp course) that would like to achieve similar goals. Communication is important, especially when you are feeling frustrated</blockquote><h3>Preparations in advance</h3><ul><li>Background knowledge</li><li>Integrated Developer Environment(IDE)</li><li>Practise platform</li><li>Coder ‘s wikipedia</li></ul><p>For background knowledge, an online course called ‘<a href="https://www.edx.org/course/cs50s-introduction-to-computer-science"><strong>CS50’s Introduction to Computer Science</strong></a><strong>’</strong> held by Harvard is a good choice. Actually, CS50 is an online series of courses focus on different aspects of computer science. Some of the concepts are difficult and abstract. You may also have no ideas on how to do the after-class exercises. <strong><em>It’s okay to not understand those things.</em></strong> You just need to get yourself familiar with these concepts. Don’t get so frustrated. Spending more time on them will be fine.</p><p>IDE simply means an environment for you to code. You can say it is an enhanced notepad for coders which have different kinds of featured inside of it. It can either be online or locally installed. For the online version, <a href="https://codepen.io/">Codepen</a> is my first choice. It can show the result of your code quickly because it provides a panel besides. This is good for learning HTML and CSS since it gives you a fast response for the changes. For locally installed IDE , I have chosen <a href="https://code.visualstudio.com/docs/introvideos/basics">Visual Studio Code </a>since it has a lot of plugins(and quite fast, I think). There are other IDEs like Atom, Sublime Text. It’s all up to you.</p><p>For VS code plugin, below is what I have installed which may be useful:</p><ul><li>Beautify — Sometimes when you are messing up with the format. This can definitely help</li><li>Code Spell Checker — As its name suggests, help you to find misspelling words</li><li>Git history — Check files changes if you use git as versioning control</li><li>HTML Snippets — Cheat sheet of HTML syntax</li><li>Path intellisense — provide path name when you don’t exactly remember what the path is</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QA0v_czd3pJKRStniyZFFw.png" /><figcaption>How to download plugins in VS code</figcaption></figure><p><a href="https://www.freecodecamp.org/">freeCodeCamp</a> is an awesome practice platform if you want to learn by doing. It contains a wide variety of exercises. Each task will teach you a concept so that you can take the baby-step each time, but not building a rocket in the first place.</p><p>On the way of self-learning, when you don’t how to fix a bug, ‘<a href="https://stackoverflow.com/">Stack Overflow</a>’ comes to your rescue. On the platform, you are able to find a lot of experienced programmer who are willing to land you a helping hand. Remember, you should clearly explain your problem and better state out which method you have already tried. This can help them to solve your question. This is also one of the most precious thing I learned when I start to learn to code. <strong><em>Be precise</em></strong>. Below is the flow I used very often.</p><blockquote>Steps:</blockquote><blockquote>1. What is the expected result?</blockquote><blockquote>2. What methods have you tried?</blockquote><blockquote>3. What is the actual result of methods you tried?</blockquote><blockquote>4. Posting source code in a code block instead of posting photos</blockquote><h3>Journey starts from frontend: HTML, CSS, Javascript</h3><p>After the setup is done. Time to learn some real stuff. Three important parts in the <strong><em>frontend</em></strong> are HTML, CSS, Javascript. You can say frontend is <strong><em>what user can see and what they can access to</em></strong>. For example, users click on buttons and website responds. To draw an analogy, HTML is just like our limbs. It is the skeleton of the whole website. CSS is the skin to make your website prettier. Javascript acts as the brain to do some logical stuff, to show some text while a button has been clicked for example.</p><p>Besides freeCodeCamp, another good platform is called <a href="https://developer.mozilla.org/en-US/docs/Web/Tutorials"><strong><em>MDN</em></strong></a>. You can find HTML, CSS, Javascript <em>tutorials</em>. Those tutorials have been divided into 3 levels. Users can always read them based on their learning progress. Another reason for recommending this site is you can <em>check out the syntax usage</em> on MDN too. When I am at work, I always have this page open so that I can quickly check the syntax. HTML, CSS, Javascript are of utmost importance and below I have highlighted some key concepts and materials. Feel free to dig deeper.</p><h4><strong>HTML</strong></h4><p>Concepts are relatively easy since it is just a markup language, but not a programming language. You can imagine writing a language for browser to read and rendering the content.</p><p>Material:</p><ul><li><a href="https://www.w3schools.com/html/html_intro.asp">W3Schools</a> — Similar to MDN, you can check and learn the syntax of HTML, CSS, Javascript here. Also, you can code in this website</li><li><a href="https://www.codecademy.com/learn/learn-html">CodeAcademy</a> — Another practice website just like freeCodeCamp</li></ul><p>Concepts:</p><ul><li>An HTML document consists of a <em>&lt;html&gt;</em> tag which is called the ‘<em>root element’</em>. Inside root element, there is <em>&lt;head&gt;</em> and <em>&lt;body&gt;</em> tags</li><li><em>&lt;head&gt;</em> includes information that the search engine needs while <em>&lt;body&gt; </em>include<em> </em>all<em> </em>the<em> </em>content that users see.</li><li>In &lt;body&gt; , there are many other tags just like &lt;h1&gt;,&lt;div&gt;, &lt;input&gt;, &lt;img&gt;,&lt;a&gt; which has their own usage.</li><li>Block element &amp; inline element</li><li>DOM tree</li><li>Attributes in HTML tags specify the property for that tag (eg. &lt;input type=“password” class=“can be customised” id=“can be customised”&gt;)</li><li>Attribute class and id are mainly for CSS or JS which used for locating the specific DOM elements to change its appearance or content</li><li>How to link up other CSS and Javascript file</li></ul><h4>Cascading Style Sheet(CSS)</h4><p>As its name suggests, all the styles will be added on to an element so that modifying element ‘s appearance become possible. Animation is supported using CSS. Otherwise, the website will be boring with just plain text. You can select different DOM elements by their class name and id name. As above, here is some essential concepts</p><p>Materials:</p><ul><li>Display flex <a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/">tutorial</a>: This is a good website to explain what ‘flex’ is with pictures.</li><li><a href="http://flexboxfroggy.com/">Froggy Game</a> — Recommend play this game twice. The first time to get yourself familiar with the flex properties. The second time you can play it without checking the syntax usage.</li><li>Responsive website step by step <a href="https://www.youtube.com/watch?v=9cKsq14Kfsw">tutorial</a> — A good video to walk you through the procedures of making a website using bootstrap</li><li>Chrome plugin for frontend developer to debug: <a href="https://chrome.google.com/webstore/detail/web-developer/bfbameneiokkgbdmiekhjnmfkcnldhhm">Web developer</a> ,<a href="https://chrome.google.com/webstore/detail/visbug/cdockenadnadldjbbgcallicgledbeoc">VisBug</a></li></ul><p>Concepts:</p><ul><li>Selector rules : choosing specific element in DOM tree and modifying their appearance.</li><li>Content box model theory</li><li>Usual style property usage, like font-size, color, background, margin…</li><li>The difference between ‘display: block/inline-block/flex’</li><li>The difference between ‘position: auto/fixed/relative/absolute’</li><li>The usage of media query(especially for responsive design)</li><li>Relative and absolute unit (eg. px, %, em…)</li><li>Bootstrap : a CSS framework to handle responsive layout easier</li><li>LESS, SCSS, SASS(optional) : languages based on CSS to help you write cleaner CSS code. You can check this out while you have more knowledge on CSS</li></ul><h4><strong><em>Javascript</em></strong></h4><p>Now, we have just learned what HTML and CSS are capable of but all those DOM elements are static. But with Javascript, you can control those elements <strong><em>dynamically</em></strong>. Furthermore, you can do more complicated things, like getting data from other websites or databases. Except using in frontend to control DOM element, javascript can also be a backend language. There are plenty of books and online materials you can study. As usual, key takeaways are as below.</p><p>Material:</p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript">MDN learning tutorials</a> — As usual, it walks you through all the basic JS concepts</li><li><a href="https://javascript.info/">The Modern JavaScript Tutorial</a> — This is an awesome website which cover both basic and advance knowledge. Highly recommend !</li><li><a href="http://eloquentjavascript.net/">“Eloquent JavaScript</a>” -&gt; well-known book with clear examples</li><li>“Javascript: The Definitive Guide” from O’Reilly — <em>Don’t start reading from page 1</em> since it has more than 1,000 pages. Instead, read those chapters you are interested in.</li><li>“You don’t know JavaScript” — talks about more complicated concepts in a way easy to understand. Go for it when you want to know deeper about specific concepts.</li></ul><p>Concepts:</p><ul><li>What are variables and assignments?</li><li>Different data types(eg. string, number, boolean, array, object…) and usage.</li><li>The difference between primitive and reference type variables.</li><li>Condition control (if…else…)</li><li>What is function? How does it work?</li><li>Browser DOM API(eg. window.alert, window.prompt, document.querySelector) -&gt; basically mean some functions you can use on a browser environment</li><li>What is the difference between JSON and Javascript object</li><li>The method of declaring classes</li><li>The concepts of event listener(eg. addEventListener)</li><li>How to modify DOM element using JS</li><li>Knowing about Chrome dev tools(press F12). How can you run code there?</li><li>jQuery : a framework based on Javascript, explore it while you have some basic knowledge of Javascript.</li></ul><h3>First milestone — making a personal website</h3><p>After studying above things, you should be able to make a personal website. I remember I used 2 weeks to quickly go through the above concepts. This website takes me 3–4 days. I think the website <strong><em>needs not to be fancy</em></strong> or having a lot of functions. This website is more likely to consolidate the concepts you have learned. How to use bootstrap to make a contact form or for the layout? How to modify the appearance of different DOM elements? How to make a navigation bar? These sort of thing won’t come to mind if you don’t use them frequently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*YnB0LAosGgMSN9HLrUN5Vw.gif" /></figure><blockquote>Knowledge won’t be solid if you are not trying to use it.</blockquote><h3>From frontend to backend — HTTP protocol</h3><p>After having frontend-related concepts and successfully making a personal website, it is good to have some backend knowledge as well. Therefore, I will also mention some of the basic concepts in the backend. When you need to collaborate with backend programmers, it will be easier.</p><p>Have you ever thought of how those shopping platforms can display a lot of data when are browsing some of these sites? Is it done by hard-coding each item one by one? Actually, for handling a lot of data, the database is needed. Before digging deep in what databases are. It’s a good idea to know more about what is behind when you press a URL link in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*VouB-QnPR22hT5Ywc69H-Q.gif" /><figcaption>src: <a href="http://bit.ly/2HZqLRv">http://bit.ly/2HZqLRv</a></figcaption></figure><p>When you press a URL link in the browser, it sends a <strong><em>request</em></strong> to a server. Your request maybe certain ‘resources’(eg. asking for a webpage, images…). After some sorts of operation, server gives <strong><em>response</em></strong> to your request. Server is also a computer but it is different from our ‘computers’ as it only runs backend program. The communication between client(browsers) and server is based on a protocol called ‘HTTP protocol’. Having the basic understanding of the mechanism makes you see the whole picture. But be careful, you may not understand the whole concepts very fast. <strong>Not</strong> to dig too deep for certain concepts is also a lesson I learned during my studies. I found out visualising some abstract concepts makes me easier to understand. Here suggests some video for explaining what HTTP is.</p><p>Materials:</p><ul><li><a href="https://www.youtube.com/watch?v=eesqK59rhGA">Request-Response Cycle</a> — Despite some abstract words are mentioned, at least you know HTTP protocol is stateless, connectionless and able to deliver any sort of data.</li><li><a href="https://www.youtube.com/watch?v=RsQ1tFLwldY">Basic concepts of web applications</a> — Mentioned different kinds of protocol. Also explained what, why and how HTTP can be used.</li><li><a href="http://www.way2testing.com/2018/02/http-request-and-http-response.html">Way2Testing</a> — Explain clearly those concepts of HTTP and database</li></ul><p>Concepts:</p><ul><li>How do client side communicate with server side and transfer data</li><li>The characteristics and usage of HTTP protocol</li><li>Concepts of request and response.</li><li>OSI layer (optional, more likely to be an interview question)</li></ul><h3><strong>Javascript out of browser environment — Node.js</strong></h3><p>Before Node.js, Javascript can <strong><em>only</em></strong> be run in a browser. This limits the ability of javascript because it can be just a frontend language. Because of Ryan Lienhart Dahl, Javascript is able to be a backend language. When you are still in frontend world, you can still not to use terminal, but once you enter backend, most of the time you have much chances to deal with terminal. Time to spend more time on it.</p><p>Material:</p><ul><li><a href="https://nodesource.com/blog/installing-nodejs-tutorial-mac-os-x/">Installing Node.js Tutorial: macOS</a>— A simple tutorial to teach you how to install</li><li><a href="https://ohmyz.sh/">Oh-my-zsh</a> — For terminal, I am using ‘oh my zsh’ which has prettier theme for you to choose. It just makes coding funnier.</li></ul><p>But Node.js just provides you the environment, as a beginner, how can we make a strong with web application better function? Instead of writing all the functions by ourselves, we can use something called<strong> “packages”</strong>. Packages simply means to reuse someone’s code to quickly integrate specific functions in your application. For a web application, I usually use a package called ‘express’. If you are following the tutorial link above, you can see there is a term called “<strong>npm</strong>”. It is a package manager to help you manage different packages. With Node.js, npm is installed as well. For this part, I will say it’s the foundation so feel free to spend more time here. Take a closer look of below concepts.</p><p>Material:</p><ul><li><a href="https://www.npmjs.cn/getting-started/packages/">NPM official website</a>— This website provides you the difference between package and modules</li><li><a href="https://www.youtube.com/watch?v=TlB_eWDSMt4">Node.js Tutorial for Beginners</a>— a youtube channel I like very much because of Mosh’s clear explanations.</li><li><a href="https://www.youtube.com/watch?v=8aGhZQkoFbQ">Event loop explaination</a> — must watch video talking about event loop. It clears quite a lot of mis-conceptions for me.</li><li><a href="https://www.youtube.com/watch?v=s70-Vsud9Vk">Talking about npm</a> — with a little bit Linux command, hope to help you to understand npm by walking the whole process with you.</li><li><a href="https://guide.freecodecamp.org/javascript/callback-functions/">Freecodecamp tutorial on callback</a> — my favourite practise platform also provides examples to explain callback function.</li><li><a href="https://www.youtube.com/watch?v=F8xANXY0kaU">Synchronous and Asynchronous function</a> — callback, promise and async function are what we called asynchronous function. Check this video out to get a deeper understanding.</li></ul><p>Concepts:</p><ul><li>Difference between running Javscript code in browsers and Node?</li><li>npm (include the usage of package.json, the way of install and remove packages, what does it mean by install globally)</li><li>How to import modules for usage?</li><li>What is the difference of each way?</li><li>Event-loop in Node</li><li>Callback, Promise, async await function (what’s the meaning of these terms, what problems did they solve? how to use it?)</li></ul><h3>Web framework — Express</h3><p>Users seldom directly access the database to get data. Let’s have a revision on what will be next. Browsers(client-side) send a <strong><em>request</em></strong> to a server. The server is connected to the database. After certain operation, the server gets back the result from the database and return <strong><em>response</em></strong> to browsers. Browsers then render and showing it to users. It is we need to build a sever before connecting the server to the database.</p><p>Node itself provides you some core modules which can be used for “making” an HTTP server. However, it <strong><em>doesn’t support</em></strong> other HTTP methods(eg. POST, DELETE). We can use the package ‘express’ instead. It is a web application framework and it is lightweight. It means there is not much to set up before using it. It is also a popular framework. From the perspective of self competitiveness, this is something you should master.</p><p>Materials:</p><ul><li>Node and Express on <a href="https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/Introduction">MDN</a> — Give you an overview by providing some examples.</li><li>Postman for API Testing <a href="https://www.youtube.com/watch?v=t5n07Ybz7yI">tutorial</a> — A great tool for testing endpoint, I use it when I have to test the endpoint of database is returning the JSON I need</li><li><a href="https://www.youtube.com/watch?v=Q-BpqyOT3a8">What Is A RESTful API?</a> — Precise explanations of RESTful API and HTTP related concepts.</li></ul><p>Concepts:</p><ul><li>HTTP methods and the usage</li><li>How does express handle request?</li><li>Included items in request headers and response headers(better to have a look as you may need to write the request header on your own sometimes)</li><li>The concepts of routes.</li><li>RESTful API</li><li>path, query string, param in URL. How to handle them in express(you can use ‘req’ and ‘res’ parameters.)</li><li>When do middlewares take effect, what is the whole process?</li></ul><h3>Database</h3><p>A database is a place for you to store data. There are many choices, just like PostgresSQL, MySQL, MongoDB… I know there is two types of database. Relational and non-relational. So far I have tried to use PostgresSQL and MySQL which are both relational. There is no serious problem while I was picking up how to use them. You can choose the DB which you would like to explore more. In the material section, there will be a tutorial link of how to set up MySQL. Below is a brief introduction that I summarised:</p><blockquote>1.Download and install MySQL from the official website (you should be asked for making a root account. Remember it)</blockquote><blockquote>2.Two ways to access to database, either using terminal or MySQL Workbrench <br>* MySQL Workbrench is a GUI for users to better manage their database</blockquote><blockquote>3.Open terminal and type mysql -u &lt;your username&gt; -p</blockquote><blockquote>4.Enter your username and password in step 1</blockquote><blockquote>5.Having the welcome message means that you have successfully logged in</blockquote><blockquote>6.Create a database using SQL</blockquote><blockquote>7.Input some of the data using SQL</blockquote><blockquote>8.Able to do the testing(eg. you can use select &lt;column_name&gt; from &lt;table_name&gt;, see if there is any outcomes?)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q_HtLxn-yhDVKnum" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Speaking of database, there is a need to mention “<strong><em>SQL</em></strong>”. Basically in database, there are four types of operations which are ‘create’, ‘retrieve’, ‘update’ and ‘delete’(CRUD). SQL is the language to do such things in the database. Using certain keywords, you are able to get what you want. For example, when you go shopping, you may ask the shop assistant for the following question before: ‘How much is this T-shirt?’. Similarly, getting information from the database needs to do such a thing. You may call it a ‘<strong><em>query</em></strong>’. Take the following command as an example, this is an example of retrieve data based on certain rules.</p><p>select price from shopping_items where name = “t-shirt”</p><blockquote>1. ‘shopping_items’ is the table name</blockquote><blockquote>2. ‘price’ is the column name.</blockquote><blockquote>3. the quote after ‘where’ is condition</blockquote><p>To summarise the relation between database, table and column. You may think of a database(a.k.a schema) is an excel file. In this excel file, there may be a lot of spreadsheets. These are our tables and there is a kind of relation with the database. Inside those spreadsheets. There are different columns and rows for us to save data. You can have a lot of databases and tables at the same time.</p><p>Material</p><ul><li><a href="https://www.guru99.com/dbms-tutorial.html">DBMS Tutorial</a> — I have read some of the chapters and found it awesome. You can read the whole series of tutorial. I am suer you will understand the whole picture of databases.</li><li><a href="https://www.youtube.com/watch?v=wR0jg0eQsZA">Database Tutorial for Beginners</a> — A video explaining the needs of having database. I remember this youtuber has published a video talking about ERD but I just couldn’t find it right now. Please let me know if you do.</li><li><a href="https://www.lucidchart.com/pages/">Lucidchart</a> — I use this platform to draw the ERD. You don’t have to pay until your ERD exceed certain numbers.</li><li><a href="https://dev.mysql.com/doc/mysql-getting-started/en/">Official website for MySQL</a> — I like reading the official doc first as it should be the most authentic reference</li><li><a href="https://www.mysqltutorial.org/install-mysql/">SQL tutorial </a>— I have found this site when I first learn MySQL, it provided some sample database for you to practice CRUD.</li><li><a href="https://www.youtube.com/watch?v=-TSFLhlGY1k">MySQL Workbrench</a> — a video to show how to install this awesome software.</li><li><a href="https://sqlzoo.net/">SQLZoo.net</a> — Different types of questions to walk you through different concepts. Learning by playing is always funnier.</li></ul><p>Concepts</p><ul><li>What problem can database solve?</li><li>Entity Relationship Digram(ERD) — this is used for expressing the relationship of each table, visualising those relationship makes you easier to design database and shared with your colleagues</li><li>Schemas</li><li>How to achieve CRUD using SQL (select / insert / alter / delete )</li><li>primary key and foreign keys</li><li>different kinds of join tables.</li><li>one-to-one relationship, many-to-one relationship, many-to-many relationship.</li><li>The concepts of transactions(optional, come back when you would to learn deeper.)</li></ul><h3>Using SQL in Node.js — Knex.js</h3><p>This is another package I used for querying databases. Knex allows you to write SQL-liked syntax using Javascript. You can called Knex a <strong><em>query-builder</em></strong> which provide variable checking and separate the SQL queries with your business logic. This query builder can be used in databases including Postgres, MySQL, MariaDB, SQLite3 and Oracle. Another reason for choosing it is because of its <strong><em>compatibility</em></strong>. It can be fully integrated into express so that your application can make queries to databases. Therefore making it a great choice to adapt it my application.</p><p>Materials:</p><ul><li>Knex official <a href="http://knexjs.org/">website </a>—always better to read the doc as there are not many tutorials. I spend quite a lot of time studying the doc learning this package.</li><li><a href="https://www.youtube.com/watch?v=OcchON9sYSE">Intro to CRUD with Knex/Express</a> — This online tutorial shows how Knex can be integrated with express</li><li><a href="https://www.youtube.com/watch?v=4nP6zFEvF_c">KnexJS Tutorial 1</a> — Another video for you to take reference</li></ul><p>Concepts:</p><ul><li>Knex config file setup, what is it used for(eg. which database to connect to, what is the username and the password)</li><li>CRUD operations(creating table, handling queries, adjust columns, insert data…)</li><li>What is a seed file? How to use it?</li><li>ORM concepts(At least know what it is)</li></ul><h3>Second milestone — An online shopping website which have CRUD function</h3><p>I have made a tiny online shopping website with two of my friends after studying above concepts. Even though we didn’t use database at that time as the data is too little. However if you asked me to integrate database now. I am confident to do that. Users can add or delete products in cart, checkout what is in cart. Users can retrieve how many things they buy on the website too. Just focus on how to integrate express framework and try to use database is ok. The mechanism behind is always the most essential things. Below is what I did.</p><p><a href="https://vimeo.com/user80576377/review/393934884/cdef062893">Proj1_demo_medium</a></p><h3>Almost come to the end…</h3><p>Except for things mentioned above, there are a lot of things that you can continue to learn to go further. The interest of being a programmer is there is always something new you can explore, you will never get bored. Below are something which I think essential as well.</p><ul><li>Git — this for versioning control. especially when you need to work with others. Once you have something saved on Git, it is easy for you to trace back a specific version of code.</li><li>Emmet — shortcut function for HTML and CSS.</li><li>SVN — another tool for versioning control which I am using at work.</li><li>Frontend framework — React, Angular, Vue.js. These are the technology for making a single page application(SPA). This provides better user experience as the page won’t refresh even go to another page. It makes the user feel like they just staying on ‘one’ page.</li></ul><h3>Conclusion</h3><p>This is the what I have done in the past few months. I hope to give you some references if you are on your way learning code. Communication is always important when it comes to learning. I am willing to listen to your story if you would love to share. Also, is there anything you want to know? Welcome to leave a comment. Most importantly, if you have found some mistakes in my note, make sure you let me know and I will appreciate it very much! Hope to see you next time and good luck with your study.</p><p>Last but not least, if you have questions or wanna chat, feel free to reach out to my <a href="https://www.instagram.com/cheukfung.t/">Instagram</a>/<a href="https://www.threads.com/@cheukfung.t">Threads</a> !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5014d74eabb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>