<?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 Risina Rasmith on Medium]]></title>
        <description><![CDATA[Stories by Risina Rasmith on Medium]]></description>
        <link>https://medium.com/@rkarisina?source=rss-ecdb5f2d301c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ypdL55h4JHcBnxS0</url>
            <title>Stories by Risina Rasmith on Medium</title>
            <link>https://medium.com/@rkarisina?source=rss-ecdb5f2d301c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 16:30:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rkarisina/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[Create React App from Scratch in 2022]]></title>
            <link>https://medium.com/@rkarisina/create-react-app-from-scratch-in-2022-f9529d898ed9?source=rss-ecdb5f2d301c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9529d898ed9</guid>
            <category><![CDATA[babel]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[create-react-app]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[scratch]]></category>
            <dc:creator><![CDATA[Risina Rasmith]]></dc:creator>
            <pubDate>Sun, 15 May 2022 10:19:40 GMT</pubDate>
            <atom:updated>2022-05-15T10:19:40.097Z</atom:updated>
            <content:encoded><![CDATA[<h4>Building a React app from an empty directory using the latest Webpack and Babel.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-_PcQkPK5BStseqY2y_Cwg.jpeg" /></figure><p>Nowadays, creating react app is as simple as typing ‘create-react-app’ command into the terminal. Create React App doesn’t handle backend logic or databases. it just creates a frontend build pipeline, so you can use it with any backend you want. Under the hood, it uses Babel and Webpack, but you don’t need to know anything about them.</p><p>However, it would be great learning experience to create react app from scratch on your own. Also, some universities advise to students do not use ‘create-react-app’ to create React app for their university projects. So, students had to create react app from scratch.</p><p>In this article there is step-by-step guide to set up a react app from and empty directory using Babel and Webpack.</p><h4>Create Project Directory</h4><p>First create project directory and change directory into it.</p><pre>mkdir my-app<br>cd my-app</pre><p>Next initialize the app with npm to manage all our dependencies. It will create package.json file</p><pre>npm init</pre><h4>Install Dependencies</h4><ul><li>Webpack: bundles all our files into one file</li><li>babel-loader: works with Webpack to transpile ES6+ into ES5 which is supported by older browsers</li><li>@babel/preset-react: extends Babel support to JSX</li><li>html-webpack-plugin: “simplifies the creation of HTML files to serve your Webpack bundles” -https://webpack.js.org/plugins/html-webpack-plugin/</li><li>webpack-dev-server: allows you to use Webpack with a development server that provides live reloading.</li><li>webpack-cli: “webpack CLI provides a flexible set of commands for developers to increase speed when setting up a custom Webpack project.” -https://www.npmjs.com/package/webpack-cli</li><li>css-loader: allows Webpack to convert the CSS file into a JavaScript string.</li><li>style-loader: inserts the JavaScript string into HTML dom.</li><li>@babel/plugin-proposal-class-properties: “This plugin transforms static class properties as well as properties declared with the property initializer syntax” -https://www.npmjs.com/package/@babel/plugin-proposal-class-properties</li><li>react: JavaScript library</li><li>react-dom: “Serves as the entry point to the DOM and server renderers for React”</li><li>touch: For all your node touching needs.</li></ul><p>To install above mentioned dependencies run below command on terminal.</p><pre>npm i webpack babel-loader @babel/preset-react @babel/core babel-preset-react html-webpack-plugin webpack-dev-server css-loader style-loader @babel/plugin-proposal-class-properties webpack-cli touch</pre><pre>npm i react react-dom</pre><h4>Add ‘src’ Directory, index.js, and index.html Files</h4><p>Your File Tree currently look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*PX9lsgiuljgF_2EZ3QLP8g.jpeg" /></figure><h4>Now add Some Codes</h4><p>Add following code to index.html</p><pre>&lt;!doctype html&gt;<br>&lt;html lang=”en”&gt;<br>&lt;head&gt;<br> &lt;meta charset=”utf-8&quot;&gt;<br> &lt;title&gt;My React App from Scratch&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br> &lt;div id=”app”&gt;&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>Add following code to index.js</p><pre>import ReactDOM from ‘react-dom’;<br>import React from ‘react’;</pre><pre>const App = () =&gt; {<br> return &lt;h1&gt;This is my React app!&lt;/h1&gt;;<br> }</pre><pre>ReactDOM.render(&lt;App /&gt;, document.getElementById(‘app’));</pre><h4>Configure Webpack and Babel</h4><p>In the root directory, type these commands in terminal</p><pre>touch .babelrc<br>touch webpack.config.js</pre><p>Your File Tree currently look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*GjwPGe3ik8oPs69pMupWow.jpeg" /></figure><p>Add following code to webpack.config.js</p><pre>const HtmlWebPackPlugin = require(“html-webpack-plugin”);<br>const htmlPlugin = new HtmlWebPackPlugin({<br> template: “./src/index.html”,<br> filename: “./index.html”<br>});<br>module.exports = {<br>mode: ‘development’,<br>  module: {<br>    rules: [{<br>   test: /\.js$/,<br>   exclude: /node_modules/,<br>   use: {<br>     loader: “babel-loader”<br>   }<br> },<br>  {<br>   test: /\.css$/,<br>   use: [“style-loader”, “css-loader”]<br>  }<br>]},<br> plugins: [htmlPlugin]<br>};</pre><p>Add following code to .babelrc</p><pre>{<br> “presets”: [“@babel/preset-react”],<br> “plugins”: [“@babel/plugin-proposal-class-properties”]<br>}</pre><h4>Add ‘start’ script to package.json</h4><pre>&quot;start&quot;: &quot;webpack serve --config webpack.config.js&quot;</pre><h4>Test to See React App Running in the Browser</h4><p>In the root directory, add following code in terminal</p><pre>npm run start</pre><p>You should see your app running at <a href="http://localhost:8080/">http://localhost:8080/</a> in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xup22JFVmtZUNTjnemXUWQ.jpeg" /></figure><p><strong>Now you successfully set up a React Application from scratch!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9529d898ed9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Koa JS & RESTful Services]]></title>
            <link>https://medium.com/@rkarisina/koa-js-restful-services-425d97903bf2?source=rss-ecdb5f2d301c------2</link>
            <guid isPermaLink="false">https://medium.com/p/425d97903bf2</guid>
            <category><![CDATA[http-status-code]]></category>
            <category><![CDATA[rest]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[koa]]></category>
            <category><![CDATA[koajs]]></category>
            <dc:creator><![CDATA[Risina Rasmith]]></dc:creator>
            <pubDate>Sun, 15 May 2022 06:05:03 GMT</pubDate>
            <atom:updated>2022-05-15T06:05:03.237Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K6eA84b2SvoCLo8oyzeuwA.jpeg" /></figure><h3>Koa JS</h3><h4>What is Koa JS?</h4><p>Koa JS is an open-source Node JS web framework that was designed by the team behind Express. It is minimal, flexible, more expressive, and more robust Node JS framework designed for developing web applications and APIs. Koa JS eliminates callbacks and improves error management by using async functions. Koa JS does not bundle middlewares within its core. The key feature of Koa JS is the use of ES6 generators which means a program written using Koa JS will have fewer callbacks. While it uses asynchronous code comes from Node JS in the behind, but still the code is different and much simpler, cleaner, and easier to code. To install Koa JS, it requires node v7.6.0 or higher for ES2015 and async function support.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mQgbvr5bEFGIggDPnPJXng.jpeg" /></figure><p>You can quickly install a supported version of node with your favourite version manager:</p><blockquote>$ nvm install 7</blockquote><blockquote>$ npm i koa</blockquote><blockquote>$ node my-koa-app.js</blockquote><h4>Advantages</h4><p>· High Performance.</p><p>· Provides very good user experience.</p><p>· Cleaner, more readable async code.</p><p>· Lightweight.</p><p>· Reusable.</p><p>· Extensible.</p><h4>Disadvantages</h4><p>· Open-source community is small.</p><p>· Less online resources to learn.</p><p>· Not compatible with Express-style middleware.</p><h3>RESTful Services</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FDk8Eg7GVAyZ4TzcTUqiwQ.jpeg" /></figure><h4>What is REST?</h4><p>REST is an acronym for REpresentational State Transfer protocol and was created by computer scientist Roy Fielding in 2000. It is web standard-based architecture and uses HTTP protocol. It was built around things or resources. In REST architecture, a REST Server simply provides access to resources and REST client accesses and modifies the resources. Here each resource is identified by URIs or global IDs. REST uses various representation to represent a resource like text, JSON, XML. JSON is the most popular one.</p><h4>HTTP Methods</h4><p>Following four HTTP methods are commonly used in REST based architecture.</p><p>· GET — fetch a resource</p><p>· POST — insert new resource</p><p>· PUT — replace existing resource</p><p>· DELETE — remove a resource</p><h4>Architectural Constraints</h4><p>REST defines 6 architectural constraints which make any web service — a truly RESTful API.</p><p>1. Uniform Interface</p><p>2. Client — Server</p><p>3. Stateless</p><p>4. Cacheable</p><p>5. Layered System</p><p>6. Code on Demand</p><h4>HTTP Status Codes</h4><p>REST APIs use the status code part of an HTTP response message to inform clients of their request’s overarching result</p><p>· 200 — OK</p><p>· 201 — Created</p><p>· 202 — Accepted</p><p>· 204 — No content</p><p>· 301 — Moved permanently</p><p>· 302 — Found</p><p>· 304 — Not modified</p><p>· 400 — Bad request</p><p>· 401 — Unauthorized</p><p>· 403 — Forbidden</p><p>· 404 — Not found</p><p>· 405 — Method not allowed</p><p>· 409 — Conflict</p><p>· 412 — Precondition failed</p><p>· 500 — Internal server error</p><p>· 502 — Bad gateway</p><p>· 503 — Service unavailable</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=425d97903bf2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Node JS? It’s Advantages & Disadvantages…]]></title>
            <link>https://medium.com/@rkarisina/node-js-c74f30f2f658?source=rss-ecdb5f2d301c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c74f30f2f658</guid>
            <category><![CDATA[node]]></category>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Risina Rasmith]]></dc:creator>
            <pubDate>Sat, 14 May 2022 16:28:05 GMT</pubDate>
            <atom:updated>2022-05-14T16:29:54.255Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Node JS is a free and open-source, back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript codes outside a web browser. It created with the aim of creating real-time websites with push capabilities by Ryan Dahl.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*InD4SchSbsGhZQMPNOh9_w.jpeg" /></figure><p>Node JS uses event-driven, non-blocking I/O model. It makes Node JS is lightweight and efficient. Node JS comes with several JavaScript libraries that helps basic programming. Also, the largest eco system in the world for open-source libraries is Node JS eco system which called node package manager (NPM).</p><p>Node JS is suitable for data-intensive real-time applications that run across distributed devices. Also, ideal for building fast and scalable network applications. Although, Node JS is not the best platform for CPU intensive heavy computational applications.</p><p>Node JS can handle a huge number of simultaneous connections. It has achieved over 1 million concurrent connections. For Each connection Node JS does not spawn new thread causing max out of memory instead handle all in single thread using non-blocking I/O model.</p><p>Node JS can be used for making I/O bound applications, Data streaming applications, Data intensive real-time applications, JSON APIs based applications, single page applications, and chatbots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zEEHiHkpTU5wevMydtkjdA.jpeg" /><figcaption>Some of Popular Companies Which Using Node JS</figcaption></figure><h3>Advantages</h3><p>· Easy to Learn — Node.js has no steep learning curve. Coding in Node.js is relatively easy to grasp, once you have mastered JavaScript and Object-Oriented Programming basics. It’s enough to start.</p><p>· Keeping things simple — easy sharing one language both on the server and client sides, and no necessity to switch between back-end and front-end.</p><p>· Faster time-to-market — Node.js is particularly helpful in making the time-to-market cycle shorter.</p><p>· Scalability — Node’s scalability is achieved by the load balancing and the capability to handle a huge number of concurrent connections. Moreover, Node’s apps support both vertical and horizontal scaling.</p><p>· Battle-tested old hand — number of companies using Node.js for their products has increased dramatically, and the giants like PayPal, Netflix and eBay have joined the hype.</p><p>· MVP Development — Node.js enables to quickly develop an MVP (minimum viable product) — a piece of software with just enough features (or a single killer feature) so that the product can go to the market and satisfy the first customers.</p><p>· Community — An active community means a lot of support and feedback.</p><h3>Disadvantages</h3><p>· Reduces performance when handling Heavy Computing Tasks.</p><p>· Heavy code changes due to Unstable API.</p><p>· Node.js Asynchronous Programming Model makes it difficult to maintain code.</p><p>· Lack of Library Support can Endanger your Code.</p><p>· High demand with a few Experienced Node.js Developers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c74f30f2f658" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Version Controlling & NoSQL……]]></title>
            <link>https://medium.com/@rkarisina/introduction-to-version-controlling-nosql-8f85ea966653?source=rss-ecdb5f2d301c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f85ea966653</guid>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[version-control]]></category>
            <dc:creator><![CDATA[Risina Rasmith]]></dc:creator>
            <pubDate>Wed, 16 Mar 2022 07:08:33 GMT</pubDate>
            <atom:updated>2022-03-16T07:08:33.559Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>No SQL</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*thocTmFaIgu9zQJZMc1V-g.jpeg" /></figure><p>NoSQL databases remove the burden of data structures mismatch between application in-memory and relational databases. It integrates databases using services. Aggregate oriented databases are easier to manage inside clusters and based on the domain driven design. MongoDB, CouchDB, CouchBase, Cassandra, HBase, Redis, Riak, Neo4J are the popular NoSQL databases examples.</p><p>CAP Theorem</p><p>· Consistency — Every read receives the most recent write</p><p>· Availability — Every request receives a response (no guarantee that it is the most recent write).</p><p>· Partition tolerance — System will continue to operate despite number of messages lost among network nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*sp7TgDN0e-fcv-J-I8KUxA.png" /><figcaption><a href="https://cdnblog.filecloud.com/blog/wp-content/uploads/2014/08/NoSQL-DBs11.png">https://cdnblog.filecloud.com/blog/wp-content/uploads/2014/08/NoSQL-DBs11.png</a></figcaption></figure><h4><strong>Version Controlling</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*MECpPB8sw3i8B3SnAQa6Pg.jpeg" /></figure><p>When doing coding, using version controlling system make easier to have backups and centralized source code repository. It is managing changes to a source and, changes are identified using a revision number.<strong> </strong>Also,<strong> </strong>revisions can be restored, compared, and merged. Version controlling systems can be used to access control and conflict resolvement. Some popular version control systems are Git, Mercurial, and Subversion.</p><p>Terminology</p><p>● Repository</p><p>Central location where all the files are being kept. Usually a directory with set of files.</p><p>● Trunk</p><p>Also referred to as master branch. This is where the most stable code is being placed which is referred as the production code.</p><p>● Stage</p><p>Mark files for tracking changes.</p><p>● Commit</p><p>Create a snapshot of the changes being made to the files.</p><p>● Branch</p><p>Copy of the master branch taken at a given point. All the feature developments and bug fixes will be done in a branch. Usually, it is allowed to have multiple branches at the same time.</p><p>● Checkout</p><p>Mark/unlock file for changing.</p><p>● Merge</p><p>Combining branches together to update the master branch.</p><p>● Merge conflict</p><p>Merge conflicts occur when merging a file which has been changed in two separate branches or places. Changes that interfere other changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*wTwGIW7fOlTFsi-tNwVrUg.jpeg" /><figcaption><a href="https://www.incredible-web.com/media/1049/vc_logos.jpg">https://www.incredible-web.com/media/1049/vc_logos.jpg</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f85ea966653" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Application Frameworks, JavaScript…]]></title>
            <link>https://medium.com/@rkarisina/introduction-to-application-frameworks-javascript-nosql-version-controlling-9578f477385e?source=rss-ecdb5f2d301c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9578f477385e</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[version-control-system]]></category>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[application-frameworks]]></category>
            <dc:creator><![CDATA[Risina Rasmith]]></dc:creator>
            <pubDate>Sat, 26 Feb 2022 18:37:12 GMT</pubDate>
            <atom:updated>2022-03-16T06:51:54.580Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Application Frameworks in Brief…</strong></h3><p>When developing software, software developers use application frameworks to implement the standard structures of applications which build around Java and JavaScript languages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-mGq7EEFSpHWeIFoOwAgWA.jpeg" /></figure><p>Also, professional software developers should use principles, guidelines, and practices when they are coding their applications. There is brief description about that principles, guidelines, and practices.</p><h4>Principles</h4><p>1. S.O.L.I.D</p><p>S — Single responsibility principle</p><p><em>-A class should have one and only one reason to change, meaning that a class should have</em> <em>only one job</em></p><p>O — Open-close principle</p><p><em>-Objects or entities should be open for extension, but closed for modification</em></p><p>L — Liskov substitution principle</p><p><em>-Every subclass/derived class should be able to substitute their parent/base class</em></p><p>I — Interface segregation principle</p><p><em>-Clients should not be forced to implement methods they do not use</em></p><p>D — Dependency inversion principle</p><p><em>-Higher level modules should not depend on lower-level modules, but they should depend on abstractions</em></p><h4><strong>Guidelines</strong></h4><p><strong>1. Approaching the solution</strong></p><p>a. Think throughout the problem</p><p>b. Divide and conquer</p><p>c. KISS — Keep It Smile and Stupid</p><p>d. Learn, especially from mistakes</p><p>e. Always remember why software exists</p><p>f. Remember that you are not the user</p><p><strong>2. Implementing the solution</strong></p><p>a. YAGNI — You Aren’t Gonna Need It</p><p>b. DRY — Don’t Repeat Yourself</p><p>c. Embrace abstraction</p><p>d. DRITW — Don’t Reinvent the Wheel</p><p>e. Write code that does one thing well</p><p>f. Debugging is harder than writing code</p><p>g. Kaizen — Leave it better than when you found it</p><h4>Practices</h4><p>· Unit testing</p><p>· Code Quality</p><p>· Code review</p><p>· Version controlling</p><p>· Continuous integration</p><h3><strong>JavaScript…</strong></h3><p>JavaScript is a single threaded programming language which does not wait for I/O operations get completed. Instead, it continues the execution of the program (non-blocking I/O). So, because of the reason JavaScript is asynchronous programming language. Also, JavaScript is dynamically typed language. It determines variable types, ordering, etc… in runtime. JavaScript support object-oriented programming as well as functional programming (Multi-paradigm).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4bf2pioT2Iw8HHJ0lcu_NQ.jpeg" /></figure><p>· <strong>Classes and Objects in JavaScript</strong></p><p>In JavaScript, a constructor function is used with the ‘new’ keyword when creating an object. When function is used with ‘new’ keyword that function act as a class. Another way of creating an object is using object literals (‘{}’). These objects are considered to be singleton.</p><p>· <strong>Prototypes</strong></p><p>In JavaScript prototype object is used when creating objects, for inheritance and adding methods to a JavaScript class. There are lot of ways to create class in JavaScript, but prototypes are the recommended way to do it. Object ‘__proto__’ is where object get its properties inherited from.</p><p>· <strong>‘this’ in JavaScript</strong></p><p>Unlikely other languages in JavaScript ‘this’ keyword acts differently. Inside an object ‘this’ refers to object itself. In global context ‘this’ refers to global object. With arrow functions ‘this’ keyword always represents the object that defined in the arrow function.</p><p>· <strong>Strict Notation</strong></p><p>Strict notation is restricted mode of JavaScript. Purpose of it is make easier to write secure JavaScript. This makes bad practices in JavaScript to errors. And this may keep developer away from using syntaxes that will get invalidate with future JavaScript developments.</p><p>· <strong>Closure</strong></p><p>Closure is a function in JavaScript which returns another function. It used to encapsulate variables into a function and restrict access to it from outside.</p><p>· <strong>Callback and Promises</strong></p><p>JavaScript is asynchronous language. So, when we need to do synchronous processing using data, we need to use callback and promises.<strong> </strong>Callback is a function that is being passed to an async task and on completion the function will be executed. Promise is an object that is being returned from async tasks. Promise has properties to deal with async operations synchronously.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9578f477385e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>