<?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 Geoffrey Aaron on Medium]]></title>
        <description><![CDATA[Stories by Geoffrey Aaron on Medium]]></description>
        <link>https://medium.com/@mv-geoffrey-aaron?source=rss-5dfb2243db79------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5JW637epqwKlNHpHpMZC_Q.jpeg</url>
            <title>Stories by Geoffrey Aaron on Medium</title>
            <link>https://medium.com/@mv-geoffrey-aaron?source=rss-5dfb2243db79------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:48:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mv-geoffrey-aaron/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[…Ops: DevOps, MLOps, DevSecOps, DataOps (Part 2. )]]></title>
            <link>https://mv-geoffrey-aaron.medium.com/ops-devops-mlops-devsecops-dataops-part-2-daeab92f6e2f?source=rss-5dfb2243db79------2</link>
            <guid isPermaLink="false">https://medium.com/p/daeab92f6e2f</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[sagemaker]]></category>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Geoffrey Aaron]]></dc:creator>
            <pubDate>Mon, 28 Nov 2022 10:09:15 GMT</pubDate>
            <atom:updated>2022-11-28T10:11:59.750Z</atom:updated>
            <content:encoded><![CDATA[<h3>…Ops: DevOps, MLOps, DevSecOps (Part 2)</h3><p>Lets talk about …Ops stuff in Amazon Web Service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nZzawhf862i04hoWzZWAsA.png" /><figcaption><strong>DevOps, DevSecOps, and MLDevOps</strong></figcaption></figure><p>Sometimes, we are wondering how to accelerate product development journey in Technology Industry. The answer for this era is <strong>Agile</strong>. What does exactly Agile mean ?</p><p>Based on agilealliance, <strong>Agile </strong>(ag·ile /ˈajəl/) is the ability to create and respond to change. It is a way of dealing with, and ultimately succeeding in, an uncertain and turbulent environment. Agile culture is very important to be adopt when we are working in the large-scale development and giving the best customer journey with our product.</p><p>It is very hard to adopt Agile Culture without any concrete methodology, since the agile word is very broad. To help us to understanding the agile culture, in this world community, especially for software/product development, is develop some methodologies which can we follow, there are DevOps, DevSecOps, and MLOps. Lets we discuss one by one and how Amazon Web Service help us to adopt those methodologies</p><h4>MLDevOps</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8IW-DboxBjF6qQhlNFUQDg.png" /><figcaption><strong>MLDevOps Illustration</strong></figcaption></figure><p>MLOps, Machine Learning Operations, is a set of practices which is adopted from DevOps concept for Machine Learning Development that aims to deploy and maintain machine learning models in production reliably and efficiently. Normally, Machine learning models are tested and developed in isolated experimental systems. When an algorithm is ready to be launched, MLOps is practiced between Data Scientists, DevOps, and Machine Learning engineers to transition the algorithm to production systems.</p><p>MLOps’s concept seeks to increase automation and improve the quality of production models, while also focusing on business and regulatory requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*L2ZMhV9JSgZdoVTNxckFPA.png" /><figcaption>MLOps Cycle</figcaption></figure><p>MLOps applies to the entire cycle — from integrating with model generation, orchestration, and deployment, to health, diagnostics, governance, and business metrics.</p><h4>MLDevOps Architecture Reference in AWS</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wj1ZbvvlTKXSfUan-vbetA.png" /><figcaption>Simple MLDevOps Architecture Reference</figcaption></figure><p>Realising MLOps concept in AWS, we can use Code Series services with SageMaker. To make it more scalable and convenience , we can use some serverless services to setting up our SageMaker. With those integration, ML Engineer team does not need to touch AWS Console, fully agile.</p><p>First of all, to make our MLOps become agile process, We should prepare Infrastructure as a Code to provision Orchestrator. By having IaC, if we have new step or feature, we can change it immediately by adding some lines on code. Component of the Orchestrator are AWS Code Series; for the CI/CD the ML, S3; as the storage, and SageMaker; as the place to do al ML stuff.</p><p>After prepare the Orchestrator, we can start to use this MLOps to develop our model with automatic. By just upload the code and data set for developing the ML, we can review and improve the result in continuity.</p><h4>Good new from AWS</h4><p>Previously, we will implement the MLOps base on Architecture above. Now AWS already provided new services for us to adopt MLOps culture easier. By using SageMaker MLOps service, we can adopt the MLOps without worry to prepare all pipeline from various services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MO8uI-uskAglLdBa9pXlYg.png" /><figcaption>Sagemaker vs Customize Component for MLOps</figcaption></figure><p>By utilise SageMaker Services, we do not have to worry and confuse to select which tools for MLOps flow.</p><p>To adopt MLOps, we only need 3 services from SageMaker family; SageMaker Pipeline; to build a repeatable and consistent process for deploying model, SageMaker Projects; to provide end to end traceability CI/CD of ML, and SageMaker Model Registry; to manage all your models by creating model package groups which we tracks all of the models that we train to solve a particular problem.</p><p>For tutorial to utilise SageMaker Services, please look on this link: <a href="https://aws.amazon.com/getting-started/hands-on/machine-learning-tutorial-mlops-automate-ml-workflows/">https://aws.amazon.com/getting-started/hands-on/machine-learning-tutorial-mlops-automate-ml-workflows/</a></p><p><em>The Last part will come out as soon as possible…</em></p><p>If you want to explore other cool blogs of technologies, please stay tune on <a href="https://medium.com/ecloudture"><strong><em>eCloudture Medium</em></strong></a><strong><em> !!!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daeab92f6e2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[…Ops: DevOps, MLOps, DevSecOps, DataOps (Part 1)]]></title>
            <link>https://mv-geoffrey-aaron.medium.com/ops-devops-mlops-devsecops-dataops-part-1-713dcb975d1d?source=rss-5dfb2243db79------2</link>
            <guid isPermaLink="false">https://medium.com/p/713dcb975d1d</guid>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-codepipeline]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[devops-tool]]></category>
            <dc:creator><![CDATA[Geoffrey Aaron]]></dc:creator>
            <pubDate>Mon, 12 Sep 2022 05:28:11 GMT</pubDate>
            <atom:updated>2022-11-28T10:11:33.607Z</atom:updated>
            <content:encoded><![CDATA[<h3>…Ops: DevOps, MLOps, DevSecOps (Part 1)</h3><p>Lets talk about …Ops stuff in Amazon Web Service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nZzawhf862i04hoWzZWAsA.png" /><figcaption><strong>DevOps, DevSecOps, and MLDevOps</strong></figcaption></figure><p>Sometimes, we are wondering how to accelerate product development journey in Technology Industry. The answer for this era is <strong>Agile</strong>. What does exactly Agile mean ?</p><p>Based on agilealliance, <strong>Agile </strong>(ag·ile /ˈajəl/) is the ability to create and respond to change. It is a way of dealing with, and ultimately succeeding in, an uncertain and turbulent environment. Agile culture is very important to be adopt when we are working in the large-scale development and giving the best customer journey with our product.</p><p>It is very hard to adopt Agile Culture without any concrete methodology, since the agile word is very broad. To help us to understanding the agile culture, in this world community, especially for software/product development, is develop some methodologies which can we follow, there are DevOps, DevSecOps, and MLOps. Lets we discuss one by one and how Amazon Web Service help us to adopt those methodologies</p><h3>DevOps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*6N1mLIoff40EAOVmJc4HDg.png" /><figcaption><strong>DevOps Illustration</strong></figcaption></figure><p><strong>DevOps</strong> is a combination of the terms <strong>Dev</strong>elopment and IT <strong>Op</strong>eration<strong>s</strong>, meant to represent a collaborative or shared approach to the tasks performed by a company’s application development and IT operations teams. DevOps is also can be defined as combination of cultural, engineering practices and patterns, and tools that increase an organisation’s ability to deliver applications and services at high velocity and better quality.</p><p>DevOps contains with several principles: Create with the end in mind, Customer-centric action, Continuous Improvement, Automation, and Collaboration.</p><p>To implement DevOps culture in software development cycle, CI/CD are main key point to adopt DevOps. CI/CD can be pictured as unity process in the pipeline where new code is submitted on one end, tested over a series of stages (source, build, staging, and production), and then published as production-ready code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*MjmiWGBbEqUQAoQ7noTFWA.png" /><figcaption><strong><em>Diagram of CI/CD Pipeline</em></strong></figcaption></figure><p>There are several AWS Services can be used for DevOps Journey, there are Code Artifact, CodeCommit, CodeBuild, CodeDeploy, and CodeePipeline~</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*inVRBryh_niZD5fDPXaVbg.png" /><figcaption>AWS Services for DevOps Journey</figcaption></figure><p>If would like to try end test for DevOps Lab and Tutorial in AWS, let refer to this <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials.html">link</a> ~</p><h3>Deployment Methods</h3><p>By choosing the correct deployment method, we can ensure customer satisfied with our application. One of the main key to choose deployment method is our business model. Let’s take a look various deployment methods can we use to deliver application to user.</p><h4>In-Place Deployments</h4><p>In this strategy, we will deploy all new version of application at once and replace all the previous version. If there are any problem with our application, the way to rollback to previous version is by re-deploying the previous version again. With this deployment method, it will have high risk and long down time of application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*ZdjybQ7-9dBAiLiXDtN-VA.jpeg" /><figcaption>Illustration of In-Place Deployments</figcaption></figure><h4>Blue/Green Deployments</h4><p>Another method we can use is <strong>Blue/Green Deployments</strong>, it is method for releasing the new version of application by deploying the exact same capacity as previous version and shifting the traffic at once to the new application version. This method will help to minimise downtime during application updates mitigating risks surrounding downtime and rollback functionality. It is called by Blue/Green because we can assume the Green is your new application version and Blue is the previous version of your application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*JGtt7jfPXDxeLgY_6W3eJQ.jpeg" /><figcaption><em>Illustration of Blue/Green Deployments</em></figcaption></figure><h4>Canary Deployments</h4><p>This deployment is similar with blue/green strategy but reduce the risk of bad user experience. This deployment can be done by deploying the exact same capacity as previous version and shifting the few percentages of user traffic to the new application version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*emA8IeusqoHBZJz1oktxMQ.jpeg" /><figcaption><em>Illustration of Canary Deployments</em></figcaption></figure><h4>Rolling Deployments</h4><p>Deployment also can be done by grouping and dividing full set application into small portions to make sure isn’t updated to new version at once. While we are doing this deployment, it might have possibility in set of application will run the new and old version in the same time. This method allows to reduce the downtime update until zero. If the deployment of new application is failed, only the updated portion of the cluster will be affected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*9CGYgrPyeYV_DyIxYOb8jw.jpeg" /><figcaption><em>Illustration of Rolling Deployments</em></figcaption></figure><p><em>Part 2 will come out as soon as possible…</em></p><p>If you want to explore other cool blogs of technologies, please stay tune on <a href="https://medium.com/ecloudture"><strong><em>eCloudture Medium</em></strong></a><strong><em> !!!</em></strong></p><p>To get more detail about DevOps, please visit <a href="https://www.ecloudvalley.com/en">eCloudvalley</a> to get DevOps Whitepaper~</p><p>Resource:</p><ul><li><a href="https://www.dynatrace.com/news/blog/what-is-devops/">https://www.dynatrace.com/news/blog/what-is-devops/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=713dcb975d1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Don’t We Just Call It Directly with “gRPC” ?]]></title>
            <link>https://medium.com/ecloudture/why-dont-we-just-call-it-directly-with-grpc-c9f86afaf0a4?source=rss-5dfb2243db79------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9f86afaf0a4</guid>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[grpc]]></category>
            <category><![CDATA[ecloudture]]></category>
            <dc:creator><![CDATA[Geoffrey Aaron]]></dc:creator>
            <pubDate>Wed, 15 Sep 2021 01:40:06 GMT</pubDate>
            <atom:updated>2022-01-04T06:51:08.906Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Don’t We Just Call it Directly with “gRPC”?</h3><blockquote>Let’s make The Coolest Distributed Applications and Services</blockquote><p>As developers, we can join with “<strong>FAANG</strong>” (Facebook, Amazon, Apple, Netflix, and Google), one of our wanted dreams to achieve. Maybe some people around us already got that ticket, but not a few of them are still trying to get that “<strong>golden ticket.” </strong>We can get many benefits by joining one of that “Big Five” Tech companies, one of which is the latest technology in this era. Wondering how they can manage an extensive scale application with almost zero downtime makes all developers want more to join their team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*1MLrDHYg7i0yTRFR_zWh4g.png" /><figcaption><strong>FAANG </strong>(Facebook, Amazon, Apple, Netflix, and Google)</figcaption></figure><blockquote><strong>If you want to go fast, go alone</strong></blockquote><blockquote><strong>if you’re going to go far, go together</strong></blockquote><p>Maybe hard to get “<strong>FAANG</strong>” all secret recipes about how they manage their fantastic app, but one thing that they give to the public is their application architecture use <strong>Microservice</strong>. <strong>Microservice</strong> is one of the architecture styles with a service-oriented structure, consisting of a collection of small independent services. Each service is self-sustaining and should perform a single business capability within a bounded connection. We can get significant benefits from Microservice: <strong>Easier to build and maintain</strong>, <strong>Robust and Scalable</strong>, <strong>Continuously delivering faster than before</strong>, <strong>Resilient</strong>, <strong>Loosely Coupled</strong>, and still a lot more else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*YVilYO4txm3ovK1mETYEvw.png" /><figcaption>Illustration Microservice</figcaption></figure><p>In a team, communication is essential. How each member’s team communicates with each other should be <strong>efficient</strong>, <strong>fast</strong>, and <strong>direct</strong>. <strong>Microservice</strong> is also the same. Communication between services in <strong>Microservice</strong> architecture is a crucial thing that we need to manage. To manage Microservice, it will have an extensive operational load, but it is worth it compared to its benefits. based on this <a href="https://www.cncf.io/case-studies/netflix/">blog</a>, Netflix put trust in <strong>gRPC</strong> for their internal services communication in their <strong>Microservice</strong> architecture. <strong>gRPC</strong> is an open-source, high-performance <strong>Remote Procedure Call (RPC) framework</strong> developed by Google that can run in any environment and language. It can efficiently connect services in and across data centers and microservice apps with pluggable support for load balancing, tracing, health checking, and authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wwnkBmByI7Yk18OC.png" /></figure><p>With <strong>gRPC</strong>, client services can directly call a method on a server application on a different machine and different language as if it were a local object, making it easier for you to create distributed applications and services. <strong>gRPC</strong> uses ideas by defining a service, specifying the methods to be called remotely with their parameters and return types that have been decided before in the <strong>proto</strong> file. The services implement the interface in <strong>proto</strong> and run a gRPC server to handle client calls on the server services. The clients have a stub that provides the same methods as the server services have on the client services. By default, language that gRPC uses is <a href="https://developers.google.com/protocol-buffers/docs/overview">Protocol Buffers</a>. Protocol buffers is the language which is developed by Google.</p><p>It’s heard so scary and complicated, but actually that just as simple as like we create Monolith Architecture. Let’s get our hands on.</p><h3>Talk Less, Practice More !!</h3><p>In this blog, we will make a simple application to order food with Microservice Architecture with internal communication using gRPC. Maybe request food application, but it will need many services, for example, <strong>Check Food Store and Check User Profile</strong>. From now on, we are only going to check user profiles and food stores. If you want to contribute or scale the example, just fork or send PR to this <a href="https://github.com/mvgeoffreya/gRPC-Order-Food">Github</a>. Without any further ado, let’s started. Replace relative path on user data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*LG3TmTozaeDUxT7ytAkxgQ.png" /><figcaption>Scenario</figcaption></figure><p>To start this project, we should install all necessary dependencies. We need install <a href="https://golang.org/dl/"><strong>Go</strong></a>, <a href="https://dotnet.microsoft.com/download"><strong>.Net</strong></a>, and <a href="https://grpc.io/"><strong>gRPC generator</strong></a>. We will use <strong>Go</strong> language for server services and <strong>.Net </strong>for client services.</p><p>After install all necessary dependencies, let we create <strong>proto</strong> file. <strong>Proto</strong> File is file to define a service definition. In that file we will define all <strong>request</strong>, <strong>response</strong>, <strong>message</strong>, and <strong>direction of communication</strong> type. In this scenario, we will create 3 proto files; <strong>common</strong>, <strong>foodStore</strong>, and <strong>UserProfile.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*Sjtzy1tFVeQuoZqm0wOCUg.png" /><figcaption>common.proto</figcaption></figure><blockquote><strong><em>common.proto </em></strong><em>is</em><strong><em> </em></strong><em>for defining enum and message type</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*m52QO3jFZ8e-jVnNp6A5bg.png" /><figcaption>foodStore.proto</figcaption></figure><blockquote><strong><em>foodStore.proto </em></strong><em>is</em><strong><em> </em></strong><em>for defining FoodStore service</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*7TM4g8UWMFJlBKDl9FjsJw.png" /><figcaption>userProfile.proto</figcaption></figure><blockquote><strong><em>userProfile.proto </em></strong><em>is</em><strong><em> </em></strong><em>for defining user profile service</em></blockquote><p>We have created 3 proto files to define message and method type between services. Next step we will create server service for userProfile and foodStore. we will use Go language to build our server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*ScxzhbN4XTZPsUD-3x8obg.png" /><figcaption>foodStore service</figcaption></figure><blockquote><strong><em>foodStore</em></strong><em> service is for get food store data</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*5YkvPlBFR1aOtgHs2tPZSw.png" /><figcaption>userProfile service</figcaption></figure><blockquote><strong><em>userProfile</em></strong><em> service is for get user data</em></blockquote><p><strong>Proto</strong> and Server are done. Last service that we need to create is Client to order food. We will use <strong>.Net</strong> to be our client service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*PUcPWbdya2SYn51jNKVeJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*o4cto6xhQ0H-vY-VlcyOUA.png" /><figcaption>Client (left) and Controller (right)</figcaption></figure><p>As we can see pictures above, we call the server method directly from the client, e.g., Monolith Architecture.</p><h3>The Moment of The Truth !!</h3><p>After everything is ready, we can run our app. To run our Server services, we can use :</p><pre>go run main.go</pre><p>And for Client service:</p><pre>dotnet run</pre><p>Server done, Client done, so let’s call the endpoint. You can call the API http://localhost:5000/Food/1 to test it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*sYd2GWB2ivN0Upxg1bvjyQ.png" /><figcaption>Result when we call <a href="http://localhost:5000/Food/1">http://localhost:5000/Food/1</a></figcaption></figure><p>One of the Microservice benefits is that when a service goes down, we still can call the API without having the response Internal Server Error 500. Let’s close one of our Server services, userProfile server. We call it again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*d33F2FJ2HxiqToZ0Ou9KmA.png" /><figcaption>Result when userProfile Server down</figcaption></figure><blockquote>Where is the ordering part? We only check data of user and food store</blockquote><p>This application hasn’t completed yet. You can complete this application by yourself! Please contribute to this <a href="https://github.com/mvgeoffreya/gRPC-Order-Food">Github</a> or fork the repo and scale it. Order to complete this app is your challenge!</p><p>If you want to explore other cool blogs of technologies, please stay tune on <a href="https://medium.com/ecloudture"><strong><em>eCloudture Medium</em></strong></a><strong><em> !!!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9f86afaf0a4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ecloudture/why-dont-we-just-call-it-directly-with-grpc-c9f86afaf0a4">Why Don’t We Just Call It Directly with “gRPC” ?</a> was originally published in <a href="https://medium.com/ecloudture">eCloudture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Svelte, A New Challenger in Frontend World]]></title>
            <link>https://medium.com/ecloudture/svelte-a-new-challenger-in-frontend-world-ef939be4561a?source=rss-5dfb2243db79------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef939be4561a</guid>
            <category><![CDATA[sveltekit]]></category>
            <category><![CDATA[svelte]]></category>
            <category><![CDATA[ecloudture]]></category>
            <category><![CDATA[sveltejs]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Geoffrey Aaron]]></dc:creator>
            <pubDate>Tue, 29 Jun 2021 09:02:28 GMT</pubDate>
            <atom:updated>2022-01-04T06:51:06.886Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>“What new technology does is create new opportunities to do a job that customers want done.” — </em></strong>Tim O’Reilly<strong><em> —</em></strong></p><p>Since the 20th century, Web Development has been growing so fast. Start from Hypertext in 1969; and then HTML-HTTP; until one of the famous Web Programming Language, PHP in 1994; Javascript in 1996; and continued growing until 2013, Facebook founded the Second Most Popular Web Framework, React, based on <a href="https://insights.stackoverflow.com/survey/2020#technology-web-frameworks">Stack Overflow Developer Survey 2020</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*60oUGT5m8lUfMEy0vXxT7Q.jpeg" /></figure><p>To defeat the traditional technology, such as Vue, Angular, React, or Amber; Svelte comes to beat them. Svelte was founded in 2016 by Rich Harris. Svelte is a radically novel approach to building Web Frontend. It isn’t like the traditional frameworks, like React, do the bulk of their work in the <em>browser</em>, Svelte shifts that work into a <em>compile step</em> that happens when you build your Web app. Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically updates the DOM when the state of your app changes.</p><p>Svelte has 3 significant points that make it so gorgeous than another framework, there are:</p><h4>Write less Code</h4><p>The problem that developers usually face <em>is “Buggy-Code.” </em>Buggy-Code is the way developers write code using poor coding practices and/or poor testing practices. Their code is likely to have a greater-than-average number of bugs and/or is difficult to maintain without introducing bugs. Therefore, it stands to reason that the more code you have to write, the “<em>Buggier”</em> your apps will be.</p><p>Another reason we need to write code as few as possible is that writing more code will consume more time. If we waste time coding, it will make us have less time for other things, such as optimisation, creating additional features, etc.</p><p>Let’s see why Svelte has a point <strong><em>“Write less Code”</em></strong></p><p>On React, when we need to write a simple counter, it will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TC1cQ0Z6Yjg1SIVIkPdMXA.png" /></figure><p>But on the Svelte, it will look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*q-n7rwmigdFGE8hz41Vo4g.png" /></figure><h4>No Virtual DOM</h4><p>Another point that makes Svelte a radically novel approach to building Web Frontend is that Svelte doesn’t use Virtual DOM. As we know, the traditional system uses Virtual DOM diffing. “<a href="https://twitter.com/pcwalton/status/1015694528857047040"><strong><em>Diffing isn’t free</em></strong></a><strong><em>”</em></strong>. The browser must do extra work to convert those declarative structures into DOM operations, using techniques like virtual DOM diffing that eat into your frame budget and tax the garbage collector. You can’t apply changes to the actual DOM without first comparing the new virtual DOM with the previous snapshot. Svelte is a compiler. Svelte doesn’t need to use Virtual DOM diffing to do it. Svelte knows how things could change in your app at <em>build time</em>, rather than waiting to do the work at <em>runtime</em>.</p><h4>Rethinking Reactivity</h4><p>The last point that makes Svelte is so unique is “<strong><em>Rethinking Reactivity.” </em></strong>Svelte has a novel approach to make Frontend Framework is more reactive and easy to develop. On the first time, they use API to make State management, such as this.state. As time goes by, they realise that using API makes some unnatural code and creates unnecessary work for the garbage collector.</p><blockquote>“What kind of API would work for us?” The best API is no API at all!!</blockquote><p>So, They move the reactivity into the language instead of API. With Svelte, Updating some state value should be as simple as just updating variable; it will look like:</p><pre>state= +1</pre><p>Since Svelte is a compiler, the behind the scenes will look like:</p><pre>state += 1; $$invalidate(&#39;state&#39;, state);</pre><p>If you want to explore other cool blogs of technologies, please stay tune on <a href="https://medium.com/ecloudture"><strong><em>eCloudture Medium</em></strong></a><strong><em> !!!</em></strong></p><p>ref: <a href="https://svelte.dev/">svelte</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef939be4561a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ecloudture/svelte-a-new-challenger-in-frontend-world-ef939be4561a">Svelte, A New Challenger in Frontend World</a> was originally published in <a href="https://medium.com/ecloudture">eCloudture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Macros! The Next Level of Rust’s Function]]></title>
            <link>https://medium.com/ecloudture/macros-the-next-level-of-rusts-function-d64dd38def80?source=rss-5dfb2243db79------2</link>
            <guid isPermaLink="false">https://medium.com/p/d64dd38def80</guid>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[rustlang]]></category>
            <category><![CDATA[rust-programming-language]]></category>
            <category><![CDATA[ecloudture]]></category>
            <dc:creator><![CDATA[Geoffrey Aaron]]></dc:creator>
            <pubDate>Tue, 29 Jun 2021 09:01:30 GMT</pubDate>
            <atom:updated>2022-01-04T06:51:04.737Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Write it once, and it always there when you need it…</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wL9FvRCwlO8X0ysJ8348kw.png" /></figure><p>In In last month’s <a href="https://mv-geoffrey-aaron.medium.com/most-loved-languages-in-this-century-rust-d2c039d7c9df">blog</a>, we talk about writing the first our Rust code, “<em>Hello, world!”,</em> like newbies usually do. Inside that program, we used one <em>Macros</em> to print our “<em>Hello, world!”. </em>Do you wonder how Rust print that statement? Don’t need to be discombobulated!! Let’s discuss it in this Blog.</p><h4>First, What are Macros in Rust?!</h4><p>Macros are a way in Rust that can help us write other code. For the Developer community, they knew this method as <em>meta-programming</em>. <em>Meta-programming</em> is very helpful to us when we code a bunch of lines and use it frequently. With that, we can reduce the amount of code we have to write and maintain.</p><blockquote>Wait, a minute! What’s the difference with general function?</blockquote><p>The general function may help us reduce the amount of code we have to write and maintain if we use it frequently. But on the other hand, when we code the general function, the number and type of parameters the function is had to be declared first. Because of that point, it makes Macros is more special than general functions. Macros haven’t that limitation. For example, when we want to print a statement, we can use do it like:</p><pre>println!(&quot;Hello, world!&quot;);</pre><p>There is another way to use println!:</p><pre>println!(&quot;Hello, {}!&quot;, world);</pre><h4>Talk Less, Practice More !!</h4><p>It will be hard to understand all theories and understanding above without practice. Now let’s do one typical example that we will use in any kind of program.<br>When we want to declare Vector data with default values, we will write it like this:</p><pre>let mut vec_data = Vec::new();<br>vec_data.push(1);<br>vec_data.push(2);</pre><p>If every program or function needs to declare Vector data with default values, the way we use above is very inconvenient. The best way to solve it is by using <em>Meta-programming / Macros. </em>We can write a Macro to help us declare Vector data, for example:</p><pre>#[macro_export]<br>macro_rules! vec { ($( $x:expr ),* ) =&gt; { <br>  {<br>    let mut vec_data = Vec::new();<br>    $(<br>      vec_data.push($x);<br>    )*<br>    vec_data<br>  }<br>};}</pre><p>With the macro code above, now we don’t need to push one by one every time we declare Vector data with default values. How we use the macro code above will be like this:</p><pre>let v: Vec&lt;u32&gt; = vec![1, 2];</pre><p>If we solve it with a general function, we need to decide the parameter with specific values and types that will limit our input.</p><p>Now you should understand the basics of <em>Macros </em>/ <em>Meta-programming </em>in Rust.</p><p>If you want to explore other cool blogs of technologies, please stay tune on <a href="https://medium.com/ecloudture"><strong><em>eCloudture Medium</em></strong></a><strong><em> !!!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d64dd38def80" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ecloudture/macros-the-next-level-of-rusts-function-d64dd38def80">Macros! The Next Level of Rust’s Function</a> was originally published in <a href="https://medium.com/ecloudture">eCloudture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Most Loved Languages in This Century, Rust]]></title>
            <link>https://medium.com/ecloudture/most-loved-languages-in-this-century-rust-d2c039d7c9df?source=rss-5dfb2243db79------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2c039d7c9df</guid>
            <category><![CDATA[rust-programming-language]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[rustlang]]></category>
            <category><![CDATA[ecloudture]]></category>
            <dc:creator><![CDATA[Geoffrey Aaron]]></dc:creator>
            <pubDate>Wed, 05 May 2021 02:56:27 GMT</pubDate>
            <atom:updated>2022-01-04T06:50:44.529Z</atom:updated>
            <content:encoded><![CDATA[<h4>“Wondering if there is a programming language that is as fast as C/C++ and as safe as Ruby/Python, it would be beyond perfection…”</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eh5NBQtQAJr3w_hv.png" /></figure><p>Based on <a href="https://insights.stackoverflow.com/survey/2020#technology-most-loved-dreaded-and-wanted-languages-loved">Stack Overflow Developer Survey 2020</a>, The Most Loved programming language was achieved by <a href="https://www.rust-lang.org/"><strong>Rust</strong></a>. Since its launch in 2010, Rust has stolen the attention of the developer’s community with its superiority.</p><p>Rust is an open-source programming language focused on <strong><em>safety</em></strong>, <strong><em>speed</em></strong>, and <strong><em>concurrency</em></strong>. With Rust, you can write faster, more reliable software.</p><p>The first appearance of Rust was <strong>on July 7, 2010</strong>. It was created by Graydon Hoare and sponsored by Mozilla Research. Back in 2010, Graydon Hoare presented work on Rust, and he hoped Rust would become a<strong><em> “Memory Safety and More Concurrency”</em></strong> programming language. One of the famous platforms, <a href="https://www.figma.com/blog/rust-in-production-at-figma/"><strong>Figma</strong></a>, already used Rust in their production environment. There are also many organizations using Rust in production, such as <a href="https://www.wired.com/2016/03/epic-story-dropboxs-exodus-amazon-cloud-empire/">Dropbox</a>, <a href="https://medium.com/coursera-engineering/rust-docker-in-production-coursera-f7841d88e6ed">Coursera</a>, etc.</p><h3>Why do we should use Rust ?</h3><p>Even though Rust and C /C++ have almost same speed and performance, the Even though Rust and C /C++ have almost the same speed and performance, the big difference is that Rust is <strong><em>safe by default, </em></strong>which means the rate of successful compile is much higher. Rust will guarantee of correctness of your code than another programming language. With Rust’s characteristics, <strong>statically </strong><em>(all types are known at compile-time)</em> and <strong>strongly<em> </em></strong><em>(these types are designed to make it harder to write incorrect programs), </em>Rust will be perfect for “<strong><em>Hardcore”</em></strong><em>, such as </em>operating systems, device drivers, and embedded systems that might not even have an operating system. However, it’s a very adorable programming language to write standard or web application code.</p><p>Rust makes the best possible machine code with complete control of memory and data. Rust checks all memory and data type accesses. It is <strong>almost impossible</strong> to corrupt memory by accident. With strictly enforcing <strong><em>safe borrowing</em></strong> of data, it makes Rust code “<strong>Beautiful</strong>.”</p><h3>Let’s Get Started with Newbie’s Tradition, Hello World…</h3><h4>First, environment...</h4><p>As usual, we do need to set up an environment for Rust. We’ll download Rust through rustup, a command-line tool for managing Rust versions and associated tools.</p><p>On Linux or macOS, we can install it by open terminal and enter the following command:</p><pre>$ curl --proto &#39;=https&#39; --tlsv1.2 <a href="https://sh.rustup.rs/">https://sh.rustup.rs</a> -sSf | sh</pre><p>For Windows, go <a href="https://www.rust-lang.org/tools/install"><strong><em>here</em></strong></a> and follow the instructions for installation.</p><blockquote>We’ll need the C++ build tools for Visual Studio 2013 or later. The easiest way to acquire the build tools is to install <a href="https://visualstudio.microsoft.com/visual-cpp-build-tools/">Build Tools for Visual Studio 2019</a>.</blockquote><h4>Coding Time !!</h4><p>Rust files always end with the <em>.rs</em> extension. If you want to use more than one word for your filename, you can use an underscore to separate them. For example, <em>hello_world.rs</em>. For now, let’s name it with <em>main.rs</em>.</p><p>The basic structure of Rust code is :</p><pre>fn main() {<br>    println!(&quot;Hello, world!&quot;);<br>}</pre><p>The code above is a <strong><em>main function. </em></strong>The main function is special. As like C/C++, it’s the function that will be called for every executable Rust program. The first line declares a function named main that has no parameters and returns nothing.</p><p>Inside the main function, we have println!(&quot;Hello, World&quot;);. The println!is called a Rust <em>macro</em>, which is how meta-programming is done in Rust (<em>For further explanation please wait for the next month&#39;s blog...</em>). Basically with println!, Rust will print the argument inside, &quot;Hello, World&quot;. The line ends with a semicolon (;). The <strong><em>;</em></strong> indicates that this expression is over.</p><h4>Finish it !!!</h4><p>Save the code, and go back to your terminal window. On Linux or macOS, enter the following commands:</p><pre>$ rustc main.rs<br>$ ./main<br>Hello, world!</pre><p>If you are Windows team, use .\main.exe instead of ./main.</p><pre>&gt; rustc main.rs<br>&gt; .\main.exe<br>Hello, world!</pre><p>If you did see Hello, world!, then congratulations! You’ve finished the Newbie’s Tradition~ Now you have officially become Rust programmer! Welcome!!!</p><p>If you want to explore other cool blogs of technologies, please stay tune on <a href="https://medium.com/ecloudture"><strong><em>eCloudture Medium</em></strong></a><strong><em> !!!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2c039d7c9df" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ecloudture/most-loved-languages-in-this-century-rust-d2c039d7c9df">Most Loved Languages in This Century, Rust</a> was originally published in <a href="https://medium.com/ecloudture">eCloudture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>