<?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 rehkmansa on Medium]]></title>
        <description><![CDATA[Stories by rehkmansa on Medium]]></description>
        <link>https://medium.com/@godspowernathaniel25?source=rss-a7afe8f872a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GO0rQ1PM6qAvnAClabEtTg.jpeg</url>
            <title>Stories by rehkmansa on Medium</title>
            <link>https://medium.com/@godspowernathaniel25?source=rss-a7afe8f872a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:18:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@godspowernathaniel25/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[Creating generic components in typescript]]></title>
            <link>https://medium.com/@godspowernathaniel25/creating-generic-components-in-typescript-4ada9ba8e941?source=rss-a7afe8f872a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ada9ba8e941</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[rehkmansa]]></dc:creator>
            <pubDate>Fri, 01 Mar 2024 07:10:40 GMT</pubDate>
            <atom:updated>2024-03-01T07:27:46.458Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVjmFOq3NPnAFIAJzavL4Q.png" /></figure><p>Often times we need to build closely related components that accept the same, closely related or different types of props, it would always be a hassle trying to type this kind of components. An example of such scenario, is an input component that renders either a Select, Input, TextArea or Radio input component. I recently wrote an article on form validation with zod, you cant check it out <a href="https://blog.stackademic.com/form-validation-with-zod-8e30c9fb464a">here</a>.</p><h3>What are generics ?</h3><p>Generics often come into play when working with functions, they are lose type definitions that allow “any” value that meets the constraint to be passed into it. Writing a simple generic function, we have</p><pre>const greetStringUsers = (name: string)=&gt;{<br>  console.log(name)<br>} // only arguments of type string can be passed in<br><br>const greetAllUsers = &lt;Type&gt;(name: Type&gt;){<br>  console.log(name)<br>} // arguments of any type can be passed in</pre><p>The example above shows how to create a generic function greetsUsers, the first can only be passed an argument of a string, while the other can receive all types of arguments, objects, functions, numbers, strings, arrays etc.</p><p>A good thing to understand about generics is that similar to unknown, before any operation can be performed suitable constraints should be applied to the generic type</p><pre>const reverseArr = &lt;Arr&gt;(arr: Arr) =&gt; {<br>  // would throw an error<br>  return arr.reverse(); // Property &#39;reverse&#39; does not exist on type &#39;Arr&#39;.ts(2339)<br>};<br>/** <br> * we have this error because, we can pass strings, numbers, <br> * or objects into our function resulting in errors if we <br> * try to access the reverse property if it doesn&#39;t exist<br> */<br><br>const reversArrWithConstraints = &lt;Arr extends []&gt;(arr: Arr)=&gt;{<br>  // specifying a constraint for our tye allows us to pass only arrays<br>  // and  use the right property on it<br>  return arr.reverse()<br>}</pre><p>A good thing to know about generics is that they recive their types from the arguments they are assigned, this type can also be explicitly passed into the function.</p><pre>const simpleFunction = &lt;Type&gt;(arr: Type[]) =&gt; {<br>  return arr<br>};<br><br>const array1 = simpleFunction([0, 1, 2, 3]);<br>// infers the type arguement as number<br><br>const array2 = simpleFunction&lt;string&gt;([0, 1, 2, 3]);<br>// has the type arguement passed as string, hence expects string instead<br>//throws error of: Type &#39;number&#39; is not assignable to type &#39;string&#39;.ts(2322)</pre><h3>Defining generic components?</h3><p>Let’s look at creating a very simple generic component, below.</p><pre>// defining props using interface<br>interface ISimpleComponentProps&lt;Type&gt; {<br>  text: Type;<br>}<br><br>// defining props using type<br>type TSimpleComponentProps&lt;Type&gt; = {<br>  text: Type;<br>};<br><br>// geneic component can use a &lt;,&gt; or with an extend constraint so it doesnt error<br>const SimpleComponent = &lt;Type,&gt;(props: TSimpleComponentProps&lt;Type&gt;) =&gt; {<br>  return &lt;&gt;&lt;/&gt;;<br>};<br><br>const SimpleComponent2 = &lt;Type extends []&gt;(props: TSimpleComponentProps&lt;Type&gt;) =&gt; {<br>  return &lt;&gt;&lt;/&gt;;<br>};</pre><p>To create a generic component you define the props to accept a generic argument and then create same type definition in when creating your component. The code block shows how to create generic props with types or interfaces.</p><p>To build a more complex generic component like our example earlier would require a lot more work. We need to create our component api, I consider this step the most important part as it revolves around, how our component would be used by us or external developers. Its important to ask questions like, what kind of props would our input accept, what layers would we like to abstract in this example. For our component, we are creating a multi input with generically typed props that has a super prop called variant that is a union type of all our possible types.</p><pre>type InputVariants = &quot;normal&quot; | &quot;floating&quot; | &quot;radio&quot; | &quot;text-area&quot;;</pre><p>We proceede to create the different variants for our Input component and their prop definitions.</p><pre>interface NormalInputProps {<br>  text: string;<br>}<br><br>// I am returning an empty fragment to demonstrate the typing.<br>const NormalInput = (props: NormalInputProps): JSX.Element =&gt; &lt;&gt;&lt;/&gt;;<br><br>interface FloatingProps {<br>  label: string;<br>}<br><br>const FloatingInput = (props: FloatingProps): JSX.Element =&gt; &lt;&gt;&lt;/&gt;;<br><br>interface RadioProps {<br>  options: string[];<br>}<br>const RadioInput = (props: RadioProps): JSX.Element =&gt; &lt;&gt;&lt;/&gt;;<br><br>interface TextAreaProps {<br>  rows: string | number;<br>  columns: string | number;<br>}<br>const TextArea = (props: TextAreaProps): JSX.Element =&gt; &lt;&gt;&lt;/&gt;;</pre><p>This part is a bit complex, you need to create a discriminated union prop that accepts your variant as a generic and then returns the individual prop.</p><pre>// Create a picker props to choose the selected input.<br>type PickProps&lt;Selected extends InputVariants&gt; = Selected extends &quot;normal&quot;<br>  ? NormalInputProps<br>  : Selected extends &quot;floating&quot;<br>  ? FloatingProps<br>  : Selected extends &quot;radio&quot;<br>  ? RadioProps<br>  : Selected extends &quot;text-area&quot;<br>  ? TextAreaProps<br>  : never;</pre><p>PickProps accepts an Input variant, that uses the extends keyword to narrow the type down to each element props. To create the final prop definition for our component, we have a union type of PickProps and our variant.</p><pre>type AllInputProps&lt;Variant extends InputVariants&gt; = PickProps&lt;Variant&gt; &amp; {<br>  variant?: Variant;<br>};<br><br><br>// passing an a default value is essential to scope the props to the default<br>export const InputExample = &lt;Variant extends InputVariants = &quot;normal&quot;&gt;(<br>  props: AllInputProps&lt;Variant&gt;,<br>) =&gt; {<br>  const { variant = &quot;normal&quot;, ...rest } = props;<br><br>  const renderInput = (): React.ReactNode =&gt; {<br>    // not doing a strong prop narrowing to save myself from the typescript headache<br>    // this is bad because the component can be initialized with props assigned to Floating input<br>    // but it defaults to a normal input<br>    switch (variant) {<br>      case &quot;normal&quot;:<br>        return &lt;NormalInput {...(rest as unknown as NormalInputProps)} /&gt;;<br>      case &quot;floating&quot;:<br>        return &lt;FloatingInput {...(rest as unknown as FloatingProps)} /&gt;;<br>      case &quot;radio&quot;:<br>        return &lt;RadioInput {...(rest as unknown as RadioProps)} /&gt;;<br>      case &quot;text-area&quot;:<br>        return &lt;TextArea {...(rest as unknown as TextAreaProps)} /&gt;;<br>    }<br>  };<br><br>  return renderInput();<br>};<br><br>&lt;InputExample variant=&quot;floating&quot; /&gt;;<br>&lt;InputExample variant=&quot;radio&quot; /&gt;;<br>&lt;InputExample variant=&quot;text-area&quot; /&gt;;<br>&lt;InputExample /&gt;; // defaults to normal<br>&lt;InputExample&lt;&quot;radio&quot;&gt; /&gt;; // forcing generic type<br></pre><p>This component creates a strongly typed InputElement that accepts props based on the variant, it builds on the concept of Polymorphic components in React. Personally I won’t recommend this approach when creating components, but certain situations require hacky solutions like this. This is a brief guide on how to create your own component, you can build on it and create better components. You can find a link to the repo <a href="https://github.com/RehkMansa/ts-generic-components">here</a>.</p><p>Incase you missed it earlier, here is a link to my article on <a href="http://You can find a link to the repo here.">form validation</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ada9ba8e941" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Form Validation with Zod]]></title>
            <link>https://blog.stackademic.com/form-validation-with-zod-8e30c9fb464a?source=rss-a7afe8f872a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e30c9fb464a</guid>
            <category><![CDATA[forms]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[zod]]></category>
            <category><![CDATA[validation]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[rehkmansa]]></dc:creator>
            <pubDate>Mon, 16 Oct 2023 09:08:27 GMT</pubDate>
            <atom:updated>2024-09-23T16:37:21.426Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zg6oYnHBJ8_Mym3Xh8tfqw.png" /><figcaption>Zod schema validation</figcaption></figure><p>Getting started with zod can be a bit overwhelming, in this article, we’d go over form validation with zod, how to simplify the process and make it easier. We’d be using React, FormData, html form and zod for our validation. If you would like to move on with building typescript generic components, <a href="https://medium.com/@godspowernathaniel25/creating-generic-components-in-typescript-4ada9ba8e941">check this article out</a>.</p><h4>What is zod ?</h4><p>According to the official website for Zod, Zod is a TypeScript-first schema declaration and validation library. The term “schema” refers to any data type, from a simple string to a complex nested object. In simple terms, Zod helps you validate and parse your data to satisfy a certain shape.</p><blockquote><em>💡</em> <strong>Learn more on how to build type-safe apps with Zod:</strong></blockquote><p><a href="https://differ.blog/p/level-up-your-typescript-skills-building-type-safe-applications-with-zod-7cac4e">Level Up Your TypeScript Skills: Building Type-Safe Applications with Zod</a></p><p>To get started with zod you’d need a schema, and data. Let’s look at defining a basic zod schema</p><pre>import z from &#39;zod&#39;;<br>// you can also destructure the items import {string, object, z} from &#39;zod&#39;<br><br>const SimpleSchema = z.object({<br> name: z.string(),<br> age: z.number(),<br>});</pre><p>After defining our schema, we use it to validate the shape of any data passed into it. If there are errors, it will throw a ZodError. For a more comprehensive guide on Zod errors and the ZodError type, I recommend reading the <a href="https://zod.dev/">documentation</a>.</p><p>To safely use our schema, it’s best to wrap it in a try-catch block:</p><pre>try {<br> const res = SimpleSchema.parse(data);<br> // do something with the res<br>} catch (error) {<br> console.error(error);<br> // apply better error handling<br>}</pre><p>With that out of the way, let’s use Zod to validate a signup form. We define a signup form with basic fields below:</p><pre>const fields = [<br> { name: &#39;fullName&#39;, label: &#39;Full Name&#39;, placeholder: &#39;Enter Full name&#39; },<br> { name: &#39;username&#39;, placeholder: &#39;Enter Username&#39; },<br> /** We can ue zod to validate that our value is of type email */<br> { name: &#39;email&#39;, placeholder: &#39;Enter email&#39;, type: &#39;email&#39; },<br> {  name: &#39;password&#39;, placeholder: &#39;Enter password&#39;, type: &#39;password&#39; },<br>];<br><br>const SignUpForm = () =&gt; (<br> &lt;form className=&quot;space-y-5 py-10 max-w-md mx-auto&quot;&gt;<br>  &lt;h2 className=&quot;text-2xl font-bold&quot;&gt;Complete the form to sign up&lt;/h2&gt;<br>  &lt;div className=&quot;space-y-4&quot;&gt;<br>   {fields.map(({ name, placeholder, type, label }) =&gt; (<br>     &lt;div className=&quot;grid&quot; key={name}&gt;<br>      &lt;label htmlFor={name} className=&quot;capitalize text-sm&quot;&gt;<br>       {label ?? name}<br>      &lt;/label&gt;<br>      &lt;input<br>       name={name}<br>       placeholder={placeholder}<br>       type={type ?? &#39;text&#39;}<br>       className=&quot;border p-3 placeholde r:capitalize&quot;<br>       id={name}<br>      /&gt;<br>     &lt;/div&gt;<br>    ))}  <br>  &lt;/div&gt;<br> &lt;/form&gt;<br>);</pre><p>After creating our form, we can define the schema for our form.</p><pre>const invalid_type_error = &#39;Invalid type provided for this field&#39;;<br>const required_error = &#39;This field cannot be blank&#39;;<br><br>export const SignUpSchema = z.object({<br> fullName: z<br>  .string({ invalid_type_error, required_error })<br>  .min(1, &#39;Value is too short&#39;),<br> username: z<br>  .string({ invalid_type_error, required_error })<br>  .min(1, &#39;Value is too short&#39;),<br> email: z<br>  .string({ invalid_type_error, required_error })<br>  .email(&#39;Please provide a valid email&#39;)<br>  .min(1, &#39;Value is too short&#39;),<br> password: z<br>  .string({ invalid_type_error, required_error })<br>  .min(6, &#39;Password is too short&#39;),<br>});</pre><p>A common issue with zod is that an empty string is the valid as type string, the fix for this would be specifying a minimum length of 1 and by default all values are required</p><pre>const handleSubmit = (e: React.ChangeEvent&lt;HTMLFormElement&gt;) =&gt; {<br>  e.preventDefault();<br><br>  /** conversion of the input from FormData to an object */<br>  const data = Object.fromEntries(new FormData(e.currentTarget));<br><br>  try {<br>   const res = SignUpSchema.parse(data);<br>   console.log(res);<br>  } catch (error) {<br>   console.log(error);<br>  }<br> };</pre><p><a href="https://differ.blog/differ-ai">Introducing DifferAI</a></p><h4>Error Handling</h4><p>Before we proceed, it’s important to note that the following steps work well with one-level data or objects without nesting. This approach is suitable for validating form values since native form values are typically not nested. Now let’s dive into the error handling process.</p><p>To begin, we define a function called handleOneLevelZodError, which handles error messages generated by Zod validation. It takes a ZodError&lt;unknown&gt; object as an argument.</p><pre>/** @argument ErrorType : if you need to assert your error type, just pass it as a generics via asserting with the as keyword */<br>const handleOneLevelZodError = ({ issues }: ZodError&lt;unknown&gt;) =&gt; {<br> const formData: Record&lt;string, string&gt; = {};<br><br> /** <br>  *  line of code should be true if the schema is not an object <br>  *  This line is completely optional<br>  */<br> if (issues.length === 1 &amp;&amp; issues[0].path.length &lt; 1)<br>  return issues[0].message;<br><br> issues.forEach(({ path, message }) =&gt; {<br>  formData[path.join(&#39;-&#39;)] = message;<br> });<br><br> return formData;<br>};<br><br>export default handleOneLevelZodError;</pre><p>The handleOneLevelZodError function initializes an empty object called errorMessages. It then iterates through the issues array of the ZodError object, extracting the path and message for each issue. The path is joined with a hyphen (-) and used as the key in the errorMessages object, with the corresponding error message as the value.</p><p>If the ZodError contains only one issue and the path length is less than 1, indicating that the schema is not an object, the function returns the error message directly. Please note that this line is optional and can be removed if it doesn&#39;t apply to your specific use case.</p><p>Finally, the function returns the errorMessages object containing the error messages. You can utilize this object to display the error messages to the user or handle them in any other appropriate manner within your application.</p><p>By importing and using the handleOneLevelZodError function, you&#39;ll be able to handle error messages generated during Zod validation effectively.</p><p>handleOneLevelZodError allows us to validate schemas of type zod object or zod primitives . The next step is to define a reusable function that extracts the repetitive try-catch block into a well-typed function</p><pre>type ZObjectType = ZodType&lt;Record&lt;string | number, unknown&gt;&gt;;<br><br>type ZodParams&lt;T extends ZObjectType&gt; = {<br>  onSuccess(data: T[&quot;_output&quot;]): void;<br>  onError(error: Partial&lt;Record&lt;keyof T[&quot;_output&quot;], string&gt;&gt;): void;<br>  data: Record&lt;string, unknown&gt;;<br>  schema: T;<br>};<br><br>export type ValidationError&lt;T extends ZObjectType&gt; = Partial&lt;Record&lt;keyof T[&quot;_output&quot;], string&gt;&gt;;<br><br>export const handleZodValidation = &lt;T extends ZObjectType&gt;(params: ZodParams&lt;T&gt;) =&gt; {<br>  const { data, onError, onSuccess, schema } = params;<br><br>  try {<br>    const res = schema.parse(data);<br>    onSuccess(res);<br>  } catch (error) {<br>    if (error instanceof ZodError) {<br>      const formattedErr = handleOneLevelZodError(error);<br>      onError(formattedErr as Record&lt;keyof T[&quot;_output&quot;], string&gt;);<br>    } else {<br>      throw new Error(String(error));<br>    }<br>  }<br>};</pre><p>The code defines a type ZObjectType, which represents a Zod schema type narrowed to objects, so we can use the keys for generating our error messages. Additionally, the ZodParams type defines the expected parameters for the handleZodValidation function, including onSuccess and onError callbacks, input data, and the Zod schema to validate against.</p><p>The ValidationError type is defined to represent partial error messages for the validated schema. It uses keyof T[&quot;_output&quot;] to ensure the error object keys align with the expected output of the Zod schema.</p><p>The handleZodValidation function takes in the params object and attempts to parse the input data using the provided schema. If parsing succeeds, the onSuccess callback is invoked with the parsed result. If a ZodError is thrown during parsing, the handleOneLevelZodError function is called to format the error messages. The onError callback is then invoked with the formatted error object. If any other type of error occurs, it is thrown to be caught and handled elsewhere.</p><p>By utilizing the handleZodValidation function, you can simplify your validation code and handle success and error cases more effectively.</p><pre>const [errors, setErrors] = useState&lt;ValidationError&lt;typeof SignUpSchema&gt;&gt;({});<br>  const handleSubmit = (e: React.ChangeEvent&lt;HTMLFormElement&gt;) =&gt; {<br>    e.preventDefault();<br><br>    /** conversion of the input from FormData to an object */<br>    const data = Object.fromEntries(new FormData(e.currentTarget));<br><br>    handleZodValidation({<br>      onError: setErrors,<br>      data: data,<br>      onSuccess: (res) =&gt; {<br>        /**<br>         * res is of type:<br>         * { fullName: string; username: string; email: string; password: string; }<br>         */<br>        console.log(res);<br>      },<br>      schema: SignUpSchema,<br>    });<br>  };</pre><p>In conclusion, Zod proves to be a powerful tool for form validation, especially when combined with TypeScript. By leveraging Zod’s schema declaration and validation capabilities, developers can ensure that the data submitted through forms adheres to the desired structure and meets specific validation rules.</p><p>Thank you for making it all the way here, if you are interested in creating a typescript generic component, I’ve got something for you <a href="https://medium.com/@godspowernathaniel25/creating-generic-components-in-typescript-4ada9ba8e941">here</a>.</p><h3>Stackademic 🎓</h3><p>Thank you for reading until the end. Before you go:</p><ul><li>Please consider <strong>clapping</strong> and <strong>following</strong> the writer! 👏</li><li>Follow us <a href="https://twitter.com/stackademichq"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/stackademic"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/c/stackademic"><strong>YouTube</strong></a> | <a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a></li><li>Visit our other platforms: <a href="https://plainenglish.io/"><strong>In Plain English</strong></a> | <a href="https://cofeed.app/"><strong>CoFeed</strong></a> | <a href="https://differ.blog/"><strong>Differ</strong></a></li><li>More content at <a href="https://stackademic.com/"><strong>Stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e30c9fb464a" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/form-validation-with-zod-8e30c9fb464a">Form Validation with Zod</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Imposter syndrome… The writers block for all programmers]]></title>
            <link>https://medium.com/@godspowernathaniel25/imposter-syndrome-the-writers-block-for-all-programmers-a1ae7346db4b?source=rss-a7afe8f872a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1ae7346db4b</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[self-help]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[newbie]]></category>
            <dc:creator><![CDATA[rehkmansa]]></dc:creator>
            <pubDate>Fri, 30 Jul 2021 18:29:59 GMT</pubDate>
            <atom:updated>2021-07-30T18:29:59.775Z</atom:updated>
            <content:encoded><![CDATA[<p>Programming is an art and one of the best art form around. The ability to communicate with a computer is simply enthralling. Programming just like every art form requires skill, precision and dedication to master. According to Malcolm Gladwell in his book Outliers, it takes 10,000 hours (approximately 10 years) to master a skill or become an expert, with some school of thought disagreeing that it’s the quality of the training that makes an expert.</p><p>Alot of programmers today have suffered from imposter syndrome either on a major scale or on a minor scale. One major reason for this is as a result of comparison. By default our brains are wired to be better, thus intuitively finding a scale to rate ourselves with. With the Internet today and alot of access to written codes and projects done by people, it creates a shift in the question of : Who is a programmer and What makes a good programmer with a lot of websites, articles and individuals citing different answers on what makes a good programmer. This has caused individuals to create a very sketchy narrative of who and what a good programmer is. This narrative then goes on to drive how they effect being a programmer. When they fall short in this narrative it creates a feeling of inadequacy which lowers their productivity. This inadequacy of a programmer or this feeling of not being a programmer or programmer material enough is what I call… The imposter syndrome.</p><blockquote><a href="https://www.verywellmind.com/imposter-syndrome-and-social-anxiety-disorder-4156469">Impostor syndrome (IS) refers to an internal experience of believing that you are not as competent as others perceive you to be</a>.</blockquote><blockquote><a href="https://www.apa.org/gradpsych/2013/11/fraud">First described by psychologists Suzanne Imes, PhD</a>, and Pauline Rose Clance, PhD, in the 1970s, impostor phenomenon occurs among high achievers who are unable to internalize and accept their success. They often attribute their accomplishments to luck rather than to ability, and fear that others will eventually unmask them as a fraud.</blockquote><h3><strong>Tips on overcoming Imposter syndrome</strong></h3><p>The first step in overcoming this phenomenon is to redefine your perspective, the mind powers how we behave. A poor mindset would lead to poor results. Develop a growth mindset contrary to a fixed mindset. A growth mindset looks out for challenges that facilitate growth while a fixed mindset believes that their basic qualities, like their intelligence or talent, are simply fixed traits.</p><p>The next step is to change your narrative, and become your own narrative of what a programmer is. Try and envision yourself as being in that field not out of sheer luck, but dedication and commitment. Take conscious actions to change your perspective, do more, take on challenges, build projects. Get rid of that beggarly feeling of inadequacy.</p><p>Often times the feeling of inadequacy arises because we feel we are not doing what our others are doing. A simple hack to overcome this, is to rate yourself, see how far you’ve come and evaluate how far you’ve grown. Growth and change work hand in hand and they are always constant with you determining how far you grow for each passing day.</p><p>Finally, never waste today worrying about yesterday. We can change today and write history. Always remember history is always written by the victors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1ae7346db4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Knowledge VS Understanding- A beginner’s short guide to programming.]]></title>
            <link>https://medium.com/@godspowernathaniel25/knowledge-vs-understanding-a-beginners-short-guide-to-programming-af5054c0ebd6?source=rss-a7afe8f872a------2</link>
            <guid isPermaLink="false">https://medium.com/p/af5054c0ebd6</guid>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[rehkmansa]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 01:19:59 GMT</pubDate>
            <atom:updated>2021-06-30T01:19:59.154Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*nHbNk1UsJNLS7hDunZzkPw.jpeg" /></figure><p>Hello, my name is <em>RehkMansa</em> and I’ve been coding for over 3 years now, only at the start of 2021 and just a few months back have I had the desire to call myself a programmer. Why? You may ask. I delve into some of the reasons that caused it with this article.</p><blockquote><a href="https://www.google.com/amp/s/www.differencebetween.com/difference-between-knowledge-and-vs-understanding/amp/"><strong>Knowledge</strong> refers to information or awareness gained through experience or education whereas</a>,</blockquote><blockquote><a href="https://www.google.com/amp/s/www.differencebetween.com/difference-between-knowledge-and-vs-understanding/amp/"><strong>Understanding</strong> refers to knowing or realizing the intended meaning or cause of something</a></blockquote><p>In our modern world today, programming is a well sought out skill with different platforms offering tutorials with the likes of <a href="https://www.freecodecamp.org/">freecodecamp</a>, <a href="https://www.udemy.com/">udemy</a>, <a href="https://www.skillshare.com/">skillshare</a> etc, today anyone can be a programmer.</p><p>That said, What makes a good programmer? Programming is all about solving problems and how well you solve problems determine how good you are a programmer. An average programmer is able to solve most problems with an “<em>understanding</em>” of basics syntax and semantics that revolve around the language, that means as a programmer you should be able to explain a simple block of code.</p><p>The keyword “<em>knowledge</em>” now applies when the programmer has to explain the workings behind the code (and that’s why most programmers fail at quizes and interviews). Its a very common thing to hear a programmer say ‘Oh! I can do that’ but to explain it that’s hard. Most programmers from years of watching videos and programming tutorials have built an understanding of the language without ever grasping the knowledge that drives the language.</p><p>Knowledge of programming is being able write codes, be able to explain it and how it works, down to every simple element of the code.</p><p>Meanwhile Understanding of programming is simply being able to solve a programming problem(either having an idea of how to solve it or being able to solve it completely)</p><p>With <em>understanding</em> you never cover the ground basics, you just pursue having an idea of it (this was me at some point, all I wanted to do was understand it) but as a programmer you need <em>knowledge</em> (<em>knowledge</em> would help you be well rounded as you go deep to cover the basics, the concepts that govern it).</p><p>From years of chasing <em>understanding</em> vs the few months I’ve used to get <em>knowledge, </em>I’ve found out that knowledge is better to a programmer. The few months spent visiting old projects and tutorials helped grow my confidence, I was willing to step out of my comfort zone and actually look for projects to partake in, I was eager to learn more and even showcase my skills. It was that same drive that made me write this article. The years I spent <em>understanding</em>, I did so well too, in less than 3 months I had moved from HTML5 to PHP, watched alot of tutorial videos but when it came to executing projects I always found myself depending on the Internet and referring back to old projects. It was so bad I would opt for templates and edit them with my “<strong>basic</strong>” knowledge of CSS and make them look nice. I always lacked the confidence to showcase my work.</p><p>My advise as a developer to you is:</p><ul><li>Don’t skip those basics</li><li>Don’t rush out to get the so called “<em>deep ones”</em></li><li>Go after the simple things</li><li>Be confident in your skills, that’s what’s knowledge- being able to do the things on your own</li></ul><p>My closing remarks, life is a stream, just flow with the tides. Stay focused and learn, if takes you months… stay focused.</p><blockquote>It is knowledge that ultimately gives salvation~ Mahatma Gandhi</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af5054c0ebd6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>