<?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>DEV Community: Caroline Mwasigala</title>
    <description>The latest articles on DEV Community by Caroline Mwasigala (@mwasigala).</description>
    <link>https://dev.to/mwasigala</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%2F498413%2F6b587e2d-cf1e-49c1-8180-6b20e8896a46.jpeg</url>
      <title>DEV Community: Caroline Mwasigala</title>
      <link>https://dev.to/mwasigala</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mwasigala"/>
    <language>en</language>
    <item>
      <title>Statically Typed Vs Dynamically Typed Programming languages</title>
      <dc:creator>Caroline Mwasigala</dc:creator>
      <pubDate>Wed, 03 May 2023 10:18:36 +0000</pubDate>
      <link>https://dev.to/mwasigala/statically-typed-vs-dynamically-typed-programming-languages-5be7</link>
      <guid>https://dev.to/mwasigala/statically-typed-vs-dynamically-typed-programming-languages-5be7</guid>
      <description>&lt;p&gt;The juiciness of any concept lies in its roots.Everything Evolves and types are not exempt. Simply put types are classification or characterization of things.&lt;/p&gt;

&lt;p&gt;In this article we are going to briefly expound the concept of types and the categorization of languages based on types. I will use C# in the code block examples.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Variable&lt;/strong&gt; and &lt;strong&gt;Type checking&lt;/strong&gt; are crucial concepts when it comes to understanding the difference between statically typed and dynamically typed programming languages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is a variable?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A variable is a name used to represent a memory location for information storage. The best analogy for this is a cup. A cup is a rounded container that holds substance. substance represent data, container represents memory location and the word cup represents a variable name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is type checking?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Type checking is a system of checking if the assigned data contains the expected data type. The system is called Type System.&lt;/p&gt;

&lt;p&gt;The difference between the two concepts boils down to &lt;strong&gt;variable declaration&lt;/strong&gt;. For statically typed languages, the enforcement is on &lt;strong&gt;explicit declaration&lt;/strong&gt; of variables with their types. Type checking happens during the &lt;strong&gt;compilation time&lt;/strong&gt;, in turn this ensures code optimization.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int score=5;
string name="Myspexg";
double amount = 12.3;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;While dynamically typed languages allows &lt;strong&gt;implicit variable declaration&lt;/strong&gt;.It gives programmer flexibility but it’s error prone.Type checking usually happens at the &lt;strong&gt;runtime&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var score=5;
var name="Myspexg";
var amount=12.3;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Examples of&lt;/strong&gt; Dynamically typed language is &lt;strong&gt;JavaScript&lt;/strong&gt;, &lt;strong&gt;PHP&lt;/strong&gt; etc. &lt;strong&gt;Examples of&lt;/strong&gt; statically typed language is &lt;strong&gt;C&lt;/strong&gt;,&lt;strong&gt;Java&lt;/strong&gt; etc&lt;/p&gt;

&lt;p&gt;Lot of programming languages are &lt;strong&gt;hybrid&lt;/strong&gt; meaning they are both statically and dynamically typed. i.e &lt;strong&gt;C#&lt;/strong&gt;, &lt;strong&gt;Python&lt;/strong&gt; etc&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Counting zero's sucks!!</title>
      <dc:creator>Caroline Mwasigala</dc:creator>
      <pubDate>Sun, 26 Sep 2021 17:57:11 +0000</pubDate>
      <link>https://dev.to/mwasigala/counting-zero-s-sucks-lf2</link>
      <guid>https://dev.to/mwasigala/counting-zero-s-sucks-lf2</guid>
      <description>&lt;p&gt;Let's get real, it sucks when things don't behave the way they should. User-friendliness is underrated when it comes to form input fields.&lt;/p&gt;

&lt;p&gt;When providing a user with an input field to write a number and it doesn't get formatted as how normally numbers are, it gives the user another task of counting zero's, honestly it sucks 😠.&lt;/p&gt;

&lt;p&gt;Tried searching for a solution online but couldn't find what I wanted 😩, that's when I decided to solve it myself and help others by compiling the solution into a library and place it in a place where anyone can find it. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mwasigala/DynamicInputNumberFormatter.js"&gt;Github link&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.npmjs.com/package/dynamicinputnumberformatter"&gt;NPM link&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cf3c_wl---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mhc0wxihwkrndrk0lsy1.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cf3c_wl---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mhc0wxihwkrndrk0lsy1.gif" alt="Demo" width="441" height="129"&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How did I do it ?!
&lt;/h2&gt;

&lt;p&gt;Regular Expression&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aUVD8pjU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ot4s0d59b14f9wzqhwof.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aUVD8pjU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ot4s0d59b14f9wzqhwof.png" alt="Regular Expression" width="880" height="977"&gt;&lt;/a&gt;&lt;br&gt;
Why reinvent the wheel?! 😦&lt;br&gt;
Regards,&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
