<?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 Peterfagoroye on Medium]]></title>
        <description><![CDATA[Stories by Peterfagoroye on Medium]]></description>
        <link>https://medium.com/@peterfagoroye76?source=rss-4a818d210ad6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0YU9JJhGQI_t8NEF</url>
            <title>Stories by Peterfagoroye on Medium</title>
            <link>https://medium.com/@peterfagoroye76?source=rss-4a818d210ad6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 00:58:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@peterfagoroye76/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[Article on Solutions Provided By Blockchain Technology in Problem in Computer Engineering]]></title>
            <link>https://medium.com/@peterfagoroye76/article-on-solutions-provided-by-blockchain-technology-in-problem-in-computer-engineering-a0fcdbc0dab9?source=rss-4a818d210ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0fcdbc0dab9</guid>
            <dc:creator><![CDATA[Peterfagoroye]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 14:02:42 GMT</pubDate>
            <atom:updated>2025-06-13T14:02:42.278Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*JXTqt_q-g8Mw3AGENIEw3A.jpeg" /></figure><p><strong>Article on Solutions Provided By Blockchain Technology in Problem in Computer Engineering</strong></p><p>Looking back five years ago, we can see that there are a lot of innovations in the digital world, and as the digital world is evolving, so as the security system needed to protect the user data is also in high demand for improvements, and that is where Blockchain Technology comes in.</p><p>Now the basic foundation of Blockchain technology is on it decentralization and the fact that there is no central government or one body watching over it, so basically, the ledger is maintained and validated by a distributed network of participating computers. This milestone allows more secure data transactions.</p><p>In the Computer Engineering field, we deal with Hardware, Software and Embedded systems.</p><h4>Case Study: Embedded Systems and the Challenge of Trust</h4><p>Let’s delve into <strong>Embedded Systems</strong> as a prime case study.</p><p><em>An Embedded system is a combination of computer hardware and software designed for a specific function. It might also function within a larger system. These systems can be programmable or have a fixed functionality. Embedded systems are used today to control numerous devices. For example, they’re used in industrial machines, consumer electronics, agricultural and processing industry devices, automobiles, medical devices, cameras, digital watches, household appliances, airplanes, vending machines, toys and mobile devices.</em></p><p>This tells us that even as little as our phones, cameras, vending machines, toys, cars, there are little chips and ICs that collect our data for maximum functionality. Is this a bad thing? No. But privacy is really important, and the manufacturers of all this has access of your data because it is stored in the cloud.</p><p><strong>How Blockchain Technology Provides Solutions:</strong></p><p>For every application of embedded system into your gadgets, for example, steps tracker, home security live feed, automobile location or mile tracker, they are secured using blockchain technology,</p><p><strong>Why do we need to do this?</strong></p><p>Now imagine this, On a weekend, you’re cruising with your Tesla automobile, and the next minute, the steering is being controlled automatically. And there you are in your $2000 armani shirt having a panic attack, because of course you know you’ve been hacked. Not you, but the company database has been taken over by an anonymous hacker.</p><p><strong>How can this be prevented with Blockchain Technology?</strong></p><p>By integrating blockchain at each layer — device identity, firmware management, data integrity, and automated control — you create an end-to-end secure embedded system for critical infrastructure. No single party can rewrite the history of readings or push unauthorized updates, and emergency actions happen transparently, verifiably, and without centralized gatekeepers.</p><h4>Conclusion</h4><p>This layered, blockchain-backed approach doesn’t just harden individual nodes — it transforms the entire system into a self-verifying, resilient backbone for critical infrastructure, ensuring safety, transparency, and trust at scale.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0fcdbc0dab9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YDKJS: this & Object Prototypes]]></title>
            <link>https://medium.com/@peterfagoroye76/ydkjs-this-object-prototypes-cff8bef0907c?source=rss-4a818d210ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cff8bef0907c</guid>
            <dc:creator><![CDATA[Peterfagoroye]]></dc:creator>
            <pubDate>Sun, 23 Mar 2025 16:26:17 GMT</pubDate>
            <atom:updated>2025-03-23T16:26:17.223Z</atom:updated>
            <content:encoded><![CDATA[<p>YDKJS: this &amp; Object Prototypes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*8YTiNJ-o8LumhXjn4r43-Q.jpeg" /></figure><p>1. this Or That?</p><p>The “this” keyword in javascript is a special identifier keyword that’s automatically defined in the scope of every function. The “this” mechanism provides a more elegant way of implicitly passing along an object reference, leading to cleaner API design and easier re-use.</p><p>In previous times, developers had frown at the use of “this” because they do not understand the concept.</p><p>Let’s look at the example below;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*7Bviqtdl4dtQFFS5uK9KTg.png" /></figure><p><em>foo.count</em> is still 0, even tho the fot loop called <em>foo</em> four times. This frustration seems from a too literal interpretation of what “this” (in <em>this,count++</em>) means. The <em>this.count </em>reference inside the function, “this” is not in fact pointing at all to that function object, and so even if though the property names are the same, the root objects are different.</p><p>So instead of getting confused and using lexical approach, just like the example below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*7Bviqtdl4dtQFFS5uK9KTg.png" /></figure><p>The way to make the function and “this “ keyword work, is to actually point the <em>foo </em>function object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*mlPTx2OUjNjaEaybHKx1uw.png" /></figure><p><strong>Instead of avoiding “this”, we embrace it.</strong></p><p>2. “this” All Makes Sense Now!</p><p>Call-site</p><p>To understand “this” binding, we have to understand the call-site: the location in code where a function is called (not where it’s declared).</p><p>Below is a demonstration of call-stack and call-site:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*4La22G9zsvCFfQbros2zzA.png" /></figure><p>Rules to using “this”</p><p>· Default Binding</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*BbYQeH1M-2_Kq5nm6q7d0A.png" /></figure><p>· Implicit Binding</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*2_oA6hsrEl98Rn-3nZyA2Q.png" /></figure><p>· Explicit Binding</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*OAuwj1o5s8K1pYLzE9Nacw.png" /></figure><p>· <em>new </em>Binding</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*UMR8QjlzVXlCxBm3B5inHQ.png" /></figure><p>By calling foo(..) with new in front of it, we’ve constructed a new object and set that new object as the this for the call of foo(..). <strong>So new is the final way that a function call’s this can be bound.</strong> We’ll call this <em>new binding</em>.</p><p>3. Objects</p><p>Syntax:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/241/1*E7lE-4s2GjpHSyXe5Lqmiw.png" /></figure><p>It is can also be used this way</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*IjSk48m0rgFF-VDOMxJGoQ.png" /></figure><p>Objects are the general building blocks upon which much of JS is built. They are one of the six (6) primary types in JS.</p><p>Contents<br> The contents of an object consist of values stored at specifically named locations, which we call properties. What is stored in this container are the property names, which act as pointers (references) to where values are stored.</p><p>Consider;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*9uwOoSCxwBAbDOiBtLN-dA.png" /></figure><p>To access the value at the <em>location</em> a in myObject, we need to use either the “.” operator or the “ [ ]” operator. The “ .a” syntax is usually referred to as “property” access, whereas the [“a”] syntax is usually referred to as “key” access. In reality, they both access the same <em>location</em>, and will pull out the same value, 2, so the terms can be used interchangeably.</p><p>In objects, property names are <em>always</em> strings. If you use any other value besides a string, it will first be converted to string.</p><p>Property vs. Method</p><p>Functions which belong to objects are referred to as “methods”.</p><p>For Instance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*UWq63nzdddvEQb95QRf1qA.png" /></figure><p>The safest conclusion is probably that “function” and “method” are interchangeable in JavaScript.</p><p>Arrays</p><p>Arrays use the “[]” access form, they have slightly more structured organization for how and where values are stored. Arrays assume <em>numeric indexing, </em>which means that values are stored in locations, usually called <em>indices.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*MuhAJ8SbWoUoE8qr_4PjEA.png" /></figure><p>Arrays are objects, you can also add properties onto the array, but this does not change the reported length of the array.</p><p>Object Property Descriptors:</p><p>Consider this code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*1iLvmakPxwJCs7xJwRWzWw.png" /></figure><p>As you can see, the property descriptor (called a “data descriptor” since it’s only for holding a data value) for our normal object property “a” is much more than just its “value” of “2”. It includes 3 other characteristics: “writable”, “enumerable”, and “configurable”.</p><p>Getters and Setters</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*Uq8y8kvJLZOQ3Oh9gtbmVw.png" /></figure><p>4. Mixing (Up) “Class” Objects</p><p>Class Theory</p><p>“Class” describes a certain form of code organization and architecture — a way of modeling real world problem domains in our software. Classes also imply a way of classifying a certain data structure.</p><p>Let’s explore this classification process by looking at a commonly cited example. A <em>car</em> can be described as a specific implementation of a more general “class” of thing, called a <em>vehicle</em>.</p><p>We model this relationship in software with classes by defining a Vehicle class and a Car class.</p><p>The definition of Vehicle might include things like propulsion (engines, etc.), the ability to carry people, etc., which would all be the behaviors. What we define in Vehicle is all the stuff that is common to all (or most of) the different types of vehicles (the “planes, trains, and automobiles”).</p><p>It might not make sense in our software to re-define the basic essence of “ability to carry people” over and over again for each different type of vehicle. Instead, we define that capability once in Vehicle, and then when we define Car, we simply indicate that it “inherits” (or “extends”) the base definition from Vehicle. The definition of Car is said to specialize the general Vehicle definition.</p><p>While Vehicle and Car collectively define the behavior by way of methods, the data in an instance would be things like the unique VIN of a specific car, etc.</p><p><strong>And thus, classes, inheritance, and instantiation emerge.</strong></p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*wTD7ICg5VkfbKrPcIEvJKA.png" /></figure><p>To <em>make</em> a CoolGuy instance, we would call the class constructor:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*LJ8bGDRKt_QeGD3jBn7cYw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cff8bef0907c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YDKJS SCOPE AND CLOSURE REVIEW]]></title>
            <link>https://medium.com/@peterfagoroye76/ydkjs-scope-and-closure-review-2221aea27f0a?source=rss-4a818d210ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/2221aea27f0a</guid>
            <dc:creator><![CDATA[Peterfagoroye]]></dc:creator>
            <pubDate>Sun, 16 Mar 2025 19:10:27 GMT</pubDate>
            <atom:updated>2025-03-16T19:10:27.692Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*L7p5oOjMw_Wmn_ta8Y8wOA.jpeg" /></figure><p>1. What is Scope?</p><p>Definition: This is a set of well-defined rules for storing variables in some location, and for finding those variables at a later time.</p><p>Understanding Scope</p><p>Let’s think of scope as the process in terms of having a conversation. But who is having the conversation?</p><p>. Engine: responsible for start-to-finish compilation and execution of our JavaScript program.</p><p>. Compiler: one of <em>Engine</em>’s friends; handles all the dirty work of parsing and code-generation.</p><p>. Scope: collects and maintains a look-up list of all the declared identifiers (variables), and enforces a strict set of rules as to how these are accessible to currently executing code.</p><p>Below is an example of how conversation works…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*1AeeCp4Md8Wr6EdUR3UWiQ.png" /></figure><p><strong><em>Engine</em></strong>: Hey <em>Scope</em>, I have an RHS reference for foo. Ever heard of it?</p><p><strong><em>Scope</em></strong>: Why yes, I have. <em>Compiler</em> declared it just a second ago. He’s a function. Here you go.</p><p><strong><em>Engine</em></strong>: Great, thanks! OK, I’m executing foo.</p><p><strong><em>Engine</em></strong>: Hey, <em>Scope</em>, I’ve got an LHS reference for a, ever heard of it?</p><p><strong><em>Scope</em></strong>: Why yes, I have. <em>Compiler</em> declared it as a formal parameter to foo just recently. Here you go.</p><p><strong><em>Engine</em></strong>: Helpful as always, <em>Scope</em>. Thanks again. Now, time to assign 2 to a.</p><p><strong><em>Engine</em></strong>: Hey, <em>Scope</em>, sorry to bother you again. I need an RHS look-up for console. Ever heard of it?</p><p><strong><em>Scope</em></strong>: No problem, <em>Engine</em>, this is what I do all day. Yes, I’ve got console. He’s built-in. Here ya go.</p><p><strong><em>Engine</em></strong>: Perfect. Looking up log(..). OK, great, it’s a function.</p><p><strong><em>Engine</em></strong>: Yo, <em>Scope</em>. Can you help me out with an RHS reference to a. I think I remember it, but just want to double-check.</p><p><strong><em>Scope</em></strong>: You’re right, <em>Engine</em>. Same guy, hasn’t changed. Here ya go.</p><p><strong><em>Engine</em></strong>: Cool. Passing the value of a, which is 2, into log(..).</p><p>…</p><p>Nested Scope</p><p>Just as a block or function is nested inside another block or function, scopes are nested inside other scopes. So, if a variable cannot be found in the immediate scope, <em>Engine</em> consults the next outer containing scope, continuing until found or until the outermost (aka, global) scope has been reached.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*mlYguDiekVKpFEbEM5uAlg.png" /></figure><p>The simple rules for traversing nested <em>Scope</em>: <em>Engine</em> starts at the currently executing <em>Scope</em>, looks for the variable there, then if not found, keeps going up one level, and so on. If the outermost global scope is reached, the search stops, whether it finds the variable or not.\</p><p>2. Lexical Scope</p><p>Lexical scope is scope that is defined at lexing time — this is the time taken to examine a string of source code characters and assigns semantic meaning to the tokens. Lexical Scope is based on where variables and blocks of scope are authored, by you, at write time, and thus is set in stone by the time the lexer processes your code.</p><p>Understand it as <strong>a function’s scope is determined by where it is defined in the source code</strong>, not where it is called. This means that inner functions can access variables declared in their outer functions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*HisaGlxUPRWc3jUFlQY_Uw.png" /></figure><p>‘a’ is declared in foo’s scope</p><p>‘b’ is also inside foo’s scope</p><p>‘bar’ is declared inside ‘foo’, so it has access to ‘a’ and ‘b’.</p><p>3. Function vs Block Scope</p><p>Consider this block of code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*2YBTtHzRthwY2RBeAJ87uA.png" /></figure><p>In this snippet, the scope bubble for foo(..) includes identifiers a, b, c and bar. <strong>It doesn’t matter</strong> <em>where</em> in the scope a declaration appears, the variable or function belongs to the containing scope bubble, regardless. bar(..) has its own scope bubble. So does the global scope, which has just one identifier attached to it: foo.</p><p>Because a, b, c, and bar all belong to the scope bubble of foo(..), they are not accessible outside of foo(..).</p><p>Hiding In Plain Scope</p><p>It is good practice to take an arbitrary section of code you’ve written and wrap a function declaration around it, which in effect “hides” the code. This is good practice because it restrict exposure of many variables or function which should be kept private to restrict unnecessary access to those variables/function.</p><p>For Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*CYka0ick-376tl84NcaGTA.png" /></figure><p>In this snippet, the b variable and the <strong>doSomethingElse(..)</strong> function are likely “private” details of how <strong>doSomething(..)</strong> does its job. Giving the enclosing scope “access” to b and <strong>doSomethingElse(..)</strong> is not only unnecessary but also possibly “dangerous”, in that they may be used in unexpected ways, intentionally or not, and this may violate pre-condition assumptions of <strong>doSomething(..).</strong></p><p>A more “proper” design would hide these private details inside the scope of <strong>doSomething(..),</strong> such as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*VMGI8gwQEv0Q0y9zwl6Upg.png" /></figure><p>Block as Scopes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*k957YApdsSHpD4J-uuekNA.png" /></figure><p>In this, we declare the variable “i” directly inside the for-loop head, because we intend to use ”i” only within the context of that for-loop , and this essentially ignores the fact that the variable actually scopes itself to the enclosing scope.</p><p>This is what block-scoping is all about — declaring variables as close as possible, as local as possible, to where they will be used.</p><p>4. Hoisting</p><p>It means that in javascript compilation, the variable and function declarations are “moved” from where they appear in the flow of code to the top of the code.</p><p>For example:</p><p>This …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*fbSW-woK0SNRgfVxC3L-ww.png" /></figure><p>Becomes …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*tKlupj5NNcE1jqDLo9NhIg.png" /></figure><p>…where the first part is the compilation and the second part is the execution.</p><p>NOTE: Function declaration are hoisted but function expressions are not</p><p>5. Scope Closure</p><p>This is when a function remembers and accesses its lexical scope when executing outside that scope.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*qWA-fiO0OhQ370nT6-QwQw.png" /></figure><p>Modules</p><p>Modules in JavaScript use <strong>closures</strong> to encapsulate private data while exposing a <strong>public API</strong>. This allows better organization, data protection, and modular design.</p><p>For example: Basic module</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*_Qgtye1Kw0-hMUvfUA0r_A.png" /></figure><p>Firstly, CoolModule() is just a function, but it <em>has to be invoked</em> for there to be a module instance created. Without the execution of the outer function, the creation of the inner scope and the closures would not occur.</p><p>Secondly, the CoolModule() function returns an object, denoted by the object-literal syntax { key: value, … }. The object we return has references on it to our inner functions, but <em>not</em> to our inner data variables. We keep those hidden and private. It’s appropriate to think of this object return value as essentially a <strong>public API for our module</strong>.</p><p>One example is the simple school-system console app I created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*nP0OudrEOwdU3baXHaKdVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*UdwPtg0QA_kOXQEEhvNeWw.png" /></figure><p>In this example:</p><p>· students array is private and cannot be accessed directly</p><p>· findStudent() is a private function</p><p>· Only addToClass(), withdrawStudent() and getClassInfo() are exposed</p><p>The Output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*zXrWUncw8SKUx5aTadNaYg.png" /></figure><p><strong>Conclusion</strong></p><p>Closures are at the heart of JavaScript’s power and flexibility. They allow for:</p><ul><li>Data privacy through the module pattern</li><li>Stateful functions that remember their environment</li><li>Elegant solutions to common programming challenges</li></ul><p>Understanding closures is essential for writing clean, efficient JavaScript code. The examples provided demonstrate practical applications of closures that you can apply in your own projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2221aea27f0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YOU DON’T KNOW JS: UP AND GOING]]></title>
            <link>https://medium.com/@peterfagoroye76/you-dont-know-js-up-and-going-ec77c3241a50?source=rss-4a818d210ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec77c3241a50</guid>
            <dc:creator><![CDATA[Peterfagoroye]]></dc:creator>
            <pubDate>Sun, 09 Mar 2025 21:09:19 GMT</pubDate>
            <atom:updated>2025-03-09T21:09:19.421Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Review</h3><h3>Introduction</h3><p>JavaScript is everywhere — from websites to servers, mobile apps, and even IoT devices. Yet, many developers only scratch the surface of its true power. <em>You Don’t Know JS: Up &amp; Going</em> by Kyle Simpson serves as a gateway into understanding JavaScript deeply.</p><p>Here are some key lessons I took away from the book.</p><h3>1. Programming is About Telling Computers What to Do</h3><p>At its core, programming is giving instructions to a computer. JavaScript, like other languages, follows a structured syntax for these instructions. The book emphasizes that coding is about problem-solving, not just memorizing syntax.</p><h3>Example:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*pUdyJhxtFFSnFDvzw70BDg.png" /></figure><p>This simple line outputs text to the console, a fundamental concept in programming.</p><h3>2. Understanding Variables and Data Types</h3><p>JavaScript allows you to store values in variables using var, let, or const. Understanding their differences is crucial:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*0EuywyOK9kRcqppkqVqfCg.png" /></figure><h3>Key Takeaways:</h3><p>· var is function-scoped and can lead to unintended issues.</p><p>· let is block-scoped and should be preferred for variable declarations.</p><p>· const is used for values that should not change.</p><h3>3. Operators and Expressions</h3><p>Operators help manipulate data. The book introduces:</p><p>· <strong>Arithmetic Operators</strong> (+, -, *, /)</p><p>· <strong>Comparison Operators</strong> (==, ===, !=, &gt;, &lt;)</p><p>· <strong>Logical Operators</strong> (&amp;&amp;, ||, !)</p><h3>Example:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*-o57L3TbL0hyGmJg1zK5Vg.png" /></figure><h3>4. Control Flow (Loops and Conditionals)</h3><p>JavaScript executes code sequentially, but we often need to make decisions and repeat actions.</p><h3>Example of an if statement:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*m1261z7ys33_EwyEVI0Zsw.png" /></figure><h3>Looping through data:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*bHbYOYJI9JUrd9eZ5c1M3w.png" /></figure><p>Loops help automate repetitive tasks efficiently.</p><h3>5. Functions</h3><p>Functions allow us to write reusable blocks of code.</p><h3>Example of a Function:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*CfSiPKelz7wGNYx4mbh3qQ.png" /></figure><p>Functions help keep our code organized and maintainable.</p><h3>6. Scope and Closures</h3><p>Scope defines where variables are accessible. Closures allow functions to “remember” their outer variables even after execution.</p><h3>Example of Closure:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*56JC9a_aD1sTLVJriJW8aw.png" /></figure><p>Closures are a powerful concept that allows data encapsulation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec77c3241a50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ANALYSIS OF MEMORY GAME]]></title>
            <link>https://medium.com/@peterfagoroye76/analysis-of-memory-game-9bc8e5a17673?source=rss-4a818d210ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bc8e5a17673</guid>
            <category><![CDATA[games]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[technical-writing]]></category>
            <dc:creator><![CDATA[Peterfagoroye]]></dc:creator>
            <pubDate>Sun, 16 Feb 2025 22:13:13 GMT</pubDate>
            <atom:updated>2025-02-16T22:13:13.939Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4_xBu1fjPTa6UJzr" /></figure><h3>Programming Principles and Practices Used</h3><ul><li><strong>Modular Functions:</strong> Every functionality is wrapped in its own function (<strong>shuffle, createBoard, flipCard, checkMatch, resetGame</strong>), which enhances code reuse and organization.</li><li><strong>Event-Driven Programming</strong>: The program employs event listeners (e.g., <strong>cardElement.addEventListener(“click”, flipCard)</strong>) to manage user interactions, a best practice in interactive applications.</li><li><strong>State Management:</strong> Arrays (<strong>flippedCards</strong> and <strong>matchedCards</strong>) are utilized to control and keep track of the state of the game, assisting in determining whether two cards are flipped or the game is won.</li><li><strong>DRY Principle:</strong> With reusable functions such as shuffle, the code is not duplicated and logic is in a single location.</li><li><strong>Comments and Readability:</strong> There are plenty of inline comments explaining every step of the game logic, so the code is more readable and maintainable.</li></ul><h3>Areas for Improvement</h3><ul><li><strong>Global Scope Pollution:</strong> Global variables like <strong>cards</strong>,<strong> flippedCards</strong>, and <strong>matchedCards</strong> are declared. It would be better to encapsulate the game logic within an object or an Immediately Invoked Function Expression (IIFE) to prevent global namespace pollution.</li><li><strong>Magic Numbers:</strong> Magic timeout constants (i.e., <strong>600</strong> and <strong>1000</strong>) would be better declared as named constants. This would make the code more readable and make it easier to change in the future.</li><li><strong>Error Handling: </strong>There is no test to see whether the <strong>#game-board</strong> element is present before we manipulate it. The addition of error handling or a fallback will strengthen the code.</li><li><strong>UI Feedback and Alerts:</strong> The alert for the game-complete message is intrusive and does not permit custom styling. A change to a custom modal or message div will enhance user experience.</li><li><strong>Accessibility Improvements:</strong> Since the SVG is <strong>aria-hidden=”true”</strong>, it is a good practice to include the additional ARIA attributes and expose interactive elements to everyone.</li><li><strong>Code Consistency and Naming Conventions:</strong> Make sure that all variables and functions have a consistent naming convention (e.g., camelCase) for better readability.</li></ul><h3>Suggestions to Enhance the Game</h3><p><strong>Custom Message System:</strong></p><p>Instead of obtrusive JavaScript alerts for game completion alerts, implement a custom overlay message system. This has a number of benefits:</p><p><strong>Better user experience:</strong> A custom message won’t lock up the browser and can be styled to your game’s theme</p><p><strong>Smooth transitions:</strong> Include fade-in/fade-out effects for a more polished experience</p><p>Rich content support: Include emoji, images, formatting, and multiple buttons if needed</p><p>Accessibility improvements: Correct contrast, font sizes, and keyboard navigation design</p><p><strong>Timer and Performance Measurement</strong></p><p>Add a timer to record the amount of time players take to complete the game:</p><p>Display a live timer in seconds while the game is being played</p><p>Automatically begin the timer when the game begins</p><p>End the timer when all matches have been found</p><p>Use this data to help user track progress over time</p><p><strong>High Score System</strong></p><p>Create a high score system that:</p><p>Tracks and shows the player’s fastest completion time</p><p>Saves high scores</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NvZobKSrUAb8DcDR" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bc8e5a17673" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MODERN CSS: DESIGN MADE SIMPLER]]></title>
            <link>https://medium.com/@peterfagoroye76/modern-css-design-made-simpler-3c9a9904dfdf?source=rss-4a818d210ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c9a9904dfdf</guid>
            <category><![CDATA[technical-writing]]></category>
            <category><![CDATA[modern-css]]></category>
            <category><![CDATA[css3]]></category>
            <dc:creator><![CDATA[Peterfagoroye]]></dc:creator>
            <pubDate>Sun, 09 Feb 2025 15:34:27 GMT</pubDate>
            <atom:updated>2025-02-09T15:35:21.794Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*DPNZQJiT-mXoBj90YMDqFw.jpeg" /></figure><h3>INTRODUCTION</h3><p>What is CSS? CSS which stands for Cascading Style Sheet, and it is used by frontend developers to add styles and animations to their blocks of HTML code. CSS is a cornerstone technology in modern web development. It empowers frontend developers to transform plain HTML into visually captivating and interactive web experiences. Think of CSS as the creative medium that paints, refines, and brings digital designs to life.</p><p>Since its inception, CSS has undergone remarkable evolution. It began with CSS1, which introduced basic styling capabilities, and progressed through CSS2, which added more depth and complexity. Today, we celebrate CSS3 — often referred to as “Modern CSS” — which not only builds upon its predecessors but also introduces a suite of powerful features that enhance efficiency, maintainability, and creativity.</p><p>What then is now Modern CSS, basically, it is the refinement of the Older versions of CSS, which is more refactored, refined, and reusable. It enables developers to write cleaner code. It allows for the creation of fluid layouts and dynamics, responsive designs and animations.</p><p>In this article, we will delve into the transformative world of Modern CSS. We’ll explore the tools, techniques, and best practices that have redefined web styling, ensuring that designers and developers can craft stunning, user-centric experiences in today’s fast-paced digital landscape.</p><h3>REUSABLE CSS COMPONENTS</h3><p>In Older version of CSS, every single style rule had to be written out by hand for each HTML element — it was a tedious, sometimes tiring and frustrating process. CSS3 came, everything got a lot easier due to the introduction of reusable style components. Now, you can create modular pieces of styling that you can use over and over, making your life as a developer much simpler and your code much cleaner.</p><p>This helps when working on large projects, because as the projects grows, you can keep adding new elements, pages and you won’t have to worry about writing the styes from scratch because CSS3 helps create predefined components. All you have to do is to fit it into the new lines of code you already have. This ensures you can scale up projects without worrying about inconsistency.</p><p>It also makes sure the codes are easy to maintain. For example, if you want to tweak the color of buttons to add a variant, you would not need to look for all lines of code where you used <strong>“color: #000”</strong>, all you need to do is go to the component and change it from the source. This helps reduce the risk of errors.</p><p>Lastly, Consistency is guaranteed. Applying the same styles to similar elements, you create a coherent design that improves user experience. It reinforces brand identity and makes projects look more professional.</p><p>This principle of reusable, modular style components is actually the backbone of many popular CSS libraries like Tailwind, Bootstrap e.t.c.</p><h3>HIDDEN CSS GEMS</h3><p>CSS has various properties used in different selectors, but amongst all the properties and their values, I will be highlighting four less common and valuable properties and their corresponding values.</p><ol><li>The First one is the<strong> “display: table;”</strong>. This CSS declaration allows you to turn elements into table like format without having you use the &lt;table&gt; tag. It can be used in form elements. Below is an example</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/0*FzhStf4ifvMrstmD" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/0*AAOPJFz0XvvfJ1Hh" /></figure><p>This is one CSS property I feel people should use more often.</p><p>2. The Second would go to <strong>“border-image: url(https://medium.com/%E2%80%98border.png%E2%80%99) 30 round;”</strong> The property allows you to apply an image as a border around an element instead of using a solid color or gradient. Here is a preview below, and I’d say, it’s really cool trying this one out</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/0*asOFMoFk9e5sKFl6" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/0*obuiZFb2Y-K1Duoz" /></figure><p>It really looks like a frame, that’s so cool.</p><p>3. My third hidden css gem goes to<strong> “scroll-snap-type: mandatory;”</strong>. This property enables smooth scrolling by snapping elements in positions as users scrolls. It is mostly used in carousels, and mobile-friendly layouts. This ensures elements snap into view when scrolling, enhancing usability.</p><p>4. The fourth is <strong>“@container(){}”.</strong> Container queries allow you to apply styles based on an element’s container size instead of the viewport. This is useful for responsive components that adapt dynamically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/0*HijjHm5Y4gbP9Bzh" /></figure><h3>CONCLUSION</h3><p>Modern CSS has transformed web design by making development faster, more efficient, and visually dynamic. With reusable components, hidden gems, and advanced styling techniques, developers can now create scalable and maintainable designs with ease.</p><p>By using modular styles and exploring lesser-known CSS properties, we can build web interfaces that are both functional and visually appealing. As CSS continues to evolve, staying updated with its latest features will allow developers to push the boundaries of design, ensuring a more seamless and engaging user experience.</p><h3>REFERENCES</h3><ol><li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Reference">CSS reference — CSS: Cascading Style Sheets | MDN</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c9a9904dfdf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How the Web Works and Web Protocols: How Popular Services are Implemented]]></title>
            <link>https://medium.com/@peterfagoroye76/how-the-web-works-and-web-protocols-how-popular-services-are-implemented-f3c4a717ed6a?source=rss-4a818d210ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3c4a717ed6a</guid>
            <dc:creator><![CDATA[Peterfagoroye]]></dc:creator>
            <pubDate>Fri, 17 Jan 2025 20:47:56 GMT</pubDate>
            <atom:updated>2025-01-17T20:47:56.825Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Architecture of the Web</strong></p><p>The Web is a system of digital content and resources accessible through the internet. Web architecture refers to the design, creation, and implementation of internet-based programs. These programs often include websites containing information for users. Some of them also include web apps, progressive web apps (PWAs), and more. Despite their varying forms, they all serve the fundamental goal of delivering information tailored to users’ needs.</p><p><strong>A Brief Flashback to the Origin of the Web</strong></p><p>The World Wide Web (WWW) was conceptualized as a solution to communication challenges.</p><p>In 1989, <strong>Tim Berners-Lee</strong> introduced the web as a platform for sharing information and fostering collaboration. By 1990, he developed the first web server and browser at CERN. The Web was initially built using <strong>Hypertext Markup Language (HTML)</strong>, a language also invented by Berners-Lee.</p><p>This innovation sparked a revolution in technology, leading to the development of tools like <strong>CSS</strong> and <strong>JavaScript</strong>, which enhanced the web’s capabilities over time.</p><p><strong>Web Architecture</strong></p><p>Initially, the web operated on a simple two-tier architecture consisting of <strong>clients</strong> and <strong>servers</strong>. These two components worked together to fulfill user requests:</p><ul><li><strong>Clients</strong>: Typically, users’ devices (e.g., browsers) that request services or resources.</li><li><strong>Servers</strong>: Systems that respond to these requests by delivering the requested content or service.</li></ul><p>This basic architecture laid the foundation for more complex and scalable systems that support the modern web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*cJra_RaIVVG7VvzTrH6gJA.jpeg" /><figcaption>Web Architecture image</figcaption></figure><p><strong>Web Protocols: The Basis of the World Wide Web</strong></p><p>The Web is guided by protocols that form the foundation of the World Wide Web (WWW). These protocols are primarily based on the <strong>TCP (Transmission Control Protocol) / IP (Internet Protocol)</strong> reference model. Below are some key protocols and standards:</p><ul><li><strong>Communication Formats</strong>: Machines communicate using formats such as <strong>HTML</strong>, <strong>CSS</strong>, or <strong>XML</strong>.</li><li><strong>Data Transfer Protocols</strong>: The Web uses <strong>HTTP (Hypertext Transfer Protocol)</strong> or <strong>HTTPS (Hypertext Transfer Protocol Secure)</strong> for transferring data.</li><li><strong>Standardized Addressing</strong>: Web resources are identified using <strong>URLs (Uniform Resource Locators)</strong>.</li></ul><p><strong>Understanding Key Protocols</strong></p><p>Now you might wonder: what exactly do these protocols do? Let’s dive into the details of some of them.</p><p><strong>HTTP and HTTPS</strong></p><p>Every time we access a URL, it is prefixed with either <strong>HTTP</strong> or <strong>HTTPS</strong>. Have you ever wondered why? While both are communication protocols, they serve slightly different purposes.</p><p><strong>HTTP (Hypertext Transfer Protocol)</strong></p><p><strong>HTTP</strong> stands for <strong>Hypertext Transfer Protocol</strong>, where hypertext refers to text encoded with HTML. HTTP establishes a standard for communication between a web browser (client) and a web server.</p><ul><li>It operates using a <strong>request and response format</strong>:</li></ul><ol><li>The client sends an HTTP request to the server.</li><li>The server responds with an HTTP response, often containing the requested content.</li></ol><ul><li>HTTP defines rules for transferring data between computers, making it the backbone of web communication.</li></ul><p><strong>HTTPS (Hypertext Transfer Protocol Secure)</strong></p><p><strong>HTTPS</strong> stands for <strong>Hypertext Transfer Protocol Secure</strong>. The key difference lies in the “S,” which stands for <strong>Secure</strong>.</p><ul><li>HTTPS adds an additional layer of security to HTTP by encrypting the data exchanged between the client and the server.</li><li>This encryption is achieved using <strong>SSL (Secure Sockets Layer)</strong> or <strong>TLS (Transport Layer Security)</strong> protocols.</li><li>It is especially critical for transmitting sensitive and confidential information, such as personal details, passwords, or financial data.</li></ul><p>In essence, HTTPS is a combination of HTTP with encryption conventions (SSL/TLS) to ensure secure communication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*q1YDHfVEjwLdhGWD5Lsb2A.jpeg" /><figcaption>(https://media.geeksforgeeks.org/)</figcaption></figure><p><strong>HTML</strong></p><p><strong>HTML</strong> stands for <strong>HyperText Markup Language</strong>. It is the standard language used to create and structure content on the web. As the most fundamental building block of the web, HTML instructs browsers on how to display text, links, images, and other forms of multimedia on a webpage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*bchiG3KgN4WN004pVPFvXQ.png" /></figure><p>HTML uses “markup” to annotate text, images, and other content for display in a Web browser. This markup includes special elements in a “tag” such as &lt;head&gt;, &lt;body&gt;, &lt;header&gt;, &lt;section&gt;, &lt;h1&gt;, &lt;p&gt;, &lt;div&gt;, &lt;nav&gt; etc</p><p>A sample code of what HTML looks like</p><p><strong>&lt;!DOCTYPE html&gt;</strong></p><p><strong>&lt;html&gt;</strong></p><p><strong>&lt;head&gt;</strong></p><p><strong>&lt;title&gt;Welcome to the Web! &lt;/title&gt;</strong></p><p><strong>&lt;/head&gt;</strong></p><p><strong>&lt;body&gt;</strong></p><p><strong>&lt;style type=”text/css” media=”all”&gt;</strong></p><p><strong>h1 {</strong></p><p><strong>color: blue;</strong></p><p><strong>}</strong></p><p><strong>&lt;/style&gt;</strong></p><p><strong>&lt;h1&gt;Hello World! &lt;/h1&gt;</strong></p><p><strong>&lt;p&gt;Welcome to a preview of how the first web looks like! &lt;/p&gt;</strong></p><p><strong>&lt;a href=”http://info.cern.ch/hypertext/WWW/TheProject.html&quot;&gt;Link to the first webpage&lt;/a&gt;</strong></p><p><strong>&lt;/body&gt;</strong></p><p><strong>&lt;/html&gt;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*z_NBWjc5GyTnGedv6MBH9g.png" /></figure><p><strong>DNS</strong></p><p>DNS (Domain Name System) is a hierarchical and decentralized naming system for internet connected resources. DNS maintains a list of domain names along with the resources, such as IP addresses, that are associated with them.</p><p>What this protocol does is that it takes a domain name (such as <a href="http://www.risevest/academy">www.risevest/academy</a>) to a numeric IP address (such as <a href="https://mxtoolbox.com/SuperTool.aspx?action=a%3arisevest.com&amp;run=toolpage">172.67.166.2</a>).</p><p><strong>How Web Protocols Work Together: The Case of Netflix</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*IkLGea3Cleot4PcVjHoRKw.jpeg" /></figure><p>If you’re wondering how web protocols work together to create a simple web service, let’s examine Netflix as an example.</p><p>Netflix is a streaming platform where users can stream, watch, and download movies. Here’s how it all comes together:</p><p>The interface you see — featuring movies, the search button, and the cards displaying all the available content — is built using <strong>HTML</strong> and <strong>CSS</strong>.</p><ul><li>Netflix uses <strong>React</strong>, a JavaScript framework, for building dynamic and interactive components.</li><li>However, when the final interface is rendered in your browser, it is displayed in <strong>HTML</strong> form.</li></ul><p>When you sign up, click the play button, or search for a movie, this interaction involves a <strong>web server</strong>:</p><ol><li><strong>HTTPS Requests</strong>:</li></ol><ul><li>When you take an action, such as searching for a movie, an HTTPS request is sent from your browser to Netflix’s web server.</li><li>The server processes the request and sends back an HTTPS response containing the required data (e.g., search results).</li></ul><ol><li><strong>Client-Side Display</strong>:</li></ol><ul><li>The browser uses the response to display the information or perform the requested action, like playing a movie.</li></ul><p>The <strong>DNS (Domain Name System)</strong> ensures your request is routed correctly:</p><ul><li>When you enter <a href="http://www.netflix.com,/">www.netflix.com,</a> the DNS translates the domain name into an <strong>IP address</strong>.</li><li>This directs your request to the nearest <strong>Content Delivery Network (CDN)</strong> or server.</li><li>By splitting traffic among multiple servers, DNS reduces the load on individual servers and ensures fast, reliable access.</li></ul><p>Despite its scale, Netflix still follows the same basic protocols established in traditional web architecture. These include:</p><ul><li><strong>HTML and CSS</strong> for content display.</li><li><strong>HTTPS</strong> for secure data transfer.</li><li><strong>DNS</strong> for routing and load distribution.</li></ul><p>This same architecture applies to smaller web services, like JAMB or similar platforms, demonstrating the timeless effectiveness of these foundational protocols.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*Bz-nUTpMJidsDEkaHEW30w.png" /><figcaption>(<a href="https://www.tldraw.com/ro/i-N-GJzpXe5cpmpggUVvp?d=v-79.-173.879.825.page">https://www.tldraw.com/ro/i-N-GJzpXe5cpmpggUVvp?d=v-79.-173.879.825.page</a>)</figcaption></figure><p><strong>Conclusion</strong></p><p>The web has evolved significantly since its inception by Tim Berners-Lee in 1989. From its humble beginnings as a simple information-sharing platform built with HTML, it has grown into a sophisticated ecosystem of protocols, technologies, and services. Understanding web architecture and protocols is crucial for modern developers and technologists, as these fundamentals power everything from simple websites to complex applications like Netflix.</p><p>As the web continues to evolve, foundational elements like HTTPS, HTML, and DNS remain crucial to understanding how web services are built and maintained, ensuring reliable and secure information delivery across the internet.</p><p><strong>References</strong></p><p>1. Web Architecture</p><ul><li><a href="https://en.ryte.com/wiki/Web_Architecture/">Ryte Wiki: Web Architecture</a></li></ul><p>2. Domain Name System (DNS)</p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Glossary/DNS">Mozilla Developer Network: DNS</a></li></ul><p>3. HTML (HyperText Markup Language)</p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML">Mozilla Developer Network: HTML</a></li><li><a href="https://www.geeksforgeeks.org/html-basics/">GeeksforGeeks: HTML Basics</a></li></ul><p>4. HTTP and HTTPS</p><ul><li><a href="https://www.geeksforgeeks.org/difference-between-http-and-https/">GeeksforGeeks: Difference between HTTP and HTTPS</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3c4a717ed6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TWO FRONTEND FRAMEWORKS — REACT AND ANGULAR: Which should you choose?]]></title>
            <link>https://medium.com/@peterfagoroye76/two-frontend-frameworks-react-and-angular-which-should-you-choose-50460896f6f9?source=rss-4a818d210ad6------2</link>
            <guid isPermaLink="false">https://medium.com/p/50460896f6f9</guid>
            <dc:creator><![CDATA[Peterfagoroye]]></dc:creator>
            <pubDate>Fri, 28 Jun 2024 09:42:27 GMT</pubDate>
            <atom:updated>2024-06-28T09:42:27.194Z</atom:updated>
            <content:encoded><![CDATA[<h3>TWO FRONTEND FRAMEWORKS — REACT AND ANGULAR: Which should you choose?</h3><p>Choosing the right frontend frameworks can either make or break your web projects. In the world of frontend development, choosing the right framework is crucial for building efficient and user defined web applications. Over the years, we have had React and Angular dominate the market as the two most popular frameworks. No doubt, the two of them are aimed to simplify the development of web projects, the both have different architecture and strength and differences, which make the unique in their own way.</p><p>REACT</p><p>React is a JavaScript Library developed by Facebook in 2013 for building user interfaces, single page applications which requires fast and an interactive user experience. We all know react for it flexibility, and performance. It is quite simple to use and understand.</p><p>React has different features, some of which are;</p><p>· It helps in the creation of reusable UI components. Code are more organized and this makes it easier to maintain</p><p>· It uses virtual DOM to improve performance. All changes are first implemented in the virtual DOM before it is synchronized with the actual DOM.</p><p>· It has a JSX syntax that allows writing HTML within JavaScript. This makes the code easier to understand and this is one of my favourite feature.</p><p>React also allows developers to integrated the framework with other libraries. It also has it own tools and community support in which devs can draw in a lot of resources from.</p><p>ANGULAR</p><p>Angular is a framework that does the same work as React, but from stats, it shows that people uses React more.</p><p>It was released as AngularJS in 2010, but later in 2016, it was changed to Angular (Angular 2+).</p><p>Some key features are;</p><p>· It follows the Model-View-Controller (MVC) architecture, which is used in structuring the code written.</p><p>· It uses a two-way data binding that automatically synchronizes the model and the view. This reduces the amount of code that is needed to continuously update the User Interface.</p><p>· It is built on TypeScript, which is a superset of JavaScript.</p><p>You might be asking, what then is the differences between the two. React is much easier to learn than Angular. Most frontend developers use JavaScript and since React is built on JavaScript, it is easier to learn. But with Angular, you will have to learn TypeScript, which most developers don’t like because its strict dependency on type annotation.</p><p>React can easily be integrated with other libraries and frameworks, developers have a wide range of choice, but with Angular, it has a fixed structure and built in solutions.</p><p>As for me, I prefer React, though I cannot speak for you. So, let me hear you thought….</p><p>My Expectations and Experience with React at HNG</p><p>As an intern in HNG, I can’t wait to start working on more React projects. This will provide me with the opportunity to create more responsive and high performing web applications. I expect to meet and collaborate with my fellow interns, join hands together and tackle real-world projects. This will also help deepen my understanding of frontend development using React.</p><p>If you are interested in learning about HNG, you can check out <a href="https://hng.tech/internship">HNG Internship</a>. They also provide a collaborative working space where you can join like-minded techies, visit <a href="https://hng.tech/premium">HNG Tech</a></p><p><em>This article was written as part of my participation in the HNG Internship, where I am honing my skills in ReactJS and other frontend technologies.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50460896f6f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>