<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Chris Martins</title>
    <description>The latest articles on Forem by Chris Martins (@biochris).</description>
    <link>https://forem.com/biochris</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F682876%2Fa7dc4e46-93fd-4fc0-894d-7c1a5f32278e.jpg</url>
      <title>Forem: Chris Martins</title>
      <link>https://forem.com/biochris</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/biochris"/>
    <language>en</language>
    <item>
      <title>Scope Basis (Life span of a code)</title>
      <dc:creator>Chris Martins</dc:creator>
      <pubDate>Fri, 07 Jan 2022 15:47:22 +0000</pubDate>
      <link>https://forem.com/biochris/scope-basis-life-span-of-a-code-2ik5</link>
      <guid>https://forem.com/biochris/scope-basis-life-span-of-a-code-2ik5</guid>
      <description>&lt;p&gt;In this article, we will be discussing the accessibility of a given code, based on its scope declaration. &lt;/p&gt;

&lt;p&gt;Definition of Variable Scope: Scope of a variable is the part of a program in which a code is accessible.&lt;br&gt;
Basically we have 2 types of Variable scopes; Global scope and The Local scope. &lt;/p&gt;

&lt;p&gt;Further more, a code can only be accessed in a program if it hasn't used up its life span. That is to say, every code has a given life span in which when exhausted, the code will be erased from the memory of the computer. The computer will not be able to access that code or run it. &lt;/p&gt;

&lt;p&gt;GLOBAL SCOPE: a global variable scope is accessible throughout the entire program. In other words they have a very long life span. You can access a global variable scope anywhere throughout the program. They are citizen of the entire program.  In the program, a globally declared variable scope takes dominance, but within a local variable scope, the locally declared variables are dominant(gets executed over the global variable scope). &lt;br&gt;
You can access the global variable scope even in local scope like within a function. A global variable scope claims citizenship throughout the entire program. &lt;/p&gt;

&lt;p&gt;For Example:&lt;br&gt;
&lt;code&gt;let a = gold;&lt;br&gt;
Console.log(a);&lt;br&gt;
Function local(){&lt;br&gt;
 let b = silver;&lt;br&gt;
 Console.log(a)&lt;br&gt;
}&lt;br&gt;
local();&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
When we run this code we get the word gold printed twice, though it wasn't declared within the function, but for the fact it's a globally declared variable scope, it can be accessed throughout the program, and have a long life span. &lt;/p&gt;

&lt;p&gt;LOCAL SCOPE: A local variable scope is a code that is only accessible within the code block it was declared, within a function. It takes citizenship of only its code block or within the function it was declared, outside which the code ceases to exist, or its life span is terminated.  A locally declared variable scope can not be accessed outside its code block, once the code block ends, the life span of the local scope ends as well, and it gets erased from the memory of the computer. That is to say, you can not call a locally declared variable outside its function or code block, it will return the error not declared. &lt;br&gt;
However, within the function or the code block of a local variable scope, the local scope takes dominance over the global scope. &lt;br&gt;
For Example:&lt;br&gt;
&lt;code&gt;let a = gold;&lt;br&gt;
Function local(){&lt;br&gt;
 let a = silver;&lt;br&gt;
 Console.log(a)&lt;br&gt;
}&lt;br&gt;
local();&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
When we call the function local, it returns silver. Because within the local scope, the locally declared variable takes dominance over the global scope.&lt;/p&gt;

&lt;p&gt;But when we call a local scope outside its code block, it can not be accessed. It will return the error not declared. That is, once the code block ends, the life span of a locally declared variable ends as well. &lt;/p&gt;

&lt;p&gt;If we declare a variable locally with the same variable name as a globally declared variable, both variables are entirely different and will return either the local scope or global scope based on where it is called. &lt;br&gt;
Example;&lt;br&gt;
&lt;code&gt;let a = gold;&lt;br&gt;
Console.log(a);&lt;br&gt;
Function local(){&lt;br&gt;
 let a = silver;&lt;br&gt;
 Console.log(a)&lt;br&gt;
}&lt;br&gt;
local();&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
When we run the above code, it will return gold, while the function will return silver.&lt;br&gt;
Based on its scope, codes with same variable name can return different result. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Understanding HTML &lt;DIV&gt;</title>
      <dc:creator>Chris Martins</dc:creator>
      <pubDate>Sun, 15 Aug 2021 01:05:26 +0000</pubDate>
      <link>https://forem.com/biochris/understanding-html-div-4f76</link>
      <guid>https://forem.com/biochris/understanding-html-div-4f76</guid>
      <description>&lt;p&gt;HTML DIV&lt;/p&gt;

&lt;p&gt;In writing the HTML(Hyper Text Markup Language) of a web page, the use of the HTML tag called Div is one of the important HTML tag that every programmer should understand the schematics and it's purpose in writing our HTML codes. &lt;/p&gt;

