<?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[UKM Heroes - Medium]]></title>
        <description><![CDATA[A group of college students who are developing a project for UKM Indonesia - Medium]]></description>
        <link>https://medium.com/ukm-heroes?source=rss----9354f0504da2---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>UKM Heroes - Medium</title>
            <link>https://medium.com/ukm-heroes?source=rss----9354f0504da2---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:53:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/ukm-heroes" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cloud Giant]]></title>
            <link>https://medium.com/ukm-heroes/cloud-giant-3253c9d076cc?source=rss----9354f0504da2---4</link>
            <guid isPermaLink="false">https://medium.com/p/3253c9d076cc</guid>
            <dc:creator><![CDATA[Ilman Nafian]]></dc:creator>
            <pubDate>Fri, 06 Dec 2019 02:16:29 GMT</pubDate>
            <atom:updated>2019-12-06T02:42:37.282Z</atom:updated>
            <content:encoded><![CDATA[<h4>A quick look at Amazon Web Service</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3PTrJei3zFAylve2qnUglg.png" /></figure><p>It has been an overwhelming months of us developing a serverless app in AWS. In the beginning, all of us know nothing about this kinds of architecture. We were never formally introduced to this environment or cloud computing in general. For me personally, it has been an awesome experience working with AWS. The knowledge I gathered has opened many possibilities of stuff that I can create. So now, I’ll try giving you all a quick look at AWS environment and maybe some code snippet of implementation.</p><h3>Why AWS</h3><p>AWS was launched in 2006, 2 years earlier than Google Cloud Platform and 4 years earlier than Microsoft Azure. Being the oldest one has a couple of advantages. Community support is strong with AWS, being the biggest provider over all of the other and also the oldest means that you can find support to your needs easily. Communities are already built and maintained.</p><p>Among all of the cloud provider available, AWS has the most services of them all. In total, AWS has 175 services, from computing power, storage, and database to new-gen technology like machine learning, VR, and IoT. Availability also is a strong point of AWS, there are 69 availability zones across 22 region. 13 more zones are also being planned and one of them will be in Jakarta.</p><h3>Let’s dive in</h3><p>In order to use AWS services you need to register an account. Note that in order to finish the registration, you will need to include your credit card information.</p><h4>Console</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OZ6FFCP5SQFO2Le-0pfiGQ.png" /></figure><p>Dashboard for all of your services. Here you can easily access all the services available and also the recently visited one. You can also quickly search services you are trying to access. There are extra resources on the side also.</p><h4>IAM</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LsjB7UrP-yaqurhlMRbdKA.png" /></figure><p>Stands for Identity Access Management, IAM is a service that allow you to manage a user or a service access to AWS resources. Personally, I think IAM is the first thing to learn before developing in Cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BDo-WU8_2s9Uz2DlZTLHEA.png" /></figure><p>You can create a user to allow other developer to join on your development. Granularly tuning their privileges to resources. This way, we can limit a developer’s access to some services that either they are not interacting with or to sensitive resources like database or payment bills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KsEexGUInZSYTmIN4xHeDA.png" /></figure><p>The way you can fine-grain access right is by attaching a policy to the user or to a service. There are many pre-built policies to bootstrap your management. If you want more granular control, you can create your own policy. By the way, it is a best practice to never use a root account in your daily activities, instead create an IAM user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2eF3oa-_cIsi1Ti39DAb2A.png" /></figure><p>For fine tuning services access to other services, there are also roles. Similar to user, you can attach policies to those roles. Roles also can be attached to another user that are from a different root account and also to user who are federated.</p><h4>Compute Services</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WqdnW23tEuN-B4RwVF74aQ.png" /></figure><p>One of the most basic forms of cloud services is the compute services groups. AWS has many offerings depending on your needs. From a barebone virtual machine which you can manage entirely like EC2, to managed hosting service like Lightsail, to a serverless function.</p><p>Our project is a serverless web application, so in this group, we only use Lambda as the middleware to some of the other services.</p><p>Lambda is a service where you can host your code to run without managing the resources. It can run code built in Python, Node, Go, Ruby, Java, and .Net environment. Some common use of a serverless function service like Lambda is to act as a middleware to the database for a frontend application. Since connecting to database straight from the frontend app is dangerous, we can call the function via http request to safely access the database.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7320160de34829ff24e18455c0679745/href">https://medium.com/media/7320160de34829ff24e18455c0679745/href</a></iframe><p>Here is an example of a Lambda function. This function will move a user to a default “member” group after the user successfully confirm their user via OTP or email. This function will get triggered after an event created by other services. Speaking of trigger, there are a couple other trigger that can call a Lambda function such as http request or an event.</p><h4>Storage and Database Services</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Janm2Z08-tH8LQb03rAg2g.png" /></figure><p>On each of the service group, there are many offering for different needs. On the storage side, we in our project use Simple Storage Service or S3 for short. It allow us to store files easily and access them. Our app has an upload feature where the user can upload a document, either in an image form or document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2WqRpPUvsjU83eJT6V362g.jpeg" /></figure><p>In the database side of things, there is solution for every kind of database needs. The most common ones are Relational Database System where you can fire up a database instance using any popular DBMS. There is service for NoSQL database such as document based and key-value based. We of course use one of these services which is DynamoDB, a key-value database service. We use DynamoDB to store all of the application data.</p><h4>Other services</h4><p>Here are a few more services that we use.</p><ul><li><strong>Cognito</strong>, a user management service. In our project we use Cognito to host our user pool, we also use this service to authorize access to other AWS resources.</li><li><strong>Amplify Console</strong>. A hosting and continuous delivery service. You can host your front-end serverless application in Amplify. This service works well in a serverless environment together with AppSync. The way we deploy our app is by setting up a git hook so that Amplify know when we push new changes to the repository.</li><li><strong>AppSync</strong>. A GraphQL endpoint act as the aggregator for all of our datasources. By using AppSync, we can easily call an API using GraphQL to structure our request.</li></ul><h3>Here we are</h3><p>It has been a blast working with AWS. I really hope in the future, I can work in cloud environment again albeit in GCP or even maybe on Azure. Cool tech, 10/10 would go cloud again.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3253c9d076cc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ukm-heroes/cloud-giant-3253c9d076cc">Cloud Giant</a> was originally published in <a href="https://medium.com/ukm-heroes">UKM Heroes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployment]]></title>
            <link>https://medium.com/ukm-heroes/deployment-f44f6105e6b3?source=rss----9354f0504da2---4</link>
            <guid isPermaLink="false">https://medium.com/p/f44f6105e6b3</guid>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Maria Aprillia Devira]]></dc:creator>
            <pubDate>Thu, 28 Nov 2019 23:35:59 GMT</pubDate>
            <atom:updated>2019-11-28T23:35:59.822Z</atom:updated>
            <content:encoded><![CDATA[<h4>[No, not to the army]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*9860tn6_CPEPnBxF1wIpmw.jpeg" /></figure><p>Well, of course in our development process we would need to deploy our work. Here, we are required to deploy it to Fasilkom’s Docker registry and engine, no included with the production environment. For this we’ve been using angular as our front-end and aws, which is now changed to google cloud platform, for our back-end. From there we only need to make it so that our angular is put in a sort of container. Here is how our group does our deployment.</p><h3>Docker Container</h3><p>First, we would need to create a container for our angular. A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another. A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings.</p><p>Container images become containers at runtime and in the case of Docker containers — images become containers when they run on <a href="https://www.docker.com/products/docker-engine">Docker Engine</a>. Available for both Linux and Windows-based applications, containerized software will always run the same, regardless of the infrastructure. Containers isolate software from its environment and ensure that it works uniformly despite differences for instance between development and staging.</p><h3>Building a Docker image</h3><p>In order to build a Docker image, a Dockerfile file must first be created which contains the “recipe” on how to create the image. Generally, it consists of what base image to be used as the runtime and then how do you want your apps to be put in the image. Here is our Dockerfile:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3972123d53b547682f4891a54a211092/href">https://medium.com/media/3972123d53b547682f4891a54a211092/href</a></iframe><p>The script can be separated into two parts, build and package. Firstly, we use a Node based image since angular is a Javascript framework, we need npm which is part of Node to build our image. Then we are using the Alpine version of it. Alpine is a lightweight and small Linux distribution. Then we change the working directory and also copy all the source code into the image, keep in mind that some files will get ignored according to the .dockerignore file. We use npm install command to install all the dependency. Since Angular is a front-end framework, it needs to be compiled into html, css, and js files, we will use npm build for that.</p><p>Since it has been compiled, we don’t need the Node environment anymore, instead, we will use Nginx as the web server to serve our compiled resources. Alpine still be used as the runtime since it is berry good. Since we build our Angular app inside the previous image, we need to copy the compiled resources from that image using COPY and the argument — from=builder into the appropriate folder. We assigned the port to port 80 since it is the default port for HTTP request. We also add the ENTRYPOINT to tell docker what to do when running the image.</p><p>Fasilkom also has their own GitLab instance and runners, we are going to use this as the means to continuously deploy our app. In order to use GitLab’s CI/CD pipeline, one must create a .gitlab-ci.yml file as the script. Here are ours:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e196169a6898686b7ad2805597d4cd91/href">https://medium.com/media/e196169a6898686b7ad2805597d4cd91/href</a></iframe><p>Our script is way simpler since we only need to deploy our front-end. Here you can see that our script has two main stages which is the test stage and deploy stage, the test stage is reserved for another topic. In the deployment stage, we are using the Docker image, a Docker in Docker that allow us to do Docker stuff inside Docker. Most of these commands are only there as the workaround to get Docker in Docker (DinD) running in Fasilkom’s GitLab instance. The only important ones are the commands inside script. To speed up our image building, we can pull the previous (if exist using || true) image to serve as the cache using docker pull and then reference it when building using — cache-from. Our registry has naming convention, so we tag our image appropriately when building it. Finally we can push our image.</p><h3>Done</h3><p>We have finally pushed our image to the registry. Later if you want the image to be able to be accessed, we can set up a container using the convenient Portrainer as the GUI for docker manager.</p><p>This would be all I know about deployment. I hope this is informative enough because I feel that as a hustler, I could not grasp the concept well enough to be translated into writing. Well this is the end of our meeting, I hope everything would be informative enough and I will now</p><blockquote>Bid my final adieu!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f44f6105e6b3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ukm-heroes/deployment-f44f6105e6b3">Deployment</a> was originally published in <a href="https://medium.com/ukm-heroes">UKM Heroes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[T·D·D]]></title>
            <link>https://medium.com/ukm-heroes/t-d-d-f30d7a8e5bf2?source=rss----9354f0504da2---4</link>
            <guid isPermaLink="false">https://medium.com/p/f30d7a8e5bf2</guid>
            <category><![CDATA[ppl2019]]></category>
            <category><![CDATA[tdd]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Vadim Bhirawa]]></dc:creator>
            <pubDate>Thu, 28 Nov 2019 23:24:03 GMT</pubDate>
            <atom:updated>2019-11-29T03:57:31.322Z</atom:updated>
            <content:encoded><![CDATA[<h4>/ˈtɪdɪdɪd/</h4><p>Good Morning/Afternoon/Noon/Night whenever you are! Alas, I must bring an unpleasant news right at the start by saying that this might be our last time seeing each other. While it pains me so, a wise person once said,</p><blockquote>“<strong>Time’s arrow</strong> neither stands still nor reverses. It merely <strong>marches forward.</strong>”</blockquote><p>Therefore, we shan’t waste any more time. The show must go on! This time I’m going to explain a bit about TDD, or the long way to say it, Test-Driven Development!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1hfrtyDeFRAKY48Q" /></figure><h3>TDD</h3><p>No references this time as TDD is literally an abbreviation, Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle: first the developer writes an automated test case usually designed to fail, that tries to achieve a desired improvement or new function, then creates the minimum amount of code to pass that test, and finally refactors and implements the new code in acceptable standards. Because we constantly create test cases for new functions and improvements, then create the bare-minimum amount of code to pass it, it’s most likely to be effective. It’s better like this than without. What? You’re still asking <strong>why</strong> you should be using TDD? Pfff. You know it’s fun, right? I’m not supposed to give my opinion, but give it a try, and then you can tell me if it’s good or not. Not convinced yet? Okay, I’ll cut you a deal. TDD is available for <strong>free</strong>, and <strong>that’s</strong>. <strong>A great. Price</strong>. If you’re still not convinced, I guess I have no choice but explain it.</p><h4>Why you should use TDD</h4><ol><li><strong>Good tests make good documentation</strong> — both for you, your team, or anyone else that might find your project. Name your tests in a way that describes the tested function’s behavior, e.g. To test if your page implements the correct html, use the name “LandingPageHTMLTest”</li><li><strong>You’ll code faster.</strong> Even if writing a correct function implementation is difficult, pre-written tests will give you a clear target to hit.</li><li><strong>You’ll code correctly faster.</strong> Keep your test runner open to get continuous feedback on your work. This will get you to a correct implementation faster than coding an entire module at once and then testing it.</li><li><strong>You won’t forget to write the tests.</strong> Code without tests should make you uneasy, period. A comprehensive, passing test suite is reassurance to you and other developers that your code won’t break, hopefully.</li><li><strong>It provides a solid starting point for later work.</strong> If you pick a project back up after a few months, you’ll forget how most of the code works. Tests can be a reminder, and a tested code base can be a fallback if you suddenly break things.</li><li><strong>It pushes you to write cleaner code.</strong> Long, complicated functions are hard to test. Simple tests and clear descriptions will naturally lead to shorter, more readable application code.</li><li><strong>You’ll write more meaningful tests.</strong> With code already written, it’s easy to write tests that just pass instead of tests that confirm useful functionality. Imagine if your math professor only tested you on things you already knew — that wouldn’t be very useful!</li></ol><p>These 7 outlines should convince you more and more to use TDD as you go further down from the 1st reason. Trust me, by the time you’re reading the 7th reason, you’re more likely to implement TDD on your project.</p><h3>TDD Principles</h3><p>As all great methods, TDD has basic principles. By combining programming, unit testing and refactoring, TDD is a practice that allows us to obtain a clean code, easy to modify and answering the expressed needs which remains the first priority when developing an application. <strong>The TDD has 3 phases</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TKxeNO-PxvJ7yYjL.jpg" /></figure><ol><li><strong>RED</strong>. First write a unit test in failure. The impossibility of compiling is a failure.</li><li><strong>GREEN</strong>. Write as soon as possible the production code sufficient to pass this unit test even if it means allowing the “worst” solutions. Of course if a clean and simple solution appears immediately, it must be realized but otherwise it is not serious the code will be improved incrementally during the refactoring phases. The aim here is to obtain as soon as possible the green bar of success of the unit tests.</li><li><strong>REFACTOR</strong>. It not only eliminates possible code duplications but also makes it possible to make changes in architecture, factorization, presentation. This refactoring concerns both the production code and the test code and must not modify the external behavior of the program, which is materialized by a test execution bar that remains green.</li></ol><p>The implementation of these 3 phases is done within <strong>5 main stages</strong> which constitute the TDD cycle. The stages are as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/0*VU1amsI3AhO77sLY.png" /></figure><h3>Conclusion</h3><p>While it can be a bit hard to implement as we have to create individual tasks that cater to each and every new implementation/function, it is a process worth going to hell for, as after we implement TDD, we are sure to have clean code implemented and our project optimized! It not only helps you in the moment, but also in the long run. Let’s say you’ve finished one of your projects but didn’t implement TDD, and for your current project, you need some components that can be reused from your finished project. It would be The Valley Of Death you’re entering, son, as you haven’t implemented TDD, your code is sure to be dirty and therefore difficult to find the components you need. However if you implemented TDD, and the component you need is actually tested already, you can easily find it and take the snippet to use in your current project.</p><p>Welp, I guess this is the end. Why is the end always so sad? Well, can’t help it I guess. As I said before, “Times arrow neither stands still nor reverses. It merely marches forward”. This is goodbye. From me. Signing Off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*EdvZiX2eQNeB2aMEGchRgw.gif" /><figcaption>Goodbye</figcaption></figure><blockquote>Good. Bye~</blockquote><h3>Some TDDs I’ve Done</h3><p>Most are from other projects than UKM Indonesia though.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa3bdfc428e0eff1525e21370c5bf8d0/href">https://medium.com/media/aa3bdfc428e0eff1525e21370c5bf8d0/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd0c575bb4b563aaea494d92c2d4ab8c/href">https://medium.com/media/bd0c575bb4b563aaea494d92c2d4ab8c/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/34b665c94e70ffa7037d56c4d990c21a/href">https://medium.com/media/34b665c94e70ffa7037d56c4d990c21a/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa693888eb672b6d2b31324c6bea1049/href">https://medium.com/media/fa693888eb672b6d2b31324c6bea1049/href</a></iframe><p>These are some of my TDD Implementations from a project where I made a LINE Chatbot. The tests are basically done to test if the bot can add service, remove service, update service, or view service.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f30d7a8e5bf2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ukm-heroes/t-d-d-f30d7a8e5bf2">T·D·D</a> was originally published in <a href="https://medium.com/ukm-heroes">UKM Heroes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Duck Dock Goose Orchestra]]></title>
            <link>https://medium.com/ukm-heroes/duck-dock-goose-orchestra-1bf4972c2769?source=rss----9354f0504da2---4</link>
            <guid isPermaLink="false">https://medium.com/p/1bf4972c2769</guid>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Maria Aprillia Devira]]></dc:creator>
            <pubDate>Thu, 28 Nov 2019 23:16:30 GMT</pubDate>
            <atom:updated>2019-11-28T23:16:30.291Z</atom:updated>
            <content:encoded><![CDATA[<h4>[Docker time]</h4><p>Docker Orchestration, or some would call it container orchestration, is the automatic process of managing the work of an individual container for applications that are based on microservices within multiple clusters. Basically it enables a fast and reliable deployment of an applications components by creating a sort of container to hold the ready to deploy applications with the middleware and application logic needed to run them successfully. It is purposely an isolated self-contained part of the application. Here I would talk about the docker orchestration that we’ve successfully used in our project.</p><h3>Amazon WebServices</h3><h4>Amplify Console</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/0*fsm2lKWxv65eiJ1F" /></figure><p>Amplify Console is a CI/CD and web hosting provided by AWS. We can use it to host full stack serverless web apps. It’s pretty similar to Gitlab, as it has a GIT-based workflow, so we can code like we always do. Front-End and Back-End Environment are created every time we add new features by Amplify.</p><h4>DynamoDB</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gVeC1PmEzA1O2i19" /></figure><p>Also provided by AWS, we use DynamoDB as our main database. Amazon DynamoDB is a fully managed proprietary NoSQL database service that supports key-value and document data structures. As we have a large database, NoSQL can prove better than SQL as it scales horizontally (we only need to add new servers).</p><h4>AppSync</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MidEPEOc3OTK1cii" /></figure><p>Amazon AppSync is a managed service that uses GraphQL to make it easy for applications to get exactly the data they need. AppSync help with combining multiple data sources into one GraphQL endpoint. We use this to query the data we have on DynamoDB by using GraphQL.</p><h4>Cognito</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*aG6Wdn1K9uDXR1X7" /></figure><p>Amazon Cognito lets us add user sign-up, sign-in, and access control to our web and mobile apps quickly and easily. Amazon Cognito scales to millions of users and supports sign-in with social identity providers, such as Facebook, Google, and Amazon, and enterprise identity providers via SAML 2.0. We use Cognito mainly as an identity/user pool to access other resources.</p><h4>S3</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/0*t584FHqHUYzzw0FM" /></figure><p>Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance. We use S3 as the storage of our images.</p><h4><strong>Extra stuff</strong></h4><p>There are many other services that utilized behind the scene such as IAM, Lambda, CloudWatch, etc. Each of them has their own role in our development.</p><h3>Application</h3><h4>Angular</h4><p>The development team in UKM Indonesia had already been using Angular before, which is why we use this. Angular is a TypeScript-based open-source web application framework and a platform for building mobile and desktop web applications.</p><h4>Amplify JS</h4><p>Creating a serverless application can be hard sometimes. Amplify JS help by abstracting most of AWS services into categories such as authentication, storage, and API. It is a JavaScript framework that work with frontend framework like Angular, React, and Vue to help abstract most of AWS’s little configuration so that developer can focus more on building the app itself. Don’t know what else to write so here is an example of Amplify JS service configuration.</p><h3>Software Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*N2-eZecUKh1WUnqY" /><figcaption>Software Architecture for UKM Indonesia</figcaption></figure><p>Although currently, we are using google cloud platform as of now due to the mishaps that occurred with our original backend. Our google cloud platform has not been fully configured by our backend team along with UKM Indonesias tech team, thus we couldn’t make the orchestration as of yet.</p><p>This would be all I know about docker orchestration, the next I would be writing about Deployment. Well, I hope this is informative enough to explain our docker orchestration and</p><blockquote>In a while crocodile!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bf4972c2769" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ukm-heroes/duck-dock-goose-orchestra-1bf4972c2769">Duck Dock Goose Orchestra</a> was originally published in <a href="https://medium.com/ukm-heroes">UKM Heroes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Red to Green to Refactor; TDD]]></title>
            <link>https://medium.com/ukm-heroes/from-red-to-green-to-refactor-tdd-a4a4199b947c?source=rss----9354f0504da2---4</link>
            <guid isPermaLink="false">https://medium.com/p/a4a4199b947c</guid>
            <category><![CDATA[tdd]]></category>
            <dc:creator><![CDATA[Maria Aprillia Devira]]></dc:creator>
            <pubDate>Thu, 28 Nov 2019 17:21:18 GMT</pubDate>
            <atom:updated>2019-11-29T05:00:13.181Z</atom:updated>
            <content:encoded><![CDATA[<h4>[Yes]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*PS1DOLIqtoqH5zuyUCN1Jw.png" /><figcaption>Applied TDD by <a href="https://www.monkeyuser.com/2018/applied-tdd/">MonkeyUser.com</a></figcaption></figure><p>TDD, short for Test-Driven Development, is a programming practice that encourages developers to first write a test, that will inevitably fail, before writing their code. Unlike the situation shown in the illustration above, developers using TDD would not cause any detriment to their product and users thus there is no risks on doing it. Simply, TDD is to write and correct the failed test created before starting on writing new codes. TDD would be often called as the <strong>Red-Green-Refactor</strong> process.</p><h3>Why do TDD?</h3><p>TDD would have quite the amount of benefits, but some of the benefits that I have picked up on are;</p><ul><li><strong>Helps you write the code.</strong> With the early creation of the tests, it would help with envisioning what the code would do and from there it would help the process of writing the codes down making it easier in the writing process.</li><li><strong>Clean code and less bugs.</strong> Since TDD would have you focus on a small part of the code at a time, there would be less code duplication or unnecessary codes and with the tests created early the bugs can be caught early on as well making it easier to resolve them compared to resolving the bugs when the code is completed.</li><li><strong>Easy refactoring.</strong> After one part of the code is done, the test would still benefit you as you create the next batch of codes. You can use the passing test to see if any of the new code you’ve written would conflict with the previous one. Doing this would be as easy as rerunning the test to see if everything is in order or not.</li></ul><h3><strong>How to do TDD?</strong></h3><p>To reiterate what has been stated; TDD is often referred as the <strong>Red-Green-Refactor</strong> process. This is due to three main phases of the process. Its processes are;</p><ol><li><strong>RED.</strong> Which signifies a failed test.</li><li><strong>GREEN.</strong> Which signifies a passed test.</li><li><strong>REFACTOR.</strong> Which is where the code is modified to so that the implementation of your code would be better and more efficient.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*hg77AqiXDBgnSWSdtsq0IQ.png" /></figure><p>A more detailed step of performing TDD would be;</p><ol><li>Write a test for the code you are planning to write.</li><li>Run those test. If done during the start of the project all of the tests would be failed or <strong>[RED]</strong>, otherwise only the newly created tests would be <strong>[RED]</strong>.</li><li>Write the code so that all the tests created would be successfully passed or <strong>[GREEN]</strong>.</li><li>Run the tests again to see if the code is working how you would want it to work. If tests are not <strong>[GREEN]</strong> yet, continue on refactoring your code so that it does, otherwise you can refactor for any bugs or duplicate codes and make your code cleaner.</li><li>Repeat step 1 to 4 for the next code batch you are going to make.</li></ol><p>Although TDD is a <strong>Red-Green-Refactor </strong>process it does not always mean that you would have to refactor your code at the end. If the code created is clean enough and bug-free as you enter step 4, you would not need to refactor your code and can continue to the next step. Additionally there is no need to always create all the test that you are going to have in the whole project, just start slow with one at a time to improve the focus given towards that test and code which in turn can increase the quality of the code made.</p><p>TDD also has a method called unit-testing where we break down a test into smaller parts so that it would be easy to create, clearly show its purpose and have low coupling. Writing a unit test is where the information of whether or not the code works is found. A simple unit testing would include giving an input to a small part of the code and see whether it would provide the expected output or have some other output. Not all parts of the code would need unit testing, those which are best for unit testing are functions which when given the exact same input would also provide the exact same output and others.</p><h3>Coverage</h3><p>A way of seeing the quality of the tests created for a project would be to check its coverage. Most testing framework would have some sort of coverage report that can be seen. A test coverage does not define the tests itself but rather it helps us see the overall quality of the test. A way of using a test coverage is using it to set a bar in which a test would pass or fail such as failing it if it does not reach a certain threshold, which has been defined as a <em>bar</em>.</p><h3>Conclusion</h3><p>Doing TDD might be a struggle because some might have troubles making a test when there is no code, but continuous practice of TDD helps us overcome that in a way by making us have a clear direction of the code beforehand and having a clear path of the code would ultimately create a better code. As I’ve experienced in my current project group, some members would absolutely abhor it whenever I would remind them to create some TDD tests. In the end they do it anyway and it would lead to a quite clean code. Although TDD is quite difficult to do at the beginning, it does have its advantages when you do start doing it and those advantages would be easily reflected in to code that it created.</p><p>In the end, familiarizing yourself on doing TDD would be more beneficial than harmful to your code and it would ultimately help you create a better code faster and also help during the refactoring and debugging process of your code.</p><p>That would be all for today, next I would be writing about Docker Orchestration and Deployment. I hope this would be helpful and</p><blockquote>See you later alligator!</blockquote><h3>Additional TDD</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5941c8fad288bcffb3a21a2a773b7b1e/href">https://medium.com/media/5941c8fad288bcffb3a21a2a773b7b1e/href</a></iframe><p>This is a placeholder test that makes sure the contents loads.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4a4199b947c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ukm-heroes/from-red-to-green-to-refactor-tdd-a4a4199b947c">From Red to Green to Refactor; TDD</a> was originally published in <a href="https://medium.com/ukm-heroes">UKM Heroes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serverless]]></title>
            <link>https://medium.com/ukm-heroes/serverless-de7623d0ca4a?source=rss----9354f0504da2---4</link>
            <guid isPermaLink="false">https://medium.com/p/de7623d0ca4a</guid>
            <category><![CDATA[serverless]]></category>
            <dc:creator><![CDATA[Ilman Nafian]]></dc:creator>
            <pubDate>Thu, 28 Nov 2019 15:50:47 GMT</pubDate>
            <atom:updated>2019-11-28T15:50:46.960Z</atom:updated>
            <content:encoded><![CDATA[<h4>Future</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iScGTyQcCpDNgqxPSsdpYg.png" /></figure><p>Before taking this course, I’ve never imagined that I’ll interact with cloud computing stuff any soon. So when I learned that our group will use Angular along with AWS, I was really excited. We are developing a website for UKM, a serverless Angular app backed by AWS.</p><h3>What</h3><p>Cloud computing have been the buzzword for these few years. Many company have migrated their infrastructure to the cloud. From what I’ve read in multiple places, cloud computing is an on-demand delivery of computing resources like compute power, database, file storage, delivery, and other services via the internet where you pay for what you use. There is a different between serverless and cloud computing however. Consider this example I found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4sl9fYuAxlwQUpFPTlLR9A.jpeg" /><figcaption>Source: <a href="https://www.gocd.org/2017/06/26/serverless-architecture-continuous-delivery/">https://www.gocd.org/2017/06/26/serverless-architecture-continuous-delivery/</a></figcaption></figure><p>Traditional in this image is referring to traditional server, but let’s just say that that is a cloud server like AWS EC2 or GCP Compute Engine where it is an IaaS. You still needs to manage the resource amount you want to give to your application. Though less resource spends to manage the infrastructure, there is still needs to be someone that manage it.</p><p>In serverless computing, you don’t have to spend too much time provisioning your services. Almost all of the services has an automatic scaling behind the scene or little bit of configuration. This allow developer to focus more on their business logic and develop a better application.</p><h3>Benefits</h3><p>The fact that many companies is already migrated to the cloud tells us that it must have many benefits.</p><h4>Less things to worry</h4><p>Technically, it is not serverless, but it is trying to tell is that we don’t need to care about the server anymore, hence serverless. Traditionally, when building a huge application, the company must spend human resources to only handle their server. These human resources is not cheap because to manage a server require many knowledge, there are many things to consider and manage. Due to the nature of human, there will be human errors at some point. This can lead to many things such as security breach, downtime, or inefficiency usage of resources. This is why serverless computing is very appealing to many people since it is basically less things to manage. Everything is already optimized, monitored, and up to date.</p><h4>Elastic</h4><p>Consider this example, a company have a website that act as a place where people buy things. On normal days, they gets around 1.000 visitor. They are sitting on a comfy 20% resource utilization on their local server. They want to create an event to attract more customer. The event is basically this one day on every year where everything goes to sale. People were excited, bu then when the day come, everything falls apart. Their server can’t handle the sudden influx of visitor. Before the next year’s event, they have prepared. They bought triple the server resources from last year. The day passed successfully. But then they notice that on normal days, they are sitting at 2% of server usage. This are the problems that traditional server had to face. With cloud computing, scaling is a no problem. When your service needs more resources, it gets more resources, when it doesn’t, it doesn’t.</p><h4>Cost</h4><p>Serveless architecture is very cost efficient. Since every resource that you use is automatically scaled, you are literally only pay for what you use. Traditional server technically also pay only for what they use, but if you buy 4gb of ram, you pay for 4gb of ram regardless whether your application use the whole 4gb or just 2gb. With serverless, you exactly pay for what you use. If your function needs 2gb of ram, then you pay for 2gb of ram.</p><h3>Implementation</h3><p>Here I’ll talk about some serverless architecture example, including the one that we used.</p><h4>Our project</h4><p>The website that we are building is built on Angular together with Amplify JS to ease AWS integration. Take a look at our diagram.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*jg1bt28ii4wMvxf3CXUzhw.png" /></figure><p>Focus on the AWS part. We host our app on Amplify Console, while our database is hosted on DynamoDB. AppSync serve as a GraphQL endpoint and a data source aggregator. Storing media like images in S3. Migrate old data using DMS. And all of this authenticated and authorized by Cognito.</p><h4>Simple web service</h4><p>One of the most basic form of serverless computing is the function as a service. A code that only run, consume, and cost only what it needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*_3qbPYuPWCoVWoSW1EQ09g.png" /></figure><p>Picture above is a simple web service that query data from a database, in this case from RDS, then returns it to the client via http. It can be requested from a client side web apps, directly from browser, and other services.</p><p>Another example of FaaS is an media upload processing. If your application require media processing before stored, FaaS can help you. Client can call a function that will process the media, then store it automatically to the storage.</p><h4>Data source aggregator</h4><p>Having many data source can be cumbersome sometimes. You have a database, public API, legacy apps, and a lambda function. Dealing with this many sources will be hard to maintain and can be costly later. AWS offer a service called AppSync which allow us to have a single endpoint for all of our data source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9PAZQf7FKkgaao5l.png" /><figcaption><a href="https://aws.amazon.com/appsync/">https://aws.amazon.com/appsync/</a></figcaption></figure><p>We’ve personally used AppSync to easily create a GraphQL endpoint. Later in the development, if we decide to add another data source, we can easily integrate it to our apps.</p><h4>The strangler</h4><p>This is a very interesting and useful serverless pattern that I’ve just learned. When you are transitioning from a legacy monolithic apps to a serverless, usually it will take some times. Waiting for the app to be fully built is fine but why wait when you can start using part of it that is working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*pX_K7vopMSbMAxZtNyXFaA.png" /></figure><p>Here is a simple diagram of the strangler pattern. When a request comes, if there is a serverless version of it running, API Gateway service can route that request to the new service, in this example, a database access. Then a lambda function that receive a stream from the database will sync the legacy database. This way, you can use part of the new architecture without waiting all of it to be built.</p><h3>Cool</h3><p>This stuff is really cool, I’ve learned so much about modern application architecture. Really wish I could try building more serverless application in the future. There are also many serverless patters out there that I can learn.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de7623d0ca4a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ukm-heroes/serverless-de7623d0ca4a">Serverless</a> was originally published in <a href="https://medium.com/ukm-heroes">UKM Heroes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kleen Code in Angular ]]></title>
            <link>https://medium.com/ukm-heroes/kleen-code-in-angular-59fb779936e1?source=rss----9354f0504da2---4</link>
            <guid isPermaLink="false">https://medium.com/p/59fb779936e1</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[WAHYU ADT]]></dc:creator>
            <pubDate>Thu, 21 Nov 2019 23:54:27 GMT</pubDate>
            <atom:updated>2019-11-21T23:52:34.617Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello ! The Hipster is back with brand new topic which is Clean Code ! But instead of just discussing the regular clean code, i will add more explanation on the implementation of clean code in Angular (file structure and more!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*DWDcNg1CfXYjCekAiBe__g.jpeg" /><figcaption>Old meme from Advanced Programming course 😁</figcaption></figure><h4>Module Separation</h4><p>In angular, the application should be split into several modules to maintain the project reusability and make it more organized. With separated modules, making changes to the application will be easier since we will know where the implementation is.</p><p>For example, in our current progress, we have some modules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*EhM5z-j51_itWpM0pt9DTw.png" /><figcaption>Some of our project’s structure</figcaption></figure><p>As we can see, there exists two pages, <strong><em>event-page</em></strong> and <strong><em>landing-page.</em></strong> Each of them has its own separated module which means that everything that will be put or displayed in the page is located in the particular module. E.g. landing-page module folder will contains everything including the components (which we will discuss later).</p><p>So that when we face a problem in the landing page, we can go directly or search the problem inside its designated module.</p><h4>Components</h4><p>Assume that you are making the events card for the event page that will look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*SiqrUGySBpq8NMUWLAv3_g.png" /><figcaption>Event Cards</figcaption></figure><p>You can easily create six cards div to form the layout above. But what if we had 20 or 30 of them? We might as well get tired of doing that and our html would be very long. We actually can minimize the code duplication and prevent us from making thousand lines of codes.</p><p>We can put a repeatedly-used code inside a component. Or in other words, we can create a component that can or will be used repeatedly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*YTOrEv_HThJQKxuVeAqrsQ.png" /><figcaption>Make the event card a component</figcaption></figure><h4>Shared Module</h4><p>You might as well have some parts that is used across the application or you want to create a standardized layout for every page in your app. Then you would like to take benefit of the shared module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*HGiuCEVX-h-4A0qv2SyJLQ.png" /><figcaption>Header and Footer as shared module</figcaption></figure><p>We implemented the shared module for our header and footer, so it will be shown in every page we have in our application.</p><h4>Services</h4><p>What about the backends? Does angular provides a way to clean your backend codes? The answer is yes. In angular, we have service. Take a look inside our auth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*8wOGa0WQnPWRgJXTkp1jxA.png" /><figcaption>Auth</figcaption></figure><p>As you can see, we have <strong><em>auth.service.ts</em></strong> at the bottom. What does it have? It contains our <strong><em>signUp()</em></strong> function and other authorization function that we need to have to connect or implement C<strong>ognito</strong>. Our code snipps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*BwExbwCi7FKDXNuKR94UhA.png" /><figcaption>Functions inside the auth.service.ts</figcaption></figure><p>if we want to use this code, we can write this on the page’s <strong><em>component.ts</em></strong> file like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*6zA0ke7NxEdNBS8dL00t7Q.png" /><figcaption>Define the service in Constructor</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*iVThACqhZ28iVvDVNGuqSw.png" /><figcaption>One use of the service’s function</figcaption></figure><p>That’s i think sums up the Clean Code in Angular that we implemented in our project. If you miss something, please understand that we do not use all the features that Angular has.</p><p>Discussing about Clean Code in our project, It would be improper for me to just left out the general Clean Code definition and usage. Here is some of the Clean Code principles and implementation.</p><h3>The Principles</h3><h4>Keep It Simple Stupid (KISS)</h4><p>Avoiding overly complicated Code is a must. Since we want or might share our code to other people, we need to make it as simple as possible so that people would understand what our code is doing. The implementation of <strong>KISS</strong> in our project is helped by Angular split sana split sini that simplified a specific module for a page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/247/1*js-4-8HzccQ8YaJpZjEILA.png" /><figcaption>Modules</figcaption></figure><p>Another example is our auth service’s functions. <em>Psst! it also contains </em><strong><em>Meaningful Names</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*mDy4AcQt_Z-gZADOnmipWw.png" /><figcaption>Auth’s function</figcaption></figure><p>Instead of cramping all Sign Up, Sign In and Sign Out into one big Auth() function, we split each specific function of itself. We have other Clean Code implementation hiding on those, yep! the <strong>Arguments!</strong> We have only at most two arguments in a function there. Why? because we want it as simple and as low as possible. Hehe.</p><h4>Don’t Repeat Yourself (DRY)</h4><p>We need to reduce code duplication in our project in order to keep our code simple like one above, make our code easy to refactor, and prevent overwhelming codes. Again, this was helped a lot by Angular’s <strong>Component</strong> and <strong>Services</strong> features. Thanks angular!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*8wOGa0WQnPWRgJXTkp1jxA.png" /><figcaption>Auth services</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*HGiuCEVX-h-4A0qv2SyJLQ.png" /><figcaption>Header and Footer as shared module</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*YTOrEv_HThJQKxuVeAqrsQ.png" /><figcaption>Make the event card a component</figcaption></figure><h4>You Aren’t Gonna Need It (YAGNI)</h4><p>If you think that something is not very useful or having any impact to the code in general, you should remove it immediately. Or if you have an unused code, and you sure that you would use it again somehow, Think again! A left behind codes is the reason why we need <strong>YAGNI</strong>. A stack of unused and forgotten code is really a mess, and might confused people on which one are we using and increasing the project’s memory. Hm, this is odd, we don’t have an example for this because we implement <strong>YAGNI 😃.</strong></p><h4>Composition over Inheritance</h4><p>Take a look again at the project structure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*fU_IswYhcf_lHgEEcAPwPQ.png" /><figcaption>the project structure</figcaption></figure><p>It might reminds you of something from <strong>Advanced Programming </strong>course. Yep it’s <strong>Composition</strong> making its return! Angular actually implementing Composition design pattern for their project structure so that one will have a composition of code with the same objective or functionality. like landing page will have everything related to landing page in its composite (component).</p><h4>Favor Readability</h4><p>Maintain your code so that everyone else can easily read and understand the codes, the code must be simple and have meaningful names</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*mDy4AcQt_Z-gZADOnmipWw.png" /><figcaption>Meaningful names, you will figure out what is it just by reading the name</figcaption></figure><p>Well you might’ve seen before… <strong>Duplicated! </strong>Help this medium itself is not applying clean code 😅.</p><h4>Consistency</h4><p>When you giving name to a function or a module, you are not only take notes on its meaningful names, but also the <strong>name consistency</strong> along the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*mDy4AcQt_Z-gZADOnmipWw.png" /><figcaption>This picture again?</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*MuB2BbEUAF_57f_yL3GSNA.png" /><figcaption>Name Consistency</figcaption></figure><p>use “-” to replace “ “ &lt;- whitespace</p><p>Well it’s time for us to part, thanks for reading this medium and i am sorry about the Medium Smells</p><blockquote>O. O, Stinky!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59fb779936e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ukm-heroes/kleen-code-in-angular-59fb779936e1">Kleen Code in Angular 🅰</a> was originally published in <a href="https://medium.com/ukm-heroes">UKM Heroes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cle·an Co·de]]></title>
            <link>https://medium.com/ukm-heroes/cle-an-co-de-96a85c623bd4?source=rss----9354f0504da2---4</link>
            <guid isPermaLink="false">https://medium.com/p/96a85c623bd4</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ppl2019]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[ppl]]></category>
            <dc:creator><![CDATA[Vadim Bhirawa]]></dc:creator>
            <pubDate>Thu, 21 Nov 2019 20:04:34 GMT</pubDate>
            <atom:updated>2019-11-21T20:04:34.416Z</atom:updated>
            <content:encoded><![CDATA[<h4>/kliːn koʊd/</h4><blockquote>Oh God! He’s talking about cleaning his codes now! What a madlad!</blockquote><p>Hey, I heard that! By the way, it’s been a few weeks already since I started, so I’m going to talk about something that should be essential at coding/developing, which is “Clean Code”. Most developer teams practice this already on their project, however, it’s a good thing to address and discuss, as there are some who still haven’t practiced it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IuSZD-uN_87o5dJw.jpg" /><figcaption>Source: <a href="https://www.adaptavist.com/blog/profile/krisztian-kovacs">Krisztian Kovacs</a> on Adaptavist</figcaption></figure><h3>Clean Code</h3><blockquote>free from dirt, marks, or stains.</blockquote><blockquote>program instructions.</blockquote><p>Going on a literal sense from the dictionary, a “Clean Code” would mean <em>“Program instructions that is free from dirt, marks, or stains”</em>. While it is accurate to a sense, we still have to explain what makes it “free from dirt, marks, or stains”.</p><p>Different people have different standards. I could make my codes as clean and elegant as possible, if I don’t follow some kind of a guide, I would never get some people’s approval and my codes won’t ever be actually “clean”. Thankfully, lots of intellectuals have banded together and talked about what counts as a Clean Code. While they still share their own views about it, it’s something that the general public has accepted as something that is “Clean”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3IVwSRH5bKDxf0Qb.jpg" /><figcaption>Source: <a href="https://ronjeffries.com/xprog/articles/too-much-of-a-good-thing/">Ron Jeffries</a></figcaption></figure><h4>What Is Clean Code?</h4><p>As Bjarne Stroustrup, inventor of C++ said:</p><blockquote>I like my code to be elegant and efficient. The logic should be straightforward to make it hard for bugs to hide, the dependencies minimal to ease maintenance, error handling complete according to an articulated strategy, and performance close to optimal so as not to tempt people to make the code messy with unprincipled optimizations. Clean code does one thing well.</blockquote><p>As expected from a master of the language arts. Mr. Stroustrup focuses mainly on elegance and efficiency. While Grady Booch, author of <em>Object Oriented Analysis and Design with Applications </em>have this opinion about clean code:</p><blockquote>Clean code is simple and direct. Clean code reads like well-written prose. Clean code never obscures the designer’s intent but rather is full of crisp abstractions and straightforward lines of control.</blockquote><p>And finally, “Big” Dave Thomas, founder of OTI, godfather of the Eclipse strategy said:</p><blockquote>Clean code can be read, and enhanced by a developer other than its original author. It has unit and acceptance tests. It has meaningful names. It provides one way rather than many ways for doing one thing. It has minimal dependencies, which are explicitly defined, and provides a clear and minimal API. Code should be literate since depending on the language, not all necessary information can be expressed clearly in code alone.</blockquote><p>From those three perspectives, there’s a lot of things that we can classify as “Clean Codes”. But with those explanations, there are at least a few aspects of Clean Codes that we can break and clarify. Here, we can clarify the characteristics of clean codes as follows:</p><ol><li><strong>Elegant </strong>: It should be <em>pleasing </em>to read. Reading it should make you smile stretched from ear to ear, the same way you would when you see your special someone, or the same way you would when you find that special thing you’ve been searching for.</li><li><strong>Readability</strong> : Clean code should read like well-written prose. Each function, each class, each module exposes a single-minded attitude that remains entirely undistracted, and unpolluted, by the surrounding details.</li><li><strong>Simple</strong> : Do one thing with the Single Responsibility Principle ( a computer programming principle that states that every module, class, or function should have responsibility over a single part of the functionality provided by the software, and that responsibility should be entirely encapsulated by the class, module or function). Everything is kept simple and orderly, appropriate attention to details have been paid.</li><li><strong>Testable </strong>: Run all tests. It should be tested out fully.</li></ol><p>While there are still some characteristics that we haven’t quite gotten in to (like how it shouldn’t have repetitions or duplication), these four characteristics are the four main aspects that we need to look out for when we want to implement Clean Code in our project. While we review our codes, it is wise to compare them to the four aspects we have here, and make sure our codes fit into all of these aspects to make sure we fully scrubbed our code clean!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*l9ENGSTUcSr2YYswP7DtKQ.png" /></figure><h3>Do’s And Don’ts</h3><p>Now that we have learnt the basic characteristics of Clean Code, we can converse in the various Do’s that we can do with Clean Code, as well as the Don’ts. That’s precisely what I’m doing now, can’t you see?</p><h4>Do : Meaningful Names</h4><p>When we just started coding, it’s okay to, for example, use the names <em>“int d”</em> or <em>“String s”</em>, as we were just learning then, we were working on small projects of our own, not bigger ones where we collaborate with various people. And I’m here to show you why those kind of names don’t work! Consider the following :</p><pre>int d; // d = amount of rewinds</pre><p>Without the comments, would we be able to understand what “d” means?? No, no we wouldn’t (Not unless we’re the developer who wrote that though). Now consider the following :</p><pre>String message;</pre><p>For those kinds of code, we don’t even need a comment for context as the object name itself already explained what it is. This is why we better use meaningful names in our project as much as possible. This is also done to minimize the comment writing, as longer comments would provide in less-productivity.</p><h4>Don’t : Mental Map</h4><p>Readers shouldn’t have to mentally translate your names into other names they already know. This problem generally arises from a choice to use neither problem domain terms nor solution domain terms. One difference between a smart programmer and a professional programmer is that the professional understands that <strong><em>clarity is king</em></strong>. Professionals use their powers for good and write code that others can understand. Let me show you something :</p><pre># bad<br>a = get_apple()<br>o = get_orange()<br>s = make_smoothie(a, o)</pre><p>While it is descriptive (get_apple(), make_smoothie(a, o)) those two refers to the actual functions. The term “a”, “o”, and “s” are too horrible for codes. It only seems to substitute speed for readability, and that is a bad thing to do on a code. As bad readability means worse speed if we don’t catch on fast. Now, I propose something else :</p><pre># good<br>apple = get_apple()<br>orange = get_orange()<br>smoothie = make_smoothie()</pre><p>These are the exact same as the one above it, except that it explains it all. It’s amazing how adding just a few more alphabets into an object can make it way more readable. It is generally bad to mental map, as not everyone have the same way of thinking you do. Therefore, it is best to explain it all.</p><h4>Do : One Thing</h4><p>Following the Single Responsibility Principle (SRP):</p><blockquote>Functions should do one thing. They should do it well. They should do it only.</blockquote><p>What does this mean? It literally means what it means: Functions should do just one thing and do it loud and clear. You don’t expect a hair-dryer to freeze your hair, do you? Or your kid’s doll to do your taxes? Each and every function have their own individual function, so they should do it well.</p><p>For example:</p><p>Let’s assume we need an object to keep an email message. Our IEmail interface and Email class have 2 responsibilities. If we keep only one class, each change for a responsibility might affect the other one.</p><pre>// single responsibility principle - bad example<br><br>interface IEmail {<br>	public void setSender(String sender);<br>	public void setReceiver(String receiver);<br>	public void setContent(String content);<br>}<br><br>class Email implements IEmail {<br>	public void setSender(String sender) {// set sender; }<br>	public void setReceiver(String receiver) {// set receiver; }<br>	public void setContent(String content) {// set content; }<br>}</pre><p>We can create a new interface and class called IContent and Content to split the responsibilities. Having only one responsibility for each class give us a more flexible design.</p><pre>// single responsibility principle - good example<br>interface IEmail {<br>	public void setSender(String sender);<br>	public void setReceiver(String receiver);<br>	public void setContent(IContent content);<br>}<br><br>interface Content {<br>	public String getAsString(); // used for serialization<br>}<br><br>class Email implements IEmail {<br>	public void setSender(String sender) {// set sender; }<br>	public void setReceiver(String receiver) {// set receiver; }<br>	public void setContent(IContent content) {// set content; }<br>}</pre><h4>Don’t : Repeat Yourself</h4><p>Ah, DRY. No, not keeping your clothes DRY or the likes. DRY is an abbreviation, DRY : Don’t Repeat Yourself. Duplication is a problem in software. Many principles and best practices have been created to reduce duplication code. As said before, repetition is not nice, let alone duplication. That’s why DRY is a good concept to hold on to when implementing clean code.</p><blockquote>Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.</blockquote><p>Every duplicate line into application needs to be maintained. If a potential source of bugs appear, it would have to be fixed in all of those duplicates. It bloats the codebase making it much more difficult for developers to fully understand the entire system.</p><h3>Principles</h3><p>While there are a lot we’ve covered, there’s actually something that I forgot to mention, which is the Clean Code Principles. While the Principles are created by a group of developers with their own perspectives, the Principles used are widely well-received by the IT-Community, which is why it holds true until now. Actually, I’ve talked about one of the principles already, specifically DRY (Don’t Repeat Yourself). The rest of the principles are as follows:</p><p><strong>KISS</strong>: Keep It Simple Stupid. A design principle originating from the U.S. Navy that goes back to 1960 already. It states that most systems should be kept as simple as possible (but not simpler, as Einstein would have said). Unnecessary complexity should be avoided. The question to ask when you’re writing code is “can this be written in a simpler way?”</p><p><strong>DRY</strong>: Don’t Repeat Yourself. I’ve actually explained a bit about DRY above. It is closely related to KISS and the minimalist design philosophy. Violations of DRY are referred to as WET: We Enjoy Typing, Write Everything Twice, Waste Everyone’s Time.</p><p><strong>YAGNI</strong>: You Aren’t Gonna Need It. A developer should not add functionality unless deemed necessary. YAGNI is part of the Extreme Programming (XP) methodology, which wants to improve software quality and increase responsiveness to customer requirements. YAGNI should be used in conjunction with continuous refactoring, unit testing, and integration.</p><p><strong>Composition Over Inheritance</strong>: Not an acronym, sadly. It’s a principle where you design your types over what they do instead of over what they are. Composition is favored over inheritance by many developers, because inheritance forces you to build a taxonomy of objects early on in a project, making your code inflexible for changes later on.</p><p><strong>Favor readability</strong>: It’s not because a machine can read your code that another human can. Particularly when working with multiple people on a project, always favor readability over conciseness. There’s no point in having concise code if people don’t understand it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*65zcptjYu7VMrkvx.png" /><figcaption>Source: <a href="https://simpleprogrammer.com/clean-code-principles-better-programmer/">Rakesh Shekhawhat</a></figcaption></figure><h3>Conclusion</h3><p>Whoa, didn’t know we could get so much into clean code that fast. Well that is basically what we need to know about clean codes. The most important thing to do is staying true to the characteristics. And following the principles specified would make you walk closer to the glorious path of Clean Code-ism. Well, that’s about it for Clean Code. It’s me, signing off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*BlSEzrMIUPAZjG6DiC17xg.gif" /></figure><blockquote>Adeus~</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96a85c623bd4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ukm-heroes/cle-an-co-de-96a85c623bd4">Cle·an Co·de</a> was originally published in <a href="https://medium.com/ukm-heroes">UKM Heroes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sterilize Your Code]]></title>
            <link>https://medium.com/ukm-heroes/sterilize-your-code-f2a112184d7a?source=rss----9354f0504da2---4</link>
            <guid isPermaLink="false">https://medium.com/p/f2a112184d7a</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Maria Aprillia Devira]]></dc:creator>
            <pubDate>Thu, 21 Nov 2019 17:53:57 GMT</pubDate>
            <atom:updated>2019-11-21T17:53:57.635Z</atom:updated>
            <content:encoded><![CDATA[<h4>[Its finally time…]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*mUqXpO0Hrnj68OW7RqA3Ng.png" /></figure><p>Not all codes can be classified as what we call a <strong>Clean Code</strong>. So, <strong>what exactly counts as a clean code? </strong>Well, to be frank clean code is quite subjective and every developer has different views on what counts as a clean code. Although there are some ideas that they call the best practices, but there is no definitive way to describe a clean code. If I would give it a general kind of <em>description </em>of clean code and also summarize it in a sentence, it would be:</p><blockquote>Clean code is a code where everyone can easily understand it and change it</blockquote><p>This would mean that no matter who reads the code they would understand the flow of the entire code, what each class does and know how different objects work with each other. The code would be less of an infuriating read and more of an pleasing read to the readers.</p><h3>Why Care?</h3><p>After knowing what clean code is, <strong>why would you care about it? </strong>A simple answer would be that the code you’ve made would not always be seen by only you. Other people who are collaborating with you would also need to understand your code so that they could easily add changes to the code without always going to you to ask <em>“What is this object used for?”</em> or <em>“What does this method do?”</em>. You might think it would be fine for them to ask questions about your code, but if they have exactly zero understanding of your code their questions would get very old real fast and would annoy you instead. <strong>No one would want that right? </strong>With clean code, you would have shaved quite the amount of time that would normally be spent by your co-workers mulling over your code and wasting your time with questions. Hence, clean code would also effectively increase productivity.</p><p>Then what if you don’t have collaborators? Do you still need to implement clean code? The answer to that would be a <strong>resounding YES! </strong>Clean code would most definitely make you life easier, since you would not need to take long to realize what object ‘d’ does. Even though you made the code <strong>does not mean</strong> that you would always know what each dirty code is. We are all but flawed human beings and not machines. Clean code helps us write like one.</p><h3>So How Do We Do It?</h3><p>As I’ve mentioned previously, although there is no exact definition of clean code there are some best practices. Here I shall talk about those best practices, but first I would like to introduce some <strong>Clean Code Principles</strong>.</p><ul><li><strong>KISS,</strong> Keep It Simple Stupid. You do not need to make everything unnecessarily complicated, strive for simplicity by asking “can this be written in a simple way?”.</li><li><strong>DRY</strong>, Don’t Repeat Yourself. Everything should have ONE clear representative.</li><li><strong>YAGNI</strong>, You Aren’t Gonna Need It. You should not add functionality that is not going to be used right away.</li><li><strong>Composition over inheritance</strong>, design based on their use and not what they are.</li><li><strong>Favor readability</strong>, write in a way so that other people would understand it.</li><li><strong>Practice consistency</strong>, if you decide to do things a certain way try to keep doing it throughout the code. If you can’t then comment on it so no one would be confused.</li></ul><p>So with that out of the way, what are the best practices that counts as a clean code? Well here are some practices that you can do to at least be able to write a clean code.</p><ul><li><strong>Use easily understood names for variables and methods. </strong>Some of you might feel a bit lazy while typing codes and tend to abbreviate variable. Avoid those habits.</li><li><strong>Use name to show intention</strong>. Instead of naming object or methods with one letter, such as d or n, name it as what it does.</li><li><strong>Don’t be innovative, be simple</strong>. Your code is not the place where you can be all clever, especially regarding naming. Use names that all can understand and don’t make it an inside joke.</li><li><strong>Be consistent.</strong></li><li><strong>Use a consistent naming conventions.</strong> There are multiple ways on doing this, such as the camelHumpMethod or ANY_OTHER_METHOD.</li><li><strong>Make the functions clearly understood.</strong> Keep them as short as possible, an ideal length would be around 15–20 lines but it could go longer so long as the code is kept clean.</li><li><strong>Keep arguments less or equal to three.</strong></li><li><strong>Don’t comment on code.</strong> If your code needs to be commented its explanation, refactor your code.</li><li><strong>Don’t repeat code or hard code if possible.</strong></li></ul><p>Those would be some practices you can apply by yourself to creating a clean code and you go. After finishing the code, you might also want to review the code by yourself and then review it with your colleagues. This would give you more insights and suggestions that you or you colleagues can bring up during the review process.</p><h3>Conclusion</h3><p>As you can see, clean code is quite important because it increases the readability of your code. It would not matter even if you code for yourself, there would be times where those abbreviations and dirty naming conventions would be lost to you. Clean code does not only benefit those who would read your code but also yourself, since… you also read your code. There also exists another way of completely sterilizing your code, namely by using TDD but that would be a topic for another time.</p><p>That would be all for me regarding the clean code. Next, I planned to cover the topic of TDD, but that could be changed. I should see you all in TDD…probably.</p><blockquote>Goodbye for now my children…</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2a112184d7a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ukm-heroes/sterilize-your-code-f2a112184d7a">Sterilize Your Code</a> was originally published in <a href="https://medium.com/ukm-heroes">UKM Heroes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Refactoring and Design Pattern]]></title>
            <link>https://medium.com/ukm-heroes/refactoring-and-design-pattern-4d6d4435fea1?source=rss----9354f0504da2---4</link>
            <guid isPermaLink="false">https://medium.com/p/4d6d4435fea1</guid>
            <dc:creator><![CDATA[Ilman Nafian]]></dc:creator>
            <pubDate>Thu, 21 Nov 2019 09:54:41 GMT</pubDate>
            <atom:updated>2019-11-21T09:54:41.543Z</atom:updated>
            <content:encoded><![CDATA[<h4>Power of communication</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3DRhsWA1SPSm-4LPSvF4nw.jpeg" /></figure><p>Last semester, we were first introduced to the world of design pattern and refactoring. We learned about many common design pattern for each of the category, and we also learn how to refactor our code. A very interesting course I must say, would recommend everyone to try to learn it. Now that we are working on multiple project for different courses, the more I realize the importance of design pattern and refactoring.</p><h3>Design Pattern</h3><p>When developing our code, we will, at some point, encounter a problem. There is a high chance that the problem that we encounter is already solved by other developer. When a problem is encountered a lot, a pattern will eventually recognized by some people, these pattern will then be a design pattern.</p><blockquote><strong>Design patterns</strong> are typical solutions to commonly occurring problems in software design. They are like pre-made blueprints that you can customize to solve a recurring design problem in your code.<strong> — refactoring guru</strong></blockquote><h4>When to use it</h4><p>Whenever you can, whenever your problem suited the pattern. All design pattern is a best practice, hence why it is better to use it whenever applicable. Using a design pattern in your code will ease your development cycle. I forgot where did I read this but I’ve read that most important thing about design pattern is the power of communication, not just the fact that it solve your problem. Imagine when you are working with other developer. When you use a pattern in one of your code, you can just say to that dev that you use a pattern, that dev should understand what do you mean easily.</p><h4>The patterns</h4><p>There are many recognized patterns, even when I learn about design pattern, we only cover like half of the most common one. Also, due to the nature of our current project, UKM Indonesia, a website that use serverless Angular, we don’t use that many patterns. So I’ll talk about some patterns that we do use and also some that I’ve already learned.</p><h4>Singleton</h4><p>A singleton, just like it’s name, is a pattern where an object has only one instance of itself. This pattern is useful when you want to have only one instance of an object, be it for data integrity purpose or any other needs. Singleton is useful when you have multiple object that access an object. Instantiating that object many times can come at a cost. By using singleton pattern, we only need to instantiate the object only once. The way singleton works is that usually, the object will have a static method that can be called without instantiating the class first. That method will check whether an instance of that class is exist or not, if no then create one, then return. If an instance is exist however, it would return that instance immediately. Here is an example of a singleton class in Java.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/02c36e3bc9a7e1deb9988562e26eb641/href">https://medium.com/media/02c36e3bc9a7e1deb9988562e26eb641/href</a></iframe><h4>Dependency Injection</h4><p>One of the pattern that I learned by programming is the dependency injection. I first tried this pattern when I was developing a <a href="https://spring.io/">Spring Boot</a> app. When our application get bigger and bigger, it’ll become a hassle when a class or a service require many dependencies. We will need to instantiate all those dependencies. There is a couple downside of this like the fact that to some degree, you need to know how the dependency work. That means that if that a dependency require another dependency, we also need to instantiate them.</p><p>Dependency injection help with, well, inject the dependency. There is an object that is called an injector that will scan all injectable object and also all object that needs to be injected. It will then inject those injectable whenever the object is instantiated. In this project we use Angular which does implement dependency injection. Here is how we use it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a6f48cdcf22efc4a7d78b0f32b6e27a6/href">https://medium.com/media/a6f48cdcf22efc4a7d78b0f32b6e27a6/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d86d2917b34a2c4005daadd3dd2ef8e4/href">https://medium.com/media/d86d2917b34a2c4005daadd3dd2ef8e4/href</a></iframe><p>Here I have an authentication service and a component that needs it. I can just declare the class that I want to be injected in the constructor. The internal of Angular will handle the injection. Then when I need the instance, I can just reference it. The way I declared that SignUpComponent need the service is by declaring it in the constructor argument. This is called a constructor injection. There are two other method to inject which is method injection and property injection.</p><h4>Facade</h4><p>One of the library we use in this project is Amplfy CLI. It is a framework that abstract most of AWS’s services. One of the feature of the CLI is that you can generate the entire GraphQL schema in AppSync into a service. The downside of this is that the service contains thousands of lines (at least ours). Developers that doesn’t involved in building the AppSycn API won’t understand the code. So I tried to create a service that helps front-end people using the API so that they can spend more time creating a beautiful website.</p><p>Unfortunately, we ditched AWS. So here an unfinished example of facade pattern.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a0dc3fef824f1c7030eaca78f6c951de/href">https://medium.com/media/a0dc3fef824f1c7030eaca78f6c951de/href</a></iframe><p>Our content object is created by UKM’s developer. It is quite weird I must say, but let just ignore it. There is a content table, a table containing the data for that object, and a few attributes table. The code snippet above only get the content and the data because again, it is an unfinished code. By abstracting the API, other developer don’t need to worry about the structure of the API. By using Facade pattern, we also decouple the front-end with the library, thus improving maintainability.</p><h3>Refactoring</h3><p>I already created a blog about clean code and refactoring, it is an activity that does not change the code algorithm and design but instead, it improves the cleanliness of the code. Refactoring is an important cycle in software development. Without it, it is hard to maintain our code.</p><p>We do refactoring after we finish making our code passed the RED TDD cycle. If we found part of the code that can be improved by applying design pattern or generally better algorithm, we also do refactoring.</p><h3>Conc</h3><p>That is all for now. There are many other patterns that I need to learn. If you are interested on learning more, try seeing my code for last semester’s courses where we learn about design pattern, clean code, and refactoring, <a href="https://gitlab.com/ilmannafian04/adrog-lab">Advanced Programming</a>.</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d6d4435fea1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ukm-heroes/refactoring-and-design-pattern-4d6d4435fea1">Refactoring and Design Pattern</a> was originally published in <a href="https://medium.com/ukm-heroes">UKM Heroes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>