<?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 Hariz_TheGreat on Medium]]></title>
        <description><![CDATA[Stories by Hariz_TheGreat on Medium]]></description>
        <link>https://medium.com/@sannihariz14?source=rss-ef583a1cd188------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-EmQFyMX4so_acUrUdv5nQ@2x.jpeg</url>
            <title>Stories by Hariz_TheGreat on Medium</title>
            <link>https://medium.com/@sannihariz14?source=rss-ef583a1cd188------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 19:31:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sannihariz14/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[Comparison between two frontend web technologies]]></title>
            <link>https://medium.com/@sannihariz14/comparison-between-two-frontend-web-technologies-7f2c20964c4f?source=rss-ef583a1cd188------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f2c20964c4f</guid>
            <dc:creator><![CDATA[Hariz_TheGreat]]></dc:creator>
            <pubDate>Fri, 28 Jun 2024 15:43:47 GMT</pubDate>
            <atom:updated>2024-06-28T15:43:47.160Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>React JS Vs Vue</strong></p><p><em>React JS</em></p><p>React Js is an open source javascript library used for building user interfaces. React is based on components and these components are simply JavaScript functions. These Components are independent blocks that are eventually assembled together to form an application’s entire user interface. Complex UIs of an application are broken down into smaller reusable components. React uses a syntax known as JSX which is a combination of JavaScript and XML.</p><p><strong>An Overview of how react works</strong></p><p>React uses Virtual DOM(Document Object Model) to optimize the manipulation of the real DOM. Whenever our application loads, react creates a virtual DOM,and instead of updating the entire real DOM directly when data changes the virtual DOM is updated. And compared to the real DOM and react makes changes where necessary. Whenever data changes, React will create a new Virtual DOM and compare it to the previous virtual DOM to find the quickest way to update the real DOM. This process is called diffing.</p><p><strong>Why React?</strong></p><ol><li>Easy creation of dynamic web applications : React requires less code compared to vanilla JS and offers more functionality.</li><li>Reusable components: As said earlier,components are the building blocks of a react application, so a react application can be broken down into smaller pieces that can be combined together to form a whole larger application.</li><li>It can be used for both web app and mobile app development</li><li>Performance: React uses virtual DOM which makes web applications faster by comparing the virtual DOM to the real DOM and make necessary changes.</li><li>Steep learning curve.</li><li>SEO friendly</li></ol><p><strong>Pros of using React</strong></p><ol><li>Fast rendering</li><li>Reliable development tools</li><li>Stable and streamline code</li><li>Maintenance</li><li>Search engine friendly</li></ol><p><em>VUE</em></p><p>Vue Js is also an open source JavaScript Library used for building user interfaces and Single Page Applications (SPAs). It is built upon standard HTML, CSS, and JavaScript and provides a component-based programming model that helps develop complex user interfaces.</p><p><strong>An overview of how Vue works</strong></p><p>VueJS makes the use of virtual DOM, which is also used by other frameworks such as React. The changes are not made to the real DOM, instead a replica of the DOM is created. Whenever any changes are to be made, they are made to the JavaScript and the latter is compared with the original data structure. The final changes are then updated to the real DOM, which the user will see changing. This is good in terms of optimization, it is less expensive and the changes can be made at a faster rate.</p><p><strong>Advantages of Vue Js</strong></p><ol><li>Simplicity</li><li>Component based architecture: Like react, Vue also follows component based architecture.</li><li>High performance</li><li>Cross-platform</li><li>Light weight</li></ol><p><strong>So should you pick React over Vue or vice versa?</strong></p><p>The main difference between Vue and React is the syntax. Vue uses HTML templates while React uses JSX. So, the choice of framework depends on the developer as these two libraries have so much in common. Although react is very popular compared to vue js.</p><ul><li><a href="https://hng.tech/internship">HNG Internship | HNG</a></li><li><a href="https://hng.tech/hire">HNG</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f2c20964c4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Functional with Javascript]]></title>
            <link>https://medium.com/@sannihariz14/getting-functional-with-javascript-b9658c60eacb?source=rss-ef583a1cd188------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9658c60eacb</guid>
            <dc:creator><![CDATA[Hariz_TheGreat]]></dc:creator>
            <pubDate>Thu, 02 May 2024 09:25:19 GMT</pubDate>
            <atom:updated>2024-05-02T09:25:19.805Z</atom:updated>
            <content:encoded><![CDATA[<p>Javascript is an Object Oriented Language,at the same time it is a Funtional Language.</p><h3>What are functions?</h3><p>A function is simply a set of procedures that performs a particular task. Functions are one of the building blocks in Javascript. JavaScript functions have two important characteristics, they’re first-class and higher-order. Functions are known as a first-class citizens because of their ability to be passed as arguments to other functions, assigned to a variable and their ability to be returned from other functions. A higher-order function is a function that either takes one or more functions as arguments, or returns a function as its result.</p><h3>Function Declaration</h3><p>A function is defined using the keyword “function” followed by the name of the function, then a parentheses “()”,then curly braces “{}”. The statement or task to be executed is enclosed in the curly braces.</p><p>For Example:</p><pre>function square(param1,param2) {<br>  return param1 * param2;<br>}</pre><p>The above function has a name “square” and a set of parameters enclosed in the parantheses. The function consist of just one statement that returns the parameters multiplied by each other.</p><p>A function can also be declared using function expressions. A function declared using expressions are known as anonymous functions and it is done by simply setting the value of a variable to be a function.</p><p>For Example:</p><pre>const square = function (param) {<br>  return param * param;<br>};</pre><h3>Calling a function</h3><p>Declaring a function does not execute it. After declaring a function, you have to call or invoke it to execute it. A function is called by simply writing the name of the function, then a set of parentheses and the value of the parameter is enclosed in the parentheses(if any). The value of the parameter(s) is set during calling and this/these value(s) is/are known as argument(s). Functions are executed in the sequence they are called and not in the sequence they are defined.</p><p>For Example:</p><pre>const square = function (param) {<br>  return param * param;<br>};<br><br>console.log(square(4));</pre><p>The above function is invoked to execute and return the value after the parameters are set to multiply each other. The value of the parameter is set to 4 during invocation, so the function returns a value of 16.</p><h3>Arrow Functions</h3><p>An arrow function is a shorter syntax for declaring a function. It was added in ES6 and it is also called the fat arrow function or lambda expression. An arrow functions does not use the keyword function during declaration. Arrow functions are always anonymous because they are function expressions.</p><p>For Example:</p><pre>const arrowFunction = () =&gt; {<br>      return 3 + 4;<br>}; </pre><p>The above function is an anonymous function with no name and it has no parameter. It on return a value of 7 after the addition of 3 and 4. To invoke this function, you simply write the function name and a set of parentheses “arrowFunction()” .</p><h3>Callback Functions</h3><p>Callback functions are functions that are passed as argument to another function.</p><p>For Example:</p><pre>const message = function() {  <br>    console.log(&quot;This message is shown after 3 seconds&quot;);<br>}<br> <br>setTimeout(message, 3000);</pre><p>The message function is set as an argument to the setTimeout function, which makes the message function a callback function. (setTimeout function is a built in javascript function used for asynchronous operations).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9658c60eacb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Progressive Web Applications]]></title>
            <link>https://medium.com/@sannihariz14/progressive-web-applications-d0a49150fba5?source=rss-ef583a1cd188------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0a49150fba5</guid>
            <dc:creator><![CDATA[Hariz_TheGreat]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 11:36:13 GMT</pubDate>
            <atom:updated>2024-04-01T11:36:13.897Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is a Progressive Web Application?</strong></p><p>Progressive Web Applications also know as PWAs are applications that combine the characteristics of traditional websites and platform specific apps or native apps together.</p><p>PWAs have the feel of a native app. They can run on the web and can also run on your operating system. They have abilities like push notifications and can work offline.</p><p><strong>Characteristics of a PWA</strong></p><ol><li>They can operate offline i.e they work without network connectivity.</li><li>Installable: They can be installed on a device just like a platform specific app or a native app.Once installed, you can access them through an icon displayed on your device.</li><li>They can respond to push notifications from the server.</li><li>They are responsive.</li><li>They are usually displayed without the browsers UI around them.</li><li>They are built using standard web technologies like HTML,CSS and Javascript.</li><li>PWAs update automatically,ensuring users have the latest version.</li><li>They are cross platform i.e they are not limited to a specific platform or operating system.</li><li>They are optimized for speed and performance.</li><li>They are served over HTTPS,ensuring data security.</li></ol><p>Whenever we visit a PWA using a URL i.e we visit it on the web,the browser provides us with an option to install it on our device and have access to it without using the browser.</p><p>Examples of PWAs are Youtube,Spotify,Twitter ,Tinder,Airbnb etc</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0a49150fba5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s Talk About Javascript]]></title>
            <link>https://medium.com/@sannihariz14/lets-talk-about-javascript-b414b122d9f7?source=rss-ef583a1cd188------2</link>
            <guid isPermaLink="false">https://medium.com/p/b414b122d9f7</guid>
            <dc:creator><![CDATA[Hariz_TheGreat]]></dc:creator>
            <pubDate>Tue, 26 Mar 2024 13:59:48 GMT</pubDate>
            <atom:updated>2026-01-08T10:35:53.291Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Javascript?</strong></p><p>Javascript is a multi paradigm programming language that support different programming styles such as object oriented programming (OOP),functional programming (FP) and imperative programming.</p><p>It is a single threaded, synchronous programming language used for web scripting and used majorly for web development,both frontend and backend(NodeJS). Javascript allows you to implement complex things on a web page/web app. Things like button click, display dates, getting data from an API, form validation, etc. It conforms to the ECMAScript standard. Javascript is the foundation of frontend web development, as of today, you cannot build complex websites or web apps without Javascript. Its use is not only on the frontend as it can be used on the server side too. Also, Javascript is a beginner friendly language.</p><p>(Note: Javascript and Java are two entirely different languages. Javascript is not an offshoot of Java and vice versa.)</p><p><strong>Basics of Javascript</strong></p><p>Like every other languages out there,javascript has its own construct,syntax and datatypes.Datatypes in Javascript can be grouped into two,primitive and non primitive. There are 7 primitive datatypes in Javascript,they are String,Number,BigInt,Boolean,Undefined,Null,Symbol. And the non primitives are objects,arrays,dates,functions.</p><p>In a programming language,there something called Variable. A variable is simply used to store value. It is like a container that holds a particular value and a variable can store values in any of the datatypes listed above.</p><p>In Javascript, a variable is declared using three keywords,they are “var”, “const” and “let” .</p><p>Example:</p><p>let age = 3;</p><p>const name = “John Doe”;</p><p>var sex = “male”;</p><p>In the example above,we created variable a which holds a value of 3, variable name which hold the value “John Doe” and a variable sex which holds the value “male”. The equals to operator is used to assign value to a variable(we’ll talk about operators in future).</p><p><strong><em>Now let’s talk about each datatypes listed above.</em></strong></p><p>As stated earlier,there are 7 primitive datatypes in Javascript and we will explain each one in details.</p><ol><li>String: A string is a datatype that stores text and they’re written with quotes,whether double or single. A string can also be said to be a bunch of characters or a single character written in quotes. Example is the variable sex and variable name declared above. You’ll notice that their values are written with double quotes (“John Doe” and “male”).</li><li>Number: This is a datatype for numeric values. Numbers can be written with(integer)or without decimal(float). Example is the age variable we created above,it has a value of 3 which is a number.</li><li>BigInt: This stores big integer values that are too large to be stored or represented by a normal Javascript number.</li><li>Boolean: A boolean simply represents of of the two values true or false. <strong>Example:</strong> var value = true; , let value = false”.</li><li>Undefined: It represents an absence of a value. A variable is said to be undefined if it has no value or has not been assigned a value.</li><li>Null: This represents and intentional absence of a value. It represents a variable with the value null. (Note: Undefined and Null are two different datatypes,Undefined represents a variable that has been declared but has not been assigned a value,but Null represents a declared variable with a value “null”.</li><li>Symbol: A symbol is often used to add unique property keys to an object. It is also used to create private properties and methods in classes.</li></ol><p><strong>Non Primitives</strong></p><ol><li>Objects: An object is a collection of related or similar data which contains properties that are stored in a “key: value” pair. The key represents the property and the value represents the value of the property.</li></ol><p>Example:</p><p>var person = {</p><p>name: “John Doe”,</p><p>sex: “male”</p><p>age: 20</p><p>}</p><p>To access the values stored in an object, we use dot notation. Here is an example of accessing the values stored in an object:</p><p>person.name,person.sex,person.age access the name,sex and age property respectively.</p><p>2. Arrays: An array allows us to store multiple values together under one variable. An array can hold multiple datatypes and their size is not fixed.</p><p>Example: var ages = [10,20,30,40];</p><p>The values inside the bracket are know as elements of the array and they can be accessed using numerical index. The index starts from zero which means the first element in the array has an index of 0.</p><p>For instance let’s access the first element of the array, we state the name of the array,then enclose the index on the element we want to access inside a bracket.</p><p>ages[0],ages[1],ages[2] accesses the first,second and third elements respectively.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b414b122d9f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>