&lt;p&gt;I came across a beginner to front end web development that said she had to stop her learning process due to lack of understanding of the HTML tag DIV, so I am writing this for absolute beginners to understand exactly what DIV is used for and there purpose and importance in writing a good HTML code. &lt;/p&gt;

&lt;p&gt;The div tag defines a division or a section in a standard HTML code. The div tag is used as a container for HTML elements. When ever you need to divide or separate the elements on a webpage, you use the HTML tag (div). &lt;/p&gt;

&lt;p&gt;While writing our codes for instance, we have the menu section, the about section, the skill section, the projects section, the contact section and the footer section. It is advisable to always wrap up each sections with a DIV. &lt;/p&gt;

&lt;p&gt;The div tag is easily styled by using the class or id attribute. When ever you want to effect a change in the style of a particular section, it is easier to Target the DIV class or ID, by so doing the changes affects all the elements and contents that is placed within the opening and closing div; &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UTZp53fl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ltjc49fmvj94mgfzk2t7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UTZp53fl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ltjc49fmvj94mgfzk2t7.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
Any sort of content can be put inside the &lt;/p&gt; tag!

&lt;p&gt;NOTE:By default,browsers always place a line break before and after the div  element.&lt;/p&gt;

&lt;p&gt;A DIV is simply a container that holds different sections and elements in an HTML document. &lt;br&gt;
You get to also see the beauty of a div when we start having sections and sub sections. Here you can have a div as a child inside a parent div.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4Yg2AdiH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dzhqas7gc6i0v7w76e8f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4Yg2AdiH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dzhqas7gc6i0v7w76e8f.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We make use of DIV for easy styling of each sections, subsections and to make our codes orderly, readable and reusable. &lt;/p&gt;

</description>
      <category>html</category>
      <category>beginners</category>
      <category>div</category>
      <category>frontend</category>
    </item>
    <item>
      <title>7 Rules That Every Designer Must know</title>
      <dc:creator>Chris Martins</dc:creator>
      <pubDate>Mon, 09 Aug 2021 11:41:58 +0000</pubDate>
      <link>https://forem.com/biochris/7-rules-that-every-designer-must-know-4e7k</link>
      <guid>https://forem.com/biochris/7-rules-that-every-designer-must-know-4e7k</guid>
      <description>&lt;p&gt;&lt;em&gt;7 RULES THAT EVERY DESIGNER MUST KNOW&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;CONSISTENCY AND STANDARD:&lt;br&gt;
When working on a project, you must use the same type of icons and fonts throughout a particular project. Make use of standard icons and generally accepted contents. &lt;br&gt;
If you are creating your own icons, then you should make sure they are of standard and maintain the use of it throughout the project.&lt;br&gt;
For instance if you choose to use font 16px for your headings and 12px for your paragraphs, you have to maintain those number through out that particular project.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;COLOR SCHEME&lt;br&gt;
Your choice of color combination in a design should be based on  logical combination of colors from the color wheel. An in depth knowledge of monochromatic or complementary colors should be known. For example the color purple and yellow are complementary to each other on the color wheel; thus they are perfect to be used together in a design. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SPACE MANAGEMENT:&lt;br&gt;
Spaces invokes imagination, when we see space in design, it allows us to imagine and roam free. It creates readability to the elements when gaps are created to ensure that the users can find and digest information presented more easily.&lt;br&gt;
Adequate use of the spaces on your design page should be utilized to avoid congestion of contents on a particular page. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;VISUAL HIERARCHY:&lt;br&gt;
This is a design techniques whereby designers makes a particular section on a page to be viewed first. &lt;br&gt;
There are different characteristics used to achieve hierarchy in design: Size – Users notice larger elements more easily. &lt;br&gt;
Color – Bright colors typically attract more attention than muted ones.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;READABILITY:&lt;br&gt;
Ability to manipulate contrast of the background and the text color to ensure that the texts are visible to the readers without straining the eyes. &lt;br&gt;
As a designer you make use of colors, fonts and thickness of text to achieve this. &lt;br&gt;
Note: Always have a text background when writing on an image. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SIMPLICITY AND MINIMALISM:&lt;br&gt;
Always focus on using the minimalist designs on a page. Less of contents is more. Avoid congestion of contents on a particular design page. &lt;br&gt;
Never add a lot of content in a page in the name of beautifying it. Utilize the least contents to ensure simplicity of your designs. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;WHITE SPACE:&lt;br&gt;
These are areas on your design without contents. White spaces are the spaces between your images, texts and contents on a design page. &lt;br&gt;
One may refer to it as emptiness, and may be pushed to fill them up. But I tell you to always give room for white spaces in your design to help balance out the part with contents.   &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>design</category>
    </item>
  </channel>
</rss>
