<?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 Chidi Confidence on Medium]]></title>
        <description><![CDATA[Stories by Chidi Confidence on Medium]]></description>
        <link>https://medium.com/@csirconfy?source=rss-392c3be031de------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xkcMo1dDH_kgqlsIpvoVXQ.jpeg</url>
            <title>Stories by Chidi Confidence on Medium</title>
            <link>https://medium.com/@csirconfy?source=rss-392c3be031de------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 02:44:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@csirconfy/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[The Power of Custom Properties in CSS]]></title>
            <link>https://medium.com/@csirconfy/the-power-of-custom-properties-in-css-7da0d54a80ff?source=rss-392c3be031de------2</link>
            <guid isPermaLink="false">https://medium.com/p/7da0d54a80ff</guid>
            <dc:creator><![CDATA[Chidi Confidence]]></dc:creator>
            <pubDate>Fri, 01 Sep 2023 23:59:54 GMT</pubDate>
            <atom:updated>2023-09-06T07:46:30.849Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p3a_XB8iIggMXD2W" /></figure><p>by <a href="https://blog.openreplay.com/authors/chidi-confidence">Chidi Confidence</a></p><blockquote>CSS custom properties, commonly known as variables, are powerful features that allow developers to define reusable values within their stylesheets. By utilizing custom properties, developers can significantly enhance code reusability and maintainability, and create dynamic styles for their web projects. This article aims to comprehensively explain CSS custom properties and their application using the var function.</blockquote><p>CSS custom properties, denoted by their names starting with two hyphens, (--), act as containers for holding values that can be reused throughout the stylesheet. These custom properties can store various data types, including colors, measurements, and even strings. The primary purpose of CSS custom properties is to make it easier to manage and update repetitive values across the entire CSS document. A good way to use CSS variables is when it comes to the colors of your design. Instead of copying and pasting the same colors over and over again, you can place them in variables.</p><p>With traditional CSS, repetitive values must be manually replaced whenever changes are required. This process can be time-consuming and prone to errors, especially in large projects. Custom properties solve this problem by allowing developers to store values in a centralized manner, making it simple to modify them globally.</p><h3>The Traditional CSS</h3><p>The following example shows the traditional way of defining some colors in a style sheet (by defining the colors to use for each specific element):</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br><br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>  &lt;title&gt;Document&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;style&gt;<br>  body {<br>    background-color: #738fab;<br>  }<br><br>  h2 {<br>    border-bottom: 2px solid #1e90ff;<br>  }<br><br>  .container {<br>    color: #1e90ff;<br>    background-color: #ffffff;<br>    padding: 15px;<br>  }<br><br>  button {<br>    background-color: #ffffff;<br>    color: #1e90ff;<br>    border: 1px solid #1e90ff;<br>    padding: 5px;<br>  }<br>&lt;/style&gt;<br><br>&lt;body&gt;<br>  &lt;h1&gt;The Traditional Way&lt;/h1&gt;<br>  &lt;div class=&quot;container&quot;&gt;<br>    &lt;h2&gt;My header&lt;/h2&gt;<br>    &lt;p&gt;This is a sample paragraph using the primary colour defined by the CSS variable.&lt;/p&gt;<br>    &lt;p&gt;This is another paragraph within the container.&lt;/p&gt;<br>    &lt;button&gt;Yes&lt;/button&gt;<br>    &lt;button&gt;No&lt;/button&gt;<br>  &lt;/div&gt;<br>&lt;/body&gt;<br><br>&lt;/html&gt;</pre><p>The output is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*cjYxqC-8pei_kIX3.png" /></figure><p>This code creates a simple HTML document with CSS styles for a blue-themed page. The page’s background color is a shade of blue, the headings have blue underlines, and there is a container with a white background, blue text, and padding around its contents. Additionally, two buttons are styled with blue text, white background, and blue borders. In this traditional way, you noticed that the class .container and the button selector button in the CSS style have the same color and background-color values.</p><p>However, the code could be improved for larger projects. In the CSS styles, both the .container class and the button selector have the same color and background-color values set to blue and white, respectively. It would be cumbersome if you need to adjust the colors for the entire project because you have to change each value separately.</p><p>To make things easier to manage in larger projects, using the variables var function is recommended. Using variables, you can define color values in one place and reuse them throughout the stylesheets. This way, if you want to change the colors later on, you only need to modify the variable values, and it will update the colors across the entire project.</p><h3>Importance of Using var functions in CSS</h3><p>The var function is the key to unlocking the potential of CSS custom properties. It enables the usage of the stored custom property values throughout the stylesheet. Using the var function, developers can reference the custom property value wherever needed, making it easier to maintain consistency and update values across the project.</p><p>The benefits of using the var function, as it will be demonstrated in detail in this article, include:</p><ol><li>Code Reusability: With var, developers can reuse the same custom property value at multiple locations within the stylesheet, reducing redundancy and improving maintainability.</li><li>Global Changes: Since custom properties are defined globally, modifying their values can instantly apply changes to all elements that utilize the specific variable.</li><li>Dynamic Styling: By combining var with other CSS functions and expressions, developers can create dynamic and adaptive styles that adjust based on user interactions, viewport sizes, or other conditions.</li></ol><h3>Exploring CSS Custom Properties</h3><p>Let’s get into CSS custom properties now.</p><h3>Definition and Syntax of CSS Custom Properties</h3><p>Defining a CSS custom property involves using the -- prefix followed by a unique name and assigning it a value. The syntax is as follows:</p><pre>:root {<br>  --custom-property-name: value;<br>}</pre><p>In the above syntax, :root refers to the highest-level element (usually the html tag) and ensures that the custom property is available globally. However, custom properties can also be defined within specific elements to create local scope, which we&#39;ll explore later.</p><h3>How to use CSS variables</h3><p><strong>Defining CSS Variables:</strong> To define a CSS variable, you declare it within a selector block or the :root pseudo-class, which makes it global and accessible throughout the stylesheet. Here&#39;s an example of defining CSS variables:</p><pre>:root {<br>  --primary-color: #1e90ff;<br>  --background-color: #738fab;<br>  --button-padding: 5px;<br>}</pre><p>In this example, we’ve defined three variables with their respective values: -primary-color, --background-color, and --button-padding.</p><p><strong>Using CSS Variables:</strong> You can use the defined CSS variables by referencing them with the var() function. Here&#39;s how you can use the variables in your styles:</p><pre>body {<br>  background-color: var(--background-color);<br>}<br><br>h2 {<br>  border-bottom: 2px solid var(--primary-color);<br>}<br><br>.container {<br>  color: var(--primary-color);<br>  background-color: #ffffff;<br>  padding: var(--button-padding);<br>}<br><br>button {<br>  background-color: #ffffff;<br>  color: var(--primary-color);<br>  border: 1px solid var(--primary-color);<br>  padding: var(--button-padding);<br>}</pre><p>In this example, we’ve used the CSS variables --background-color, --primary-color, and --button-padding in the appropriate styles, making it easy to apply consistent values across the entire stylesheet.</p><p>Full Code</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br><br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>  &lt;title&gt;Example Page&lt;/title&gt;<br>  &lt;style&gt;<br>    :root {<br>      --background-color: #e910cc;<br>      --primary-color: #000000;<br>      --button-padding: 5px;<br>    }<br><br>    body {<br>      background-color: var(--background-color);<br>    }<br><br>    h2 {<br>      border-bottom: 2px solid var(--primary-color);<br>    }<br><br>    .container {<br>      color: var(--primary-color);<br>      background-color: #ffffff;<br>      padding: var(--button-padding);<br>    }<br><br>    button {<br>      background-color: #ffffff;<br>      color: var(--primary-color);<br>      border: 1px solid var(--primary-color);<br>      padding: var(--button-padding);<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br><br>&lt;body&gt;<br>  &lt;h1&gt;Example of using var function&lt;/h1&gt;<br>  &lt;div class=&quot;container&quot;&gt;<br>    &lt;h2&gt;Lorem Ipsum&lt;/h2&gt;<br>    &lt;p&gt;This is a sample paragraph using the primary color defined by the CSS variable.&lt;/p&gt;<br>    &lt;p&gt;This is another paragraph within the container.&lt;/p&gt;<br>    &lt;p&gt;<br>      &lt;button&gt;Click Me&lt;/button&gt;<br>      &lt;button&gt;Submit&lt;/button&gt;<br>    &lt;/p&gt;<br>  &lt;/div&gt;<br>&lt;/body&gt;<br><br>&lt;/html&gt;</pre><p>We’ve created a simple HTML page with the provided CSS styles in this example. The :root level CSS variables are set for --background-color, --primary-color, and --button-padding. Then, the CSS styles use these variables to style the elements accordingly.</p><p>The&lt;body&gt; background color is set using var(--background-color), the &lt;h2&gt; element&#39;s bottom border color is set using var(--primary-color), and the .container&#39;s text color, background color, and padding are set using var(--primary-color) and var(--button-padding) respectively. Similarly, the &lt;button&gt; elements use the defined CSS variables for their text color, background color, border color, and padding.</p><p>Adjusting the color scheme becomes much easier by using these variables throughout the styles. Changing the value of --background-color or --primary-color in the :root will instantly apply the new colors to the entire page, including the background, headings, containers, and buttons. This approach offers a convenient way to maintain and update the color theme for the entire project from a central location.</p><p>The output is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/0*kvOncicHYopIpNYa.png" /></figure><h3>Browser Support and Compatibility Consideration</h3><p>CSS custom properties, including the var function, enjoy widespread browser support, with compatibility extending to modern versions of major browsers, including Chrome, Firefox, Safari, Edge, and Opera. However, verifying the specific versions supported to ensure compatibility with older browsers is essential, especially if you need to support Internet Explorer.</p><p>As of writing this article, most modern browsers provide excellent support for CSS custom properties and the var function, making it a reliable feature for contemporary web development.</p><h3>Session Replay for Developers</h3><p><em>Uncover frustrations, understand bugs and fix slowdowns like never before with </em><a href="https://github.com/openreplay/openreplay"><strong><em>OpenReplay</em></strong></a><em> — an open-source session replay suite for developers. It can be </em><strong><em>self-hosted</em></strong><em> in minutes, giving you complete control over your customer data.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*i3lTSr2mkmy0gvUCYncfbQ.png" /></figure><p><em>Happy debugging! </em><a href="https://openreplay.com/"><em>Try using OpenReplay today.</em></a></p><h3>Managing Global and Local Scope</h3><p>CSS custom properties have either a global or local scope. When defined within :root, the custom property is accessible globally and can be used anywhere in the stylesheet. On the other hand, defining a custom property within a specific selector limits its scope to that selector and its descendants.</p><h3>Global Scope Variable</h3><p>Global variables are ideal for values that must be consistent throughout the project. For instance, theme colors, spacing values, or typography scales can be defined as global variables to maintain consistency.</p><p>Example code</p><pre>:root {<br>  /* Global variables for theme colors */<br>  --primary-color: #007bff;<br>  --secondary-color: #6c757d;<br>  --accent-color: #ffc107;<br>  --text-color: #333333;<br>  --background-color: #f8f8f8;<br><br>  /* Global variables for spacing values */<br>  --spacing-small: 8px;<br>  --spacing-medium: 16px;<br>  --spacing-large: 24px;<br><br>  /* Global variables for typography */<br>  --font-family: &#39;Arial&#39;, sans-serif;<br>  --font-size-small: 14px;<br>  --font-size-medium: 18px;<br>  --font-size-large: 24px;<br>}<br><br>/* Example of using the global variables for theme colors */<br>.theme-element {<br>  color: var(--text-color);<br>  background-color: var(--background-color);<br>}<br><br>/* Example of using the global variables for spacing values */<br>.spacer {<br>  margin: var(--spacing-medium);<br>}<br><br>/* Example of using the global variables for typography */<br>.custom-text {<br>  font-family: var(--font-family);<br>  font-size: var(--font-size-large);<br>}</pre><p>Here’s an explanation of the code:</p><ol><li>The :root selector is a special selector that represents the document&#39;s root, in this case, the HTML document. This block sets several global variables for theme colors, spacing values, and typography. These variables are prefixed with -- to indicate they are custom properties.</li><li>The --primary-color, --secondary-color, --accent-color, --text-color, and --background-color are custom properties for theme colors. They are assigned specific color values. For example, --primary-color is set to #007bff (a shade of blue).</li><li>The--spacing-small, --spacing-medium, and --spacing-large are custom properties for spacing values. They are assigned different numeric values representing pixel units. For example, --spacing-medium is set to 16px.</li><li>The --font-family, --font-size-small, --font-size-medium, and --font-size-large are custom properties for typography. They set the font family and font size for different elements.</li><li>The .theme-element class uses the custom properties for theme colors. It sets the color property to var(--text-color), which resolves to --text-color value. Similarly, it sets thebackground-color property to var(--background-color).</li><li>The .spacer class uses the custom properties for spacing. It sets the margin property to var(--spacing-medium), which resolves to --spacing-medium value.</li><li>The .custom-text class uses the custom properties for typography. It sets the font-family property to var(--font-family), which resolves to --font-family value. It also sets the font-size property to var(--font-size-large), which resolves to --font-size-large value.</li></ol><p>Here’s a full HTML file with an internal CSS style to demonstrate the usage of this global scope:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br><br>&lt;head&gt;<br>  &lt;style&gt;<br>    :root {<br>      /* Global variables for theme colors */<br>      --primary-color: #007bff;<br>      --secondary-color: #6c757d;<br>      --accent-color: #ffc107;<br>      --text-color: #333333;<br>      --background-color: #f8f8f8;<br><br>      /* Global variables for spacing values */<br>      --spacing-small: 8px;<br>      --spacing-medium: 16px;<br>      --spacing-large: 24px;<br><br>      /* Global variables for typography */<br>      --font-family: &#39;Arial&#39;, sans-serif;<br>      --font-size-small: 14px;<br>      --font-size-medium: 18px;<br>      --font-size-large: 24px;<br>    }<br><br>    /* Example of using the global variables for container border */<br>    .container {<br>      border: 2px solid var(--text-color);<br>    }<br><br>    /* Example of using the global variables for theme colors */<br><br>    .theme-element {<br>      color: var(--text-color);<br>      background-color: var(--background-color);<br>      padding: var(--spacing-medium);<br>    }<br><br>    /* Example of using the global variables for spacing values */<br>    .spacer {<br>      margin: var(--spacing-medium);<br>    }<br><br>    /* Example of using the global variables for typography */<br>    .custom-text {<br>      font-family: var(--font-family);<br>      font-size: var(--font-size-large);<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br><br>&lt;body class=&quot;container&quot;&gt;<br>  &lt;div class=&quot;theme-element&quot;&gt;<br>    This is a themed element with custom colors and spacing.<br>  &lt;/div&gt;<br>  &lt;div class=&quot;spacer&quot;&gt;<br>    This element has spacing applied using custom properties.<br>  &lt;/div&gt;<br>  &lt;div class=&quot;custom-text&quot;&gt;<br>    This text uses the custom font-family and font-size.<br>  &lt;/div&gt;<br>&lt;/body&gt;<br><br>&lt;/html&gt;</pre><p>In this example, you’ll see four different classes: .container, .theme-element, .spacer, and .custom-text, each demonstrating the use of custom properties for theme colors, spacing, and typography, respectively. The custom properties defined in the :root block are applied to these elements, providing consistent and reusable styles throughout the document.</p><p>The output is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*x1cktQK_9DY_2hpG.png" /></figure><h3>Local Scope Variable</h3><p>Local variables, on the other hand, are useful for specific component styles or cases where you need different values in different parts of the project. This can prevent unintended side effects when modifying global variables.</p><p>Example code</p><pre>/* Local component styles using local variables */<br>.component-container {<br>  /* Local variables for this component */<br>  --button-background-color: #ffc107;<br>  --button-text-color: #ffffff;<br>  display: flex;<br>  flex-direction: column;<br>  align-items: center;<br>  margin: 24px;<br>}<br><br>.component-button {<br>  /* Using local variables for button styles */<br>  background-color: var(--button-background-color);<br>  color: var(--button-text-color);<br>  font-size: 16px;<br>}</pre><p>We use local variables for specific components by defining CSS custom properties inside the .component-container class. Each component can have its local variables to customize its appearance.</p><p>The .component-button class inside the .component-container uses these local variables for background color and text color, which are unique to each component. This way, modifying the local variables only affects the respective component&#39;s styles and does not interfere with other components or global styles. This approach prevents unintended side effects when modifying global variables.</p><p>Here’s an example to illustrate the code:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br><br>&lt;head&gt;<br>  &lt;style&gt;<br>    /* Local component styles using local variables */<br>    .component-container {<br>      /* Local variables for this component */<br>      --button-background-color: #ffc107;<br>      --button-text-color: #ffffff;<br>      display: flex;<br>      flex-direction: column;<br>      align-items: center;<br>      margin: 24px;<br>    }<br><br>    .component-button {<br>      /* Using local variables for button styles */<br>      background-color: var(--button-background-color);<br>      color: var(--button-text-color);<br>      font-size: 16px;<br>      padding: 8px 16px;<br>      border: none;<br>      border-radius: 4px;<br>      cursor: pointer;<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br><br>&lt;body&gt;<br>  &lt;div class=&quot;component-container&quot;&gt;<br>    &lt;button class=&quot;component-button&quot;&gt;Click me!&lt;/button&gt;<br>  &lt;/div&gt;<br>&lt;/body&gt;<br><br>&lt;/html&gt;</pre><p>In this example, we have a simple HTML document with a component container that contains a button with the class component-button. The .component-container class defines local variables --button-background-color and --button-text-color, which are specific to this component.</p><p>The .component-button class uses these local variables to style the background-color and color buttons. Instead of hardcoding colors directly in the .component-button class, we use var(--button-background-color) and var(--button-text-color) to reference the values defined in the .component-container class.</p><p>This way, the button will always have the background and text color defined by the local variables in its parent .component-container. If you use the .component-container class in multiple places on your website, you can easily modify the button&#39;s appearance by changing the values of the local variables in that particular container.</p><p>This approach promotes the reusability and maintainability of component styles by encapsulating them within their respective containers, making it easier to manage and update styles across your website.</p><p>The output is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/153/0*KVcoqoXS2DluFjwm.png" /></figure><h3>Avoiding Naming Conflicts and Maintaining a Clean Stylesheet</h3><p>Use descriptive names for custom properties to avoid naming conflicts with existing or future CSS properties. Additionally, it’s good practice to document the purpose of each custom property to ensure clarity for anyone working with the stylesheet.</p><p>Maintaining a clean and organized stylesheet involves grouping related custom properties and adopting a consistent naming convention.</p><h3>Example Code</h3><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br><br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>  &lt;title&gt;Clean Stylesheet Example&lt;/title&gt;<br>  &lt;style&gt;<br>    /* Define a CSS custom property for primary color */<br>    :root {<br>      --main-background-primary-color: #000000;<br>      --main-button-background-primary-color: #0d5a9e;<br>      --main-primary-font-size: 16px;<br>      --main-primary-text-color-one: #ffffff;<br>      --main-primary-text-color-two: rgb(46, 46, 128);<br>    }<br><br>    /* Define a CSS custom property for secondary color */<br>    :root {<br>      --main-button-secondary-color: #0d5a9e;<br>      --main-background-secondary-color: #686d71;<br>      --main-secondary-font-size: 18px;<br>    }<br><br>    /* Define a CSS custom property for font family */<br>    :root {<br>      --main-font-family: &#39;Arial&#39;, sans-serif;<br>    }<br><br>    /* Navigation Styles */<br>    .navigation {<br>      display: flex;<br>      align-items: center;<br>      background-color: var(--main-background-primary-color);<br>      color: var(--main-primary-text-color-one);<br>      font-family: var(--main-font-family);<br>      padding-left: 30%;<br>    }<br><br>    .logo {<br>      margin-right: 20px; <br>      flex-grow: 0.5; /* Add space between logo and ul items */<br>    }<br><br>    ul {<br>      list-style: none;<br>      display: flex;<br>      margin: 0;<br>      padding: 0;<br>      gap: 20px; /* Add 20px gap between li items */<br>    }<br><br>    /* Individual LI styles */<br>    li {<br>      margin-right: 10px; /* Add space between the li items */<br>    }<br><br>    .hero-section {<br>      display: flex;<br>      justify-content: center; /* Horizontally center content */<br>      align-items: center; /* Vertically center content */<br>      height: 40vh; /* Adjust the height as needed */<br>      background-color: var(--main-background-secondary-color);<br>    }<br><br>    /* Styles for the content within the hero section */<br>    .container {<br>      text-align: center;<br>    }<br><br>    .container h3 {<br>      font-size: 24px;<br>    }<br><br>    /* Button Styles */<br>    .button {<br>      background-color: var(--main-button-background-primary-color);<br>      color: var(--main-primary-text-color-one);<br>      font-family: var(--main-font-family);<br>      padding: 8px 16px;<br>      font-size: var(--main-primary-font-size);<br>      border: none;<br>      border-radius: 4px;<br>      cursor: pointer;<br>    }<br><br>    /* Input Styles */<br>    .input {<br>      border: 1px solid var(--main-background-primary-color);<br>      padding: 6px;<br>      font-family: var(--main-font-family);<br>    }<br><br>    main {<br>      display: flex;<br>      justify-content: center; /* Adjust the height as needed */<br>      align-items: center; /* Center content horizontally */<br>      height: 20vh;  /* Adjust the height as needed */<br>    }<br><br>    /* Footer Styles */<br>    .footer {<br>      background-color: var(--main-background-primary-color);<br>      color: var(--main-primary-text-color-one);<br>      font-family: var(--main-font-family);<br>      font-size: var(--main-primary-font-size);<br>      text-align: center;<br>      height: 25vh;<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br><br>&lt;body&gt;<br>  &lt;header&gt;<br>    &lt;nav class=&quot;navigation&quot;&gt;<br>      &lt;h2 class=&quot;logo&quot;&gt;Logo&lt;/h2&gt;<br>      &lt;ul&gt;<br>        &lt;li&gt;Home&lt;/li&gt;<br>        &lt;li&gt;About&lt;/li&gt;<br>        &lt;li&gt;Contact&lt;/li&gt;<br>      &lt;/ul&gt;<br>    &lt;/nav&gt;<br>  &lt;/header&gt;<br>  &lt;section&gt;<br>    &lt;div class=&quot;hero-section&quot;&gt;<br>      &lt;div class=&quot;container&quot;&gt;<br>        &lt;h3&gt;Click to Download document!&lt;/h3&gt;<br>        &lt;button class=&quot;button&quot;&gt;Download&lt;/button&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/section&gt;<br>  &lt;main&gt;<br>    &lt;input type=&quot;text&quot; class=&quot;input t&quot; placeholder=&quot;Enter your name&quot;&gt;<br>    &lt;button class=&quot;button&quot;&gt;Submit&lt;/button&gt;<br>  &lt;/main&gt;<br><br>  &lt;footer class=&quot;footer&quot;&gt;<br>    &lt;p&gt;&amp;copy; 2023 My Website. All rights reserved.&lt;/p&gt;<br>  &lt;/footer&gt;<br>&lt;/body&gt;<br><br>&lt;/html&gt;</pre><p>In this code snippet, we created descriptive names for the CSS custom properties, such as --main-background-primary-color, --main-button-background-primary-color,--main-primary-font-size, --main-primary-text-color-one, --main-primary-text-color-two,--main-button-secondary-color, --main-background-secondary-color,--main-secondary-font-size and --main-font-family. Each custom property represents a specific aspect of the style.</p><p>We group related styles using comments to separate the navigation, section, main, button, input, and footer styles. This helps maintain a clean and organized stylesheet.</p><p>Furthermore, we adopt a consistent naming convention by using the “main-” prefix for all custom properties related to the main theme. This naming convention helps avoid naming conflicts with existing or future CSS properties, making it easier for other developers to understand the purpose of each custom property.</p><p>By following these practices, we ensure clarity and prevent conflicts, resulting in a cleaner and more maintainable stylesheet.</p><p>The output is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*O7w7M2qLXL2r3O9d.png" /></figure><h3>Conclusion</h3><p>CSS custom properties and the var function offer web developers a powerful tool to enhance code reusability and maintainability. By defining custom properties, you can easily centralize repetitive values and apply changes globally. The var function allows you to reference these custom properties, enabling dynamic styles and simplifying the management of values throughout your project.</p><p>As you delve deeper into web development, mastering custom properties and var will undoubtedly contribute to more efficient and organized stylesheets, making your codebase easier to manage and maintain.</p><p><em>Originally published at </em><a href="https://dev.to/asayerio_techblog/the-power-of-custom-properties-in-css-gm5"><em>https://dev.to</em></a><em> on September 1, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7da0d54a80ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Better Alerts with Sweetalert2 for React apps]]></title>
            <link>https://medium.com/@csirconfy/better-alerts-with-sweetalert2-for-react-apps-262148dd58e5?source=rss-392c3be031de------2</link>
            <guid isPermaLink="false">https://medium.com/p/262148dd58e5</guid>
            <dc:creator><![CDATA[Chidi Confidence]]></dc:creator>
            <pubDate>Wed, 15 Feb 2023 01:30:39 GMT</pubDate>
            <atom:updated>2023-03-04T20:27:29.649Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*k0oMPmmWE6x4SYPngIXxTA.png" /></figure><p>by <a href="https://blog.openreplay.com/authors/chidi-confidence">Chidi Confidence</a></p><p>When building applications, one of the main things developers find tedious is working with pop-ups or modals. Sometimes they would like to alert the user but do not want to use the basic windows alert functionality. This is where the Sweetalert2 library comes in.</p><p>Sweetalert2 is a way to customize alerts in your games and websites. It allows you to change from a standard JavaScript button, and we can add buttons, change the colour text, and even add additional alerts that change depending on the user’s click.</p><p>This article will show you how to install and use this exciting library.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/0*yajspPhp7mtscO55.png" /></figure><h3>Installation</h3><p>First, your React app should be created on your local machine.</p><ol><li>npx create-react-app my-app</li><li>npm install sweetalert2</li></ol><p>Or grab from<strong> </strong><a href="https://www.jsdelivr.com/package/npm/sweetalert2"><strong>jsdelivr CDN</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/0*7jHlvRbdQtOnzZPU.png" /></figure><ol><li>npm run start</li></ol><h3>Usage</h3><p>There are several ways in which Sweetalert2 can be used:</p><ol><li>Initialize the plugin by referencing the necessary files:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/0*6jLZMl5gZRNjF0ls.png" /></figure><p>You can also include the stylesheet separately if desired:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/0*lYrwzgedj8ZHtVCr.png" /></figure><p><strong>Or</strong></p><p>import it in the JS file you will be using the alert.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/0*BgO73h3vQgm43mPd.png" /></figure><p>Now you have access to the alert and can customize it in any way you want.</p><p>Swal.fire({<br> title: ‘Error!’,<br> text: ‘Do you want to continue?’,<br> icon: ‘error’,<br> confirmButtonText: ‘Cool’<br>})</p><p>This code is an example taken directly from sweetalert2 the documentation. You can see it in action in the <a href="https://codesandbox.io/s/optimistic-lederberg-w3bt42?file=/src/App.js">Live Demo</a></p><p>The most simple alert takes in 4 settings.</p><ul><li>The first is the title; it can be a string or whatever you want to show up on the top of the alert.</li><li>The second is the text parameter. This is usually where you can add the information on why the alert popped up. Examples would be &quot;Wrong username or password&quot;, &quot;Successfully created the record&quot;, etc.</li><li>The third parameter is the icon: success, error, warning, info, and question. The Sweetalert2 library automatically generates the icon.</li><li>The last parameter is the type of button(confirmButtonText) you would like to use and what text you want it to show inside the button.</li></ul><h3>Session Replay for Developers</h3><p><em>Uncover frustrations, understand bugs and fix slowdowns like never before with </em><a href="https://github.com/openreplay/openreplay"><strong><em>OpenReplay</em></strong></a><em> — an open-source session replay suite for developers. It can be </em><strong><em>self-hosted</em></strong><em> in minutes, giving you complete control over your customer data</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*wqI6dWfIqbQvj829.png" /></figure><p><em>Happy debugging! </em><a href="https://openreplay.com/"><em>Try using OpenReplay today.</em></a></p><h3>Icons</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/0*XbfYG7R3x1qQwRdR.png" /></figure><p>You can also do much more with it since once the alert finishes, it returns a promise. You do have the option to handle the promise and do other actions depending on the result.</p><p>import React from “react”;<br>import “./styles.css”;<br>import Swal from “sweetalert2”;</p><p>export default function App() {<br> const Alert = () =&gt; {<br> Swal.fire({<br> title: “Are you sure?”,<br> text: “You will be redirected”,<br> icon: “warning”,<br> showCancelButton: true,<br> cancelButtonColor: “#d33”,<br> confirmButtonText: “Okay”<br> }).then(function () {<br> // Redirect the user<br> window.location.href = “/”;<br> });<br> };<br> return (<br> &lt;div className=”style”&gt;<br> &lt;button onClick={Alert}&gt;click&lt;/button&gt;<br> &lt;/div&gt;<br> );<br>}</p><p>Sweetalert2 uses promises to track how the user interacts with the alert. The following code above is an example of handling a promise in Sweetalert2. The first is to import the Sweetalert2 in the js file (import Swal from &quot;sweetalert2&quot;). Inside the functional component, an arrow function invokes the Swal.fire function when called. The title is a string that passes the icon&#39;s message. The text is also a string. The icon pops up warning icon generated by the library. The showCancelButton sets the cancel button to be true to be able to show the cancel button, while the cancelButtonColor accepts a CSS which gives color to the cancel button. The confirmButtonText is the type of button you would like to use and what text you want it to display inside the button. The .then() is a function that returns a promise. On click of the button &quot;Click&quot; you call/invoke the function &quot;Alert&quot;. <a href="https://codesandbox.io/s/wqssvx">View Live Demo</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/0*N1t9kFbXcu4cCI0x.png" /></figure><p>output sample of the above code</p><p>Here the warning icon ❗ is displayed, telling the user they will be redirected to another page, and the user should click Okay or Cancel.<br> On click of okay(the confirm button), the user is redirected to the “/” route, and On click of the cancel button, the modal closes.</p><p>If you have read this far, you can now implement Sweetalert2 on your project. This is how Sweetalert2 can be implemented in the React.js project.</p><h3>Conclusion</h3><p>Sweetalert2 is a library that is easy to install and use. Its main usage is to alert the user with whatever info you want. The alerts are styled to be very clean and minimalistic. That way, they can fit into any application you are building!</p><p>Sweetalert2 makes an alert box more attractive and easier to design. It automatically centers itself on the page and looks great, whether using a desktop computer, mobile, or tablet. It’s highly customizable, as shown in the live Demo above.</p><p>For more examples, you can read the documentation. <a href="https://sweetalert2.github.io/">https://sweetalert2.github.io/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*dkzPNcW4ZpE42_p-.png" /></figure><p><em>Originally published at </em><a href="https://dev.to/asayerio_techblog/better-alerts-with-sweetalert2-for-react-apps-1bo"><em>https://dev.to</em></a><em> on February 15, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=262148dd58e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My TIIDELab Experience 5.0 (Finishing Touches)]]></title>
            <link>https://medium.com/@csirconfy/my-tiidelab-experience-5-0-finishing-touches-2bfbfc0b1a90?source=rss-392c3be031de------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bfbfc0b1a90</guid>
            <dc:creator><![CDATA[Chidi Confidence]]></dc:creator>
            <pubDate>Tue, 22 Nov 2022 04:16:45 GMT</pubDate>
            <atom:updated>2022-11-22T04:16:45.402Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BHAPIF4UsPNW6QbQ4EY8ig.jpeg" /></figure><p><em>“A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty.” </em>~ <strong>Winston Churchill</strong></p><p>Wow it’s already my fifth month in TIIDELab, where do I even begin? Maybe with gratitude because I do not know what these past five months would have been like if I did not join TIIDELab. In the second to final lap at TIIDELab, we had a plan to put the finishing touches on our projects.</p><p>We started the month like always, with our morning sessions (Standup) and everyday learning React.js and using the knowledge to work on our projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0x0Bp6TC6I3HRvIXdXQ_mA.jpeg" /><figcaption>Senator representing Abia south senatorial district</figcaption></figure><p>We started the first Friday meetup of the month with the celebration of Nigeria Independence day. On this special day, we remembered our past hero and celebrate the victory of the struggle to gain the independence. Our Big Brother <strong>Mr. Shamsudeen Aderoju</strong> encouraged us to participate positively in all aspects especially politics towards the growth of the country. It was really fun as I played the role of senator representing my district from my state to define and decide in a seating relating to country current problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7SM_znmI3efDPWINCGE4og.png" /><figcaption>Conversion of HTML to JSX</figcaption></figure><p>We continued our react.js class, applying what is taught immediately on a mini project we are building in the class (Todo List App). At this point, we’ve learnt some of the basics in react and how beautiful it is in web development. Also, we continued converting our Team project from HTML and JavaScript to react, it’s a lot easier with U<strong>nclebigbay</strong> helping us with the necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sYFIUY5z3UImLW5HYq1Caw.png" /><figcaption>Interview Preparation with my mentor</figcaption></figure><p>One of the most interesting part of this month was the knowledge shared by my mentor on how to ace interview questions. She began by given us some areas of concentration where we can focus and master the way to communicate those areas to the interviewer. Wen we had a session with her, we discussed those areas in detail and the reason why it is been asked always. Before the interview prep. with my mentor, I already had an interview where I was asked how much can I be paid? which I never knew that it could be part of assessment in an interview until my mentor started dishing out the reason why it is part of interview questions (reason is to know if you the applicant really know your value).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ius9hH4pgfyZYUP6HhPWPw.jpeg" /><figcaption>Mr. Lanre</figcaption></figure><p>In one of the soft skill class, We were really honoured by the presence the managing director of TIIDElab who visited us, and he taught us about the <strong>Business Side of Software Development. </strong>We were taught on the following sub-topics: Entrepreneur, Intrapreneur, Hard Skills and Soft skills which every software developer must have. It was quite insightful and we learnt a lot from his teaching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bJQuCzSY7x0Lz3Ka17DIhQ.jpeg" /><figcaption>TIIDELab Alumni</figcaption></figure><p>TIIDELAB will always prepare you for the future and this time, a past fellow was invited to give us an insight about the expectations in labour market. He encouraged us to keep our head high, how we should approach interviews, also to work on our communication and negotiations skills as this two is the most relevant skills after understanding the logics to solving code problems.</p><p>Finally, it has been a wonderful and the most resourceful month. A lot to write, but if you want to know more and all about my journey/experience at TIIDELab keep a watch on my final article which I will drop very soon.</p><p>There has been a significant growth in my knowledge and understanding compared to before I became a TIIDELab fellow and I am glad I applied and was accepted to be part of this journey. I am already feel more confident about myself and more focused, I am eager to see where I will be in the next two months. I want to express my gratitude towards everyone at TIIDELab for bringing me this far.</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bfbfc0b1a90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My TIIDELab Experience 4.0 (Fourth Month)]]></title>
            <link>https://medium.com/@csirconfy/my-tiidelab-experience-4-0-fourth-month-ed954b102daf?source=rss-392c3be031de------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed954b102daf</guid>
            <dc:creator><![CDATA[Chidi Confidence]]></dc:creator>
            <pubDate>Sun, 16 Oct 2022 14:10:15 GMT</pubDate>
            <atom:updated>2022-10-16T14:10:15.495Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6jCJNmm6Gl7UyympdEYDBg.jpeg" /></figure><p>“Believe this, “the higher you go, the further you see” and also “the further you see the clearer you hear; “the clearer you hear, the wiser you become” by <strong>Israelmore Ayivor,</strong></p><p>It is my fourth month at TIIDELab and it’s been the most important so far, all fellows have been broken into their respective tracks (Frontend and Backend) where we will continue learning. I’m in the frontend track where I will be learning and using <strong>React.js</strong>.</p><p>The fourth month journey started with the visitation of our founder <strong>Mr. Salami</strong> on our Friday meetup. We had opportunity to listen to his vast experience and he taught on the topic; <strong>Planting your Flag.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*ti_qT72nn0b1IIyXheqTTg.jpeg" /><figcaption>Mr. Salami</figcaption></figure><p>“It takes a wise man to learn from his mistakes but an even wiser man to learn from other”.</p><p>He highlighted two things one should know when planting a flag:</p><ul><li>Opinion</li><li>Have a story</li></ul><p>He equally taught on how one can plant a flag;</p><ul><li>Show your work.</li><li>Fear is your friend</li><li>Find a mentor</li><li>Communication</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P9e2MWNlChdHwQfIBBoZVA.jpeg" /><figcaption>Mr. Salami and the fellows cross sectional photograph</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*fzl4_mFNsFqcxdbOe4F2pg.jpeg" /></figure><h4>REACT.JS</h4><p>We were first introduce to Node.js and how to use an npm to install packages. In this fourth month we have been able to learn all these; Node packages and react JSX which were explained by our coach <strong>AYODELE, Samuel Adebayo (Unclebigbay)</strong>. I was able to write an article which was published on Hashnode titled Starting out as a newbie in react. <a href="https://sirconfy.hashnode.dev/starting-out-with-reactjs-as-a-newbie-how-to-create-a-counter-in-react-js"><strong><em>Read more</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*-3JGJUEbxolCLa1hqQm8JA.jpeg" /><figcaption>Big brother on the lecture board transforming lives</figcaption></figure><p>As usual with our <strong>Big Brother, Mr. Aderoju Shamsudeen.</strong> In every Friday he always come up with a well prepared and structured life transforming topic to teach us and some of the topics he taught us were: Personal Branding and Linkedin optimization, Goal setting Concepts and Product/ Service sale Pitch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*9ziGXOveiWoe3nJoHjZpXw.jpeg" /><figcaption>During launch on meetup day</figcaption></figure><p>My forth month story wont be complete if I forget to mention about our meal during Fridays meetup. TIIDLab don’t only feed us mentally, they as well feed us with nourishing meals. This is the day every fellow always look forth to come because it is a no coding day and it is also filled with fun and activities.</p><p>It was just like yesterday when I got admitted into TIIDELab as a fellow for the cohort 4 . I wasn’t like this few months back but all thanks to TIIDELab for the amazing transformation. Four months gone already and all I can say is that the goal has been achieved.</p><p>Thanks for reading through the forth edition of my journey and interesting experience at TIIDELab. Watch out for my Fifth edition.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed954b102daf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Third Month Journey at TIIDELab]]></title>
            <link>https://medium.com/@csirconfy/my-third-month-journey-at-tiidelab-d45248432080?source=rss-392c3be031de------2</link>
            <guid isPermaLink="false">https://medium.com/p/d45248432080</guid>
            <dc:creator><![CDATA[Chidi Confidence]]></dc:creator>
            <pubDate>Mon, 12 Sep 2022 09:06:42 GMT</pubDate>
            <atom:updated>2022-09-12T09:06:42.753Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*dRGvNQ0SwdCbVo1-h06R1w.jpeg" /><figcaption>Tiidelab</figcaption></figure><p>Wow!!! 3 months had passed and when I started Tiidelab, I thought 6 months will be so long but now here we are 3 months already and 3 months to go.</p><p>Like I said in my previous article, I was introduced to javaScript, and this month I had the opportunity to learn further and learn about data structure again which opened my brain to further understand the implementation of data structure in real life projects. <strong>Kudos to Mr. Kenny.</strong></p><p>After one the classes with <strong>Mr. Kenny</strong> I did a presentation on the topic; Array methods in Javascript. I equally published an Article on that same topic on Hashnode showing mastery on this particular topic. You can read more here <a href="https://sirconfy.hashnode.dev/quick-understanding-of-array-methods-and-usage-in-javascript"><strong><em>Link</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rSDRc8dxK_OE1zQGQxvQhw.jpeg" /><figcaption>presentation on array methods</figcaption></figure><p>The month of August has been actually hectic. Lots of work to do. Group presentation here and there to show what we have learnt . Anyway, JavaScript as usual continued but this time with a twist. You have to read the material and show mastery of what you have learnt during peer learning presentation.</p><p>JavaScript is an object-oriented scripting language that enables you to create dynamically updating content, control multimedia, animate images, and pretty much everything else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*UOXsPAivdncng9osACglog.gif" /><figcaption>Javascript class getting hotter</figcaption></figure><p>In JavaScript, we learnt why JavaScript is a single threaded language. How it works under the hood. Promise and async. Let me not bore you with such explanations. It’s just important to learn those things before interviewers catches you off guard and you are there counting ceilings. After learning how JavaScript works under the hood. We also did a coding challenge on coderbyte and this time I attempted some of the challenges by myself because I have gone far in javascript with the help of our instructor <strong>Mr. Kenny.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xjvW3g8JjBQLkRG5F5jxoA.png" /><figcaption>coderbite coding challenge</figcaption></figure><p>Regarding my team project, indeed there is progress. We had our second and third sprint presentation showing how progressive we are in our project. Before the day of presentation a lot of corrections were made by the technical support team on our Figma design which helped our product to have a better design and nice shape.</p><p>Meanwhile, incase you don’t know what my team is working on. we are building an Agri-tech solution that eases business transaction between farmers and buyers of agric produce.</p><figure><img alt="Slide presentation during the second third sprint" src="https://cdn-images-1.medium.com/max/1024/1*2Y9R2nXMDUhAtO6Z1Jgh1g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GmMPcr8nqEdqMK62G1EUBA.png" /><figcaption>Home page of our product during the third sprint</figcaption></figure><p>I had one on one interaction with my mentor <strong>Ms Zeenat</strong>. She’s really chilled. Takes her time to listen to my challenges on my path as a frontend developer and tries her best to break things down cause she has a ton of experience. I am still looking forward to another session with her cause she is interested on my technical growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sYFIUY5z3UImLW5HYq1Caw.png" /><figcaption>mentorship session with my mentor</figcaption></figure><p>I can’t concluded my third month experience without writing about <strong>FRIDAYS.</strong> Friday’s in TIIDElab is always a no coding day for fellows and we are always excited because it’s a day we learn new things aside coding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*BeeuVnTZ1IUp5lhr_IICUg.jpeg" /><figcaption>Big Brother, Mr. Aderoju Shamsudeen doing what he knows best</figcaption></figure><p>In some of the fridays in the month of August we learnt so many topics such as: Design Thinking Strategies, Critical thinking and Human Centered Design Strategies (HCD) which were taught by our<strong> Big Brother Mr. Aderoju Shamsudeen</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ODK5_4SMEmXWyK79B3cTow.jpeg" /><figcaption>A cross section of fellows with their different traditional wear</figcaption></figure><p>The 2022 International Youth Day was celebrated by the fellows to examine strategies of bridging the gap between the young people and the elderly for wealth creation. <strong>Mr.</strong> <strong>Olasupo Abideen</strong>, an alumnus of Tony Elumelu Foundation was our guest leader.</p><p>He taught us on how to standout amongst the multitude. Some of the subtopics he treated are: Personal Accessibility, Character, Building Experience, Looking out for global opportunity and The power of Email. at the end he was conferred with prestigious Exceptional Youth Honours. Award.</p><p>Finally, I will like to thank my team members for their support in making this journey a smooth one for me. <strong>Cynthia Nwankwo, Susan Odii, Adetola Adeyeye, Nneoma Raymond, Godswill Chibuzo, Akinnukawe Gbenga, Adesola Modinat Adenike, Nwokporo Chukwuebuka and Odezulu Chukwuemeka.</strong> Also Thanks to <strong>Big Brother Mr. Aderoju Shamsudeen </strong>and a <strong>Kenny Ibrahim</strong> for all the knowledge they have impacted.</p><p>Last but not least, I will like to thank <strong>NECA</strong> and <strong>ITF</strong> for this wonderful opportunity.</p><p>Stay tuned and watch out for my next article on 4th month experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d45248432080" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Practical use of Recursion in javascript]]></title>
            <link>https://medium.com/@csirconfy/practical-use-of-recursion-in-javascript-a3d347535d91?source=rss-392c3be031de------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3d347535d91</guid>
            <dc:creator><![CDATA[Chidi Confidence]]></dc:creator>
            <pubDate>Thu, 11 Aug 2022 17:47:42 GMT</pubDate>
            <atom:updated>2022-08-11T17:47:42.202Z</atom:updated>
            <content:encoded><![CDATA[<p>Recursion is the practice of repeating a process until when an expected output is met or the determination of a succession of elements (such as numbers or functions) by operation on one or more preceding elements.</p><p>In Javascript, a function that calls itself is known as recursion.</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*G5WDJVsKIWWr5a0L.png" /></figure><p>Now lets play with some functions to get the full use of recursion. I am going to walk you through on how to build a USSD for bank and we will be using recursion when and where necessary.</p><p><strong>Step 1. </strong>Declare a function</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*10gxNFAyxkcFRy5x0VTgGg.png" /></figure><p><strong>Step 2.</strong> Initializing a prompt that can be used to enter the ussd code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6kSsM7AGqBY19TO-M7kzRw.png" /></figure><p>here if a user entered a ussd code that is not *901# then the user will get an alert that tell her it’s a wrong entry. Then the recursion function (accessBankUSSD( )) will invoke the function to repeat itself until the user in input the right ussd code.<a href="https://codepen.io/sirconfy/pen/BarYyGb"> <strong><em>click to view the live demo</em></strong></a></p><p><strong>Conclusion</strong></p><ul><li>Recursion is when a function calls itself until someone stops it.</li><li>It can be used instead of a loop.</li><li>If no one stops it, it’ll recurse forever and crash your program.</li><li>Recursion helps in writing a lesser code especially when iterating.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3d347535d91" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My TIIDELab Experience 2.0 (Second Month Edition )]]></title>
            <link>https://medium.com/@csirconfy/my-tiidelab-experience-2-0-second-month-edition-f25b00ece326?source=rss-392c3be031de------2</link>
            <guid isPermaLink="false">https://medium.com/p/f25b00ece326</guid>
            <dc:creator><![CDATA[Chidi Confidence]]></dc:creator>
            <pubDate>Thu, 11 Aug 2022 16:48:24 GMT</pubDate>
            <atom:updated>2022-08-11T16:48:24.986Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*211yEWjT2zHFFda8z419rg.jpeg" /></figure><blockquote>Enjoy the journey and try to get better every day. And don’t lose the passion and the love for what you do. <strong>Nadia Comaneci</strong></blockquote><blockquote>It can always get better by <em>Big brothe</em>r- <strong>Mr. Shamsudeen Aderoju</strong></blockquote><p>Another month has come and gone at TIIDELab. I cannot over emphasize the impact this journey has had in my life positively. I have discovered parts of me that I didn’t know existed and also how to overcome some of my weaknesses. Although there are two sides to everything, as long as the positives outweigh the negatives, it’s worth it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*YFXuPWMRqn5syK4aQi8ptA.png" /></figure><p>We started the second month of this beautiful journey with Software Requirement Specification (SRS) and Functional Requirement Document (FRD). We were given a Smooth guideline on how and what is needed to have a comprehensive SRS and FRD by <strong>Mr. Ibrahim Lukman K. (Mr. Kenny)</strong>. A software requirements specification (SRS) is a document that describes what the software will do and how it will be expected to perform. It also describes the functionality the product needs to fulfill all stakeholders (business, users) needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*YPzmcOcPkzGmYuF2RYhv_A.png" /></figure><p>In order to internalize this particular skill we were asked to produce an SRS and FRD for our projects in our various teams. My team came up with the Software Requirement Specification for an Agritech solution. The purpose of this product is to create an online marketplace that makes buying and selling of agricultural products swift and easy. It will enable users to set up and display their farm products for easy purchase and customers to browse through the platform and purchase them online without having one-on-one contact with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XOYs1zxyaI4EhFP0G9akig.png" /></figure><p><strong>Mr. Ibrahim Kehinde(CEO, Ksolutions Ltd, Abuja)</strong>, who preferably goes by the name <strong><em>Mr. Kenny</em></strong> introduced us to Vanilla JavaScript . JavaScript is the most popular programming language used on many platforms. Before the time we started learning this Javascript I have always been scared because of the negative stories I heard about understanding javascript. With <strong>Mr. Kenny </strong>been my coach on Javascript made me to doubt the negative stories I heard about understanding Javascript. Within two weeks of been under his coach in javascript I was able to publish an Article on <strong>Hashnode</strong> which started trending in less than 24 hours after publishing this article with the tittle <strong><em>Practical use of Recursion in Javascript. </em></strong>Within 48 hours, this particular article made it to the top most on Hashnode weekly digest. What stood out for me was the ability to relate the content in this article to a lay man understanding and this is actually the approach our coach <strong><em>Mr. Kenny </em></strong>always use to teach us. <a href="https://sirconfy.hashnode.dev/practical-use-of-recursion-in-javascript-1"><strong><em>click to read further on the Article.</em></strong></a></p><p>In this second month our mentors were unveiled to us by the founder <strong>(Mr. Kadir Salami).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*RvVYtkn040-9A5ERNsIgbg.jpeg" /></figure><p><strong>Importance of Mentorship</strong></p><p>1. Mentors help with clarity of your goal.</p><p>2. Mentors helps you raise your confidence</p><p>3. Mentors grant you access to the right networks.</p><p><strong>The following are the names of our mentors:</strong></p><p>1. Dr. BASHIR MOHAMMED from USA</p><p>2. Miss Celeste from the UK</p><p>3. Mr. SOLOMON CHOKOR from Spain</p><p>4. Mr. IBRAHIM DAUDA from Dubai</p><p>5. Mr. MOLEMA from Dubai</p><p>6. Mr. ADETOKUNBO TEMITAYO from Dubai</p><p>7. Mr. SHAMSUDEEN YUSUF from Germany</p><p>8. Miss ZEENAT from New Zealand</p><blockquote><strong>Mr. Bashir:</strong> said that Success is not about how much you earn, it’s about how far you have grown and improved. How much network you have built, how much opportunity you have exploited.</blockquote><blockquote><strong>Mr. Solomon:</strong> said Make the best of your opportunity, ask questions because those that do don’t lose their way. Be the best you can, leave much better than you came, stay consistent and humble and hungry.</blockquote><blockquote><strong>Mr. Ibrahim:</strong> Learn to read. Go all hard to achieve the goals set irrespective of the challenges with specified time.</blockquote><blockquote><strong>Mr. Shamsudeen: </strong>The journey is not an easy one but if u can conceive it, u can achieve it. A good developer is not one who can write codes but who can solve problems. Everybody can paint but not everyone can make an art.</blockquote><blockquote><strong>Mr. Molema:</strong> You can lose money and get it back but when u lose time, u can’t gain it back.</blockquote><p>We were all distributed to different mentors and<strong> Miss Zeenat Lawal</strong> happened to be my own mentor and I can’t wait to exploit the mentorship opportunity to the fullest , be the best I can and leave much better than I came while I stay consistent and humble and hungry for knowledge.</p><p><strong>Lets dive outside the class activities.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*vPQ1qtOsXt5bQhpCPGxHIA.jpeg" /></figure><p>It is amazing and fun whenever fellows meets on Friday, I get to interact with other fellows of great minds and share ideas. Every moment we spend together is educative and entertaining. On one of the Fridays in my second month into TIIDELab, I was taught on the topic <strong>DECISION MAKING </strong>by our Coordinator and<strong> </strong><em>Big brothe</em>r- <strong>Mr. Shamsudeen Aderoju. </strong>At the end of this class my decision making thinking process changed in a twinkling of an eye. I was able to understand that before I make a decision I have to take a ProACT Approach; Problem, Objective, Alternative, Consequences, Trade-offs and optimization, Decide and take action. etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aq3jwUqlU-TfOZ87CdRwlw.jpeg" /></figure><p>My month two experience would not have been interesting without the entire TIIDElab management team. They have gone far and wide to give us the best , guiding every steps we take both in software development and other wonderful skills. I was told opportunity comes once in life but TIIDElab gives us the opportunity on daily basis to get better and win big. All I can say is THANK YOU TIIDELAB , To our <strong>Big Brother( Mr. Shamsudeen Aderoju )</strong> whom made our success in the fellowship his top priority, Thank you sir. !! The entire management team of TIIDELab.</p><p>I will continue to be more focused, consistent and resilient in my pursuit for greater heights. <strong>INTENTIONALITY IS MY GOAL THIS YEAR.</strong></p><p>Thanks for reading through the second edition of my journey and innteresting experience at TIIDElab , it’s indeed an amazing journey. Watch out for my third edition. Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f25b00ece326" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My TIIDELab Experience 1.0]]></title>
            <link>https://medium.com/@csirconfy/my-tiidelab-experience-1-0-759b8420dd95?source=rss-392c3be031de------2</link>
            <guid isPermaLink="false">https://medium.com/p/759b8420dd95</guid>
            <category><![CDATA[tiidelab]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Chidi Confidence]]></dc:creator>
            <pubDate>Wed, 06 Jul 2022 05:40:32 GMT</pubDate>
            <atom:updated>2022-07-10T16:09:13.422Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>This article is all about my one month journey at TIIDElab so far.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*dRGvNQ0SwdCbVo1-h06R1w.jpeg" /></figure><p>I wouldn&#39;t say that I have flair for writing stories but my journey and experience so far in TIIDELab are worth every bit of documenting. You must be wondering how I even got into the fellowship. Yes, after several attempts and failures, I finally made it into the fellowship at at Cohort 4, this made me believe on the popular Quote by Napoleon Hill<em> “</em><strong><em>A quitter never wins and a winner never quits.</em></strong><em>”</em></p><p>My journey to self-reliance began on 8th of June, 2022 with an onboarding ceremony. I thought becoming a fellow in TIIDELab is the final stage not knowing that it is just an entry stage of the main work. you will understand as you read further.</p><p>First week at TIIDELab we were introduced to a very vital tool that every programmer should know which is <strong>Git &amp; GitHub </strong>a<strong> version control </strong>that is use for collaboration<strong>. B</strong>efore then I have little knowledge of version control and how to use it but after having the class with <strong>Unclebigbay </strong>I was exposed deeply on how to use it efficiently.</p><p>In the second and third week we progressedto a key concept that holds all programming languages which is <strong>Data Structures and Algorithm</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XMT6Ft3eMLLccac6QRqzqg.png" /></figure><p><strong>1. Properties of an algorithm, features of a good program,</strong></p><p><strong>2. Time and space complexity</strong></p><p><strong>3. How to write Readable and Scalable codes</strong></p><p><strong>4. Big O notation.</strong></p><p>In the fourth and fifth week we moved on and was Introduced to <strong>Advanced HTML &amp; CSS</strong> that was handled by <strong>Mr. Andre and Unclebigbay</strong>, he started with HTML and CSS fundamentals. We learnt about CSS attributes, positioning, animation, transition, pseudo-selectors, responsive web design, etc. all these lessons has helped my HTML &amp; CSS skills. During the two weeks duration of our HTML &amp; CSS class we were asked to build our portfolio site which I did. Guess what, I built this from scratch, super amazing right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eci6Uq_GJ2ZGCvvHt9qNzw.png" /></figure><p>One great thing about TIIDELab is that we are not being taught tech skills only, but soft skills inclusive, we are taught always to be a software developer that can solve problems and not just developers that can code. Some of the soft skills we have learnt are: <strong>Attitude,</strong> <strong>Team Basics and Forming, Problem Framing and Solving, Organizational skills, Crafting interesting articles </strong>and many more we would still learn as the program continues…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*_YLVVEGLk2EomJXZAqrUdg.jpeg" /></figure><p>There has been a rapid growth compared to when I joined TIIDELab, week in week out new concepts has been taught. Any time I imagine what I will look like at the end of the program I will just start smiling and thanking God that I was part of TIIDELab and this opportunity has been the best thing that have happened to me this year.</p><p>I have met a lot of people in TIIDELab, people that are smarter, brilliant and better than me. I have learnt one or two things since when I joined TIIDELab by almost every fellow, even fellows that I have not met before have contributed greatly to my life.</p><p>On one of the meetup days, two tech giants in Africa;<strong> Hacksultan and Samson Goddey</strong> visited us and thought us about V<strong>alue creation and frequent Collaboration in tech.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*iq4Lxi-3f4nizgXBlTWEHw.jpeg" /></figure><p>It is amazing we have done all these things in just a month and we have also been divided into different teams that will work on different projects throughout the program, I am assured that the remaining duration as a fellow of TIIDELab will be more interesting, challenging and according to <strong>Mr.</strong> <strong>Shamsudeen</strong> <strong><em>“It will pay off at last”</em>.</strong></p><p>This one month journey would not have been interesting if not for the management of TIIDELab, they have gone the extra mile to see us become self reliant and a good product at the end of the program. They have paid sacrifices that I can’t start mentioning all, it is very rare to see a fellowship that would give you a <strong>full month data subscription so that you can meet up for all classes and also learn with it, </strong>the <strong>financial support from</strong> <strong>TIIDELab</strong> as also been encouraging. I know that these few lines of the word cannot express or describe what TIIDELab has done so far, but what I will say is a very <strong>Big Thank You to the Founder (Mr. Kadir Salami), the sponsors of this great program (ITF, NECA), Mr. Shamsudeen Aderoju(Program Coordinator) our own big brother Mr. Shams, Mr. Pishikeni Tukura with the advises and motivation, Special thanks to Ayodele Samuel Adebayo aka Uncle Bigbay and the technical support team and to the entireTIIDELab team… Thanks so much!</strong></p><p>I will continue to be more focused, consistent and resilient in my pursuit for a greater heights. <strong>INTENSIONALITY IS MY GOAL THIS YEAR.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*mpjAn4YPue1urOp9lOFrzQ.jpeg" /></figure><p>Thanks for reading through the first edition of my Journey and interesting experience at TIIDELab, watch out for my second edition. <strong>Thanks!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=759b8420dd95" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MY TIIDELab PRE-FELLOWSHIP EXPERIENCE]]></title>
            <link>https://medium.com/@csirconfy/my-tiidelab-pre-fellowship-experience-3547f8af4158?source=rss-392c3be031de------2</link>
            <guid isPermaLink="false">https://medium.com/p/3547f8af4158</guid>
            <category><![CDATA[tiidelab]]></category>
            <dc:creator><![CDATA[Chidi Confidence]]></dc:creator>
            <pubDate>Wed, 06 Apr 2022 12:29:08 GMT</pubDate>
            <atom:updated>2022-04-07T08:59:09.151Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*qpjPrY_EbsqEP_DdSzGUOw.png" /></figure><p>I am Chidi Confidence, as a young person, I aspired for greater heights, worked towards it, but encountered a life situation that paused the aspiration for some years.</p><p>Having graduated from the university for more than four years now without any meaningful addition to my degree qualification, I took a decision in the ending of 2021 to opt my game by delving into a career in the Technology aspect of a field that I have always admired (Web development).</p><p>Luckily for me, on the last week of February 2022, I became one of the Candidates of TIIDElab Prefellowship for Cohort 4, a six week training.</p><h4><strong>MY FIRST WEEK AT TIIDElab PREFELLOWSHIP</strong></h4><figure><img alt="Lost in thought" src="https://cdn-images-1.medium.com/max/1000/1*IMD2803EYGExN0KFj8AOCA.jpeg" /></figure><blockquote>WOW! it was challenging but worthwhile journey for me. First, was getting to know my class mates which was very difficult to me but I was left with no option than to know them which later helped in improving my communication skill during the training.</blockquote><blockquote>Second, was acclimatizing to computer navigations after a long while and assimilating the terminologies associated with web development such as HTML, CSS, Javascript, Problem Solving, Critical Thinking, Landing Page , version control, the list continues.</blockquote><h3>LESSONS LEARNT</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gJBtCWwFWW2u6IfkT2mmWg.jpeg" /></figure><ul><li><strong>COMMITMENT: I was able to learn that for one to go far in life you must commit your time and everything required to achieve that.</strong></li><li><strong>CHARACTER: I learnt that in life good character is the number one thing that can push one to any height the person desires aside whatever the person is doing in life.</strong></li><li><strong>COMMUNICATION: I learnt that communication is a great tool that conveys messages even to a lay man understanding. In tech. industries communication is a vital key.</strong></li><li><strong>PROBLEM SOLVING: I was able to understand the rudiments of problem solving through the Critical Cognitive Aptitude Test (CCAT) which were written twice in every week. First, one has to understand the problem before you analyze it and start solving.</strong></li><li><strong>USE OF VERSION CONTROL: For the first time in my life I was able to use git commands and github to work and equally used it to contribute my own part of code while working with my team.</strong></li></ul><h3>PROJECTS DONE</h3><ol><li>During the course of the training I was able to learn how to code and I was able to build a portfolio for myself.<strong><em> </em></strong><a href="https://sirconfy-portfolio.netlify.app/"><strong><em>Click to view</em></strong></a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*db8fh7_wlnOmJeDj-jTe7g.png" /></figure><h4><strong>2. TEAM PROJECT</strong></h4><p>During the course of the training, we were shared into groups and I was in group A. In my team, we were asked to build an E-Commerce site. I was able to contribute to my team by building the footer and some part of the main section of the home page of the product<em>. </em><a href="http://bloomart.netlify.com/"><strong><em>Click here to view the full product</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q_sQrfV8sorvII5_KV58NA.png" /><figcaption><strong>FOOTER PART OF THE PROJECT</strong></figcaption></figure><p><strong>APPRECIATION</strong></p><blockquote>Lastly, I want to appreciate TIIDELab for such a great opportunity to have learnt under them. I sincerely thank TIIDELab for raising me from Zero to a height I can find my way into tech. I can say, through TIIDElab my dream of delving into tech came to reality.</blockquote><blockquote>Special thanks goes to the facilitators. The course materials given to us were broken down and taught in a simpler way.</blockquote><blockquote>I can’t forget to thank the TIIDELab Big Brother Mr. Shamsudeen Adedapo Aderoju for his relentless effort.</blockquote><h3><strong>FINAL THOUGHT</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*y4Nt9ermSclQvJv13Tf2DA.jpeg" /></figure><p>I will continue to be more focused, consistent and resilient in my pursuit for a greater heights.</p><blockquote><strong>INTENTIONALITY IS MY GOAL THIS YEAR</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3547f8af4158" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>