<?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: Melinda MacKenzie</title>
    <description>The latest articles on Forem by Melinda MacKenzie (@mamacancode).</description>
    <link>https://forem.com/mamacancode</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%2F1182566%2Fadeb3226-f1c1-41bf-a060-4f513d70b607.jpeg</url>
      <title>Forem: Melinda MacKenzie</title>
      <link>https://forem.com/mamacancode</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mamacancode"/>
    <language>en</language>
    <item>
      <title>My biggest take aways as a brand new full stack software developer</title>
      <dc:creator>Melinda MacKenzie</dc:creator>
      <pubDate>Tue, 06 Aug 2024 14:11:00 +0000</pubDate>
      <link>https://forem.com/mamacancode/my-biggest-take-aways-as-a-brand-new-full-stack-software-developer-3lpa</link>
      <guid>https://forem.com/mamacancode/my-biggest-take-aways-as-a-brand-new-full-stack-software-developer-3lpa</guid>
      <description>&lt;p&gt;HI! If you're reading this, it means that I have officially reached the end of my year(ish) long journey as a student at Flatiron school's software engineering program. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;insert big sigh of relief here&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I stepped into this field with absolutely no background whatsoever in tech or computers. I have a bachelor's degree in Psychology, which has absolutely no direct overlap with any form of software tech. My knowledge for computers and software was only as about as extensive as my ability to navigate Facebook and Instagram (which I'm pretty proficient at ;) ). &lt;/p&gt;

&lt;p&gt;Upon completion of this program, I have learned not only many many technical skills, but many things about myself and my work ethic, discipline, and what really actually motivates me. &lt;/p&gt;

&lt;p&gt;First of all- I will NEVER look at another web page or mobile application the same. I will forever now be analyzing all the work that went into building these things and their complex functionality. As a user, it's so easy not to think of what went into the creation of the particular website or app that you are using. That's the point, right?  building something so flawless that a user never HAS to think about what's going on behind the scenes. Now that I have been fully submerged in the other side of things, I have come to understand the hard work and planning that goes into the development of these applications and for lack of a better word, am amazed. &lt;/p&gt;

&lt;p&gt;Secondly, I have learned that imposter syndrome is SO real and it must be acknowledged as such, or the success rates of these programs probably wouldn't even be half of what they are currently. My mindset coming into this program was an "I can do anything", "No background in tech? No problem". The amount of times that I questioned my decision within the first month or so of the program is unquantifiable. As soon as I would finally start to grasp a new concept, I was knocked right back down by the next one. Many times, I questioned if I was really able to do this. Was it some dream that I just couldn't achieve? Psychology brains surely don't think this way- and now I see it. I had been told that imposter syndrome would creep in from time to time, but mine didn't creep- it barged in. It took a lot of positive self-talk, some tears of frustration, and lots of reaching out for support to realize that as hard as it may be, I could do it. This psychology brain of mine could make a shift. After passing each phase, I would gain a new sense of confidence and enter the next phase with an unwavering feeling of motivation and drive. Would I lose momentum gradually throughout the phase until I reached a point of nearly total defeat? Yes. Did I work through it every time? Yes. If you're questioning if you're cut out for this, the answer is yes. You can do it. &lt;/p&gt;

&lt;p&gt;Third, if I could tell any one who is standing in the shoes that I was a year ago I would say, fake it til you make it. I know this doesn't sound like the best advice but for me, it really made all the difference. You don't know the exact answer? Give me your best shot and I'm sure you'll wind up on the right path eventually. Talk out loud as if you know what you are talking about, speak through your code, build things with confidence. The more you do this, the more you will realize that you will make it. Eventually the fake becomes your reality! &lt;/p&gt;

&lt;p&gt;All this being said, remember that I am a full stack developer, not seasoned, but very fresh in my journey and have much to learn so if you choose to take my advice, take it lightly. Let it encourage you to really go after it, and don't let anyone- including yourself, tell you that it's not possible!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>RESTful routes</title>
      <dc:creator>Melinda MacKenzie</dc:creator>
      <pubDate>Wed, 31 Jul 2024 14:45:40 +0000</pubDate>
      <link>https://forem.com/mamacancode/restful-routes-1nj7</link>
      <guid>https://forem.com/mamacancode/restful-routes-1nj7</guid>
      <description>&lt;p&gt;As we as developers begin to build our applications, whether they be small or large,  we  aim to create an experience that is user friendly and interactive. In order to not only make an application that is desirable to users, it's also beneficial to build something that when shared with other programmers has code that is easy to understand, and decipher for effective and simple collaboration. One common practice to follow when developing these apps is following the convention of RESTful routes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What are RESTful routes?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;REST stands for representational state transfer, which put simply is just a blueprint for defining the routes within our app. It provides a way to map our CRUD (create, read, update, delete) actions with our HTTP verbs (GET, POST, PUT, DELETE).&lt;/p&gt;

&lt;p&gt;For the sake of giving you a real life example, I have created a fitness finder app that allows authenticated users to interact with gyms and their workout classes. Users can view all (GET) gyms, edit (PUT) a gym, delete (DELETE) a gym, add (POST) a gym, as well as write (POST) a review, view (GET) all reviews for specific gyms, and view (GET) all of their own gyms. All of these different features require specific routes. While building out these routes, I followed the RESTful routes conventions, or standard set of rules to complete these CRUD actions using HTTP verbs to make a request to my server.&lt;/p&gt;

&lt;p&gt;A few examples of the  REST API endpoints for that specific application are as follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;VIEW (GET) ALL GYMS - '/gym' &lt;/li&gt;
&lt;li&gt;VIEW (GET) ONE GYM - '/gym/&lt;a&gt;int:gym_id&lt;/a&gt;'&lt;/li&gt;
&lt;li&gt;VIEW (GET) ALL WORKOUT CLASSES - '/workout_classes'&lt;/li&gt;
&lt;li&gt;EDIT (PUT) ONE WORKOUT CLASS - '/workout_classes/&lt;a&gt;int:workout_class_id&lt;/a&gt;'&lt;/li&gt;
&lt;li&gt;DELETE (DELETE) A GYM - '/gym/&lt;a&gt;int:gym_id&lt;/a&gt;'&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;RESTful routes are stateless, they do not hold state from one request to another. The information needed for each request is held in that specific request only. It is a stateless transaction of data.&lt;/p&gt;

&lt;p&gt;Another benefit to using RESTful routes when building an application is the HTTP status codes. Simple, clear status codes are effective in helping developers and clients to more clearly understand where the error in the request may be occurring.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbm5ny3z9ojxn0e5p34ks.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbm5ny3z9ojxn0e5p34ks.png" alt="Image description" width="800" height="241"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(image from &lt;a href="https://appmaster.io/blog/the-six-rules-of-rest-apis" rel="noopener noreferrer"&gt;https://appmaster.io/blog/the-six-rules-of-rest-apis&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;RESTful routes also follow a few basic naming conventions such as, using nouns and not verbs ('/gyms' vs '/getgyms') and using plurals to show a collection instead of singular item, keeping clear definition of parent/child relationships ('/gym/&lt;a&gt;int:gym_id&lt;/a&gt;/reviews' to access a specific gym's reviews only, and many other conventions.&lt;/p&gt;

&lt;p&gt;While this is only scraping the surface on RESTful routes, I hope it can give you a better understanding of the benefits to using RESTful routes when building any application.  &lt;/p&gt;

</description>
      <category>react</category>
      <category>reacthook</category>
      <category>formik</category>
      <category>programming</category>
    </item>
    <item>
      <title>Relationships in Python</title>
      <dc:creator>Melinda MacKenzie</dc:creator>
      <pubDate>Tue, 23 Apr 2024 14:24:59 +0000</pubDate>
      <link>https://forem.com/mamacancode/relationships-in-python-1b0a</link>
      <guid>https://forem.com/mamacancode/relationships-in-python-1b0a</guid>
      <description>&lt;p&gt;One thing that we can all be certain of when it comes to relationships of any kind in life is that chances are, they will be complicated. Complicated isn't to say the relationship itself is bad, inappropriate, or won't flourish; it just means it may take some extra work.&lt;/p&gt;

&lt;p&gt;This simple fact remains true for Python and the different relationships we encounter when building  a complex yet effective applications.&lt;/p&gt;

&lt;h2&gt;
  
  
  Types of Relationships in Python
&lt;/h2&gt;

&lt;p&gt;There are many different relations in python but I will be touching on the two that I've encountered most as I'm finishing up my first python CLI application.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Many-to-many&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In order to describe a many-to-many relationship, I will use the model from the CLI application that I built. In my particular CLI which was kept simple and to the point, I used a one-to-many relationship (which I will cover next) but for the sake of this example I will change my tables slightly. I created an "event manager" application that displays data for athletes, and their corresponding events. If I were to use a many-to-many relationship for this, I would say an athlete can participate in *many events(or races) and an event(or race) can have many athletes. The data for these tables is interacted with and queried using SQL and SQL explorer. (For the sake of this blog I will not cover that in depth, but here's a good reference blog if you're interested &lt;a href="https://dev.tourl"&gt;https://dev.to/harperdb/sql-and-relational-databases-explained-by-a-non-developer-e3a&lt;/a&gt;. The tables would be: an event table which would hold the data for each event(or race) such as name, date, and location, and an athlete table which would hold the data for each athlete, such as name, age, and gender. A third table, called an association table, which we will call Athlete_event in this example, would hold the data for the specific athlete(by ID) and the corresponding event(by ID).&lt;br&gt;
This table is used to show the many-to-many relationship between athletes and events, which may also be referred to as a "joint table".&lt;/p&gt;

&lt;p&gt;for Example:&lt;/p&gt;

&lt;p&gt;CREATE TABLE Athlete (&lt;br&gt;
    athlete_id INT PRIMARY KEY,&lt;br&gt;
    name VARCHAR(100),&lt;br&gt;
    age INT,&lt;br&gt;
    gender CHAR(1)&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;CREATE TABLE Event (&lt;br&gt;
    event_id INT PRIMARY KEY,&lt;br&gt;
    name VARCHAR(100),&lt;br&gt;
    date DATE,&lt;br&gt;
    location VARCHAR(100)&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;CREATE TABLE Athlete_Event (&lt;br&gt;
    athlete_id INT,&lt;br&gt;
    event_id INT,&lt;br&gt;
    FOREIGN KEY (athlete_id) REFERENCES Athlete(athlete_id),&lt;br&gt;
    FOREIGN KEY (event_id) REFERENCES Event(event_id),&lt;br&gt;
    PRIMARY KEY (athlete_id, event_id)&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;This would effectively display a one-to-many relationship. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One-to-Many&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;One-to-many is a little less complex, yet still a slightly mind boggling to think about. In my Event Manager application, an athlete could participate in one event(or race) and an event(or race) could have many athlete's participating in it(obviously, or else, what kind of race would that be?!)&lt;/p&gt;

&lt;p&gt;CREATE TABLE Event (&lt;br&gt;
    event_id INT PRIMARY KEY,&lt;br&gt;
    name VARCHAR(100),&lt;br&gt;
    date DATE,&lt;br&gt;
    location VARCHAR(100)&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;CREATE TABLE Athlete (&lt;br&gt;
    athlete_id INT PRIMARY KEY,&lt;br&gt;
    name VARCHAR(100),&lt;br&gt;
    age INT,&lt;br&gt;
    gender CHAR(1),&lt;br&gt;
    event_id INT,&lt;br&gt;
    FOREIGN KEY (event_id) REFERENCES Event(event_id)&lt;br&gt;
);&lt;/p&gt;

&lt;p&gt;The 'Foreign key' is the event_id in the Athlete table, which references the event that the athlete participated in. In the event table, this specific event_id is a primary key. When it is referenced in another table, in this case the athlete table, it is referred to as the foreign key.&lt;/p&gt;

&lt;p&gt;While this particular blog just skims the surface of One-to-Many and Many-to-Many relationships, I hope it has given you a basic understanding of the types of relationships we can explore and build in order to handle data as efficiently and easily as possible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SOURCES:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.pinterest.com/pin/735142339164545850/" rel="noopener noreferrer"&gt;https://www.pinterest.com/pin/735142339164545850/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://dev.to/harperdb/sql-and-relational-databases-explained-by-a-non-developer-e3a"&gt;https://dev.to/harperdb/sql-and-relational-databases-explained-by-a-non-developer-e3a&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://medium.com/@aobrienaf/a-look-into-many-to-many-and-one-to-many-relationships-in-python-3-152243c682d7" rel="noopener noreferrer"&gt;https://medium.com/@aobrienaf/a-look-into-many-to-many-and-one-to-many-relationships-in-python-3-152243c682d7&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>python</category>
      <category>tablerelations</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>React Component Hierarchy</title>
      <dc:creator>Melinda MacKenzie</dc:creator>
      <pubDate>Tue, 16 Jan 2024 20:27:08 +0000</pubDate>
      <link>https://forem.com/mamacancode/react-component-hierarchy-bi1</link>
      <guid>https://forem.com/mamacancode/react-component-hierarchy-bi1</guid>
      <description>&lt;p&gt;If you've found yourself on my page, chances are you're learning the very very basics of React- just like myself. At the 'root' (😉 ) of building a react application , you will find one very important concept- the &lt;strong&gt;react component hierarchy.&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;In order to understand react component hierarchy, we must first understand what a component in react is. I prefer to think of components as the individual building blocks of the entire application itself. Components are individual 'parts' of the app, that will return the react elements that will become what appears on the screen for the user.&lt;/p&gt;

&lt;p&gt;In the beginning stages of building a react app, developers must make a rough "frame work" of the way they would like to break their app down into "components". Typically the 'root' or base of the app itself will be the component titled "App" which encapsulates the application as a whole, the outermost layer as I think of it in my mind. Depending on what kind of application you're building, other components could be things such as "header", "search bar", "nav bar", "links", "link container", "form", "form container", etc; all things which make up the application.  &lt;/p&gt;

&lt;p&gt;How do we bring all of these separate components together in order to make the application function as a whole? That is where the component hierarchy comes into play. Information can be shared, and passed down to children in the form of "props" or passed up to a parent using a callback function. Developers must follow the rules and guidelines for sharing information amongst components. Most prefer to visualize the component hierarchy as a "tree", with the parent component at the top and children and neighboring components flow down from the parent. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhx1h98rcwqucnh51zjaw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhx1h98rcwqucnh51zjaw.png" alt="Component Hierarchy Tree" width="410" height="123"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;More specific to our example is this..&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3oqj6ru20avyl9r0mway.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3oqj6ru20avyl9r0mway.png" alt="Parent and child components" width="800" height="626"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We are in the top component "app", which has the children components of "header", and "main container". Information can be passed directly down to the children in the form of props. The children "header" and "main container" may also have children, which can then also be passed down the information that came from "app". &lt;/p&gt;

&lt;p&gt;As we know, not all data is static data. More often than not a user can interact with the application, causing a change in the data, or change in "state". At the very basic level, if two components need access to the same state, the state must be "lifted up" to the most common ancestor of both of the child components. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For example&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F06g04t7al4jtt6favo75.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F06g04t7al4jtt6favo75.png" alt="Lifting up state in parent component" width="800" height="712"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this particular example, the parent component is "app" which has multiple children, "Home", "Bath", "Car", "Feeding", and "Sleep". All of these children need access to the data, in this case an array of "items" and the state of this data will change depending on which category (corresponding components) a user clicks on. Due to the fact that these sibling components ALL need access to the same state, we have "lifted up state" and stored the state in the common ancestor component "app". Now all children components have access to that state. &lt;/p&gt;

&lt;p&gt;The more complex an application becomes, the more difficult it is to share information and data amongst components. In order to develop code that has readability and is easily shared amongst developers, it is important to have a well thought out and designed component hierarchy.&lt;/p&gt;

&lt;p&gt;This particular article has just grazed the surface on react components and all that many many layers, but as a new and learning developer, I find it to be one of the most crucial concepts to understand when beginning to work with react!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thanks for reading!&lt;/strong&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Step by step coding</title>
      <dc:creator>Melinda MacKenzie</dc:creator>
      <pubDate>Wed, 11 Oct 2023 18:35:18 +0000</pubDate>
      <link>https://forem.com/mamacancode/step-by-step-coding-1l06</link>
      <guid>https://forem.com/mamacancode/step-by-step-coding-1l06</guid>
      <description>&lt;p&gt;&lt;strong&gt;Welcome!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you have somehow stumbled across my blog you're probably one or all of these few things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A fellow Flatiron software engineer student (👋 👋 )&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;new to the coding world (👨‍💻 👩‍💻 )&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;becoming frustrated staring at the same code and errors for hours on end and now browsing the web for some comedic relief until you feel mentally ready to be defeated by JS over &amp;amp; over again.. (the reason I have stumbled upon 95% of the blogs that I have read 🙋‍♀️)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;and if you're none of those, I hope this blog post finds you well!&lt;/p&gt;

&lt;p&gt;As a 30(some 😉 ) year old career changer leaving the world of psychology to become a software engineer, you can imagine I've encountered many frustrating moments have caused me to question my ability to really succeed as a software engineer. In order to learn the many different languages, and concepts of SE, I have had to retrain the way that my brain approaches and solves problems. (Hello, imposter syndrome!)&lt;/p&gt;

&lt;p&gt;I am now nearing the completion of the first phase of the five phase curriculum at Flatiron school and through it all the most useful takeaway (besides the JS knowledge) that I have found is to break the problem down, or break the code down. I found myself feeling completely defeated before even attempting to code a solution to a specific lab multiple times throughout the past 3 months.&lt;/p&gt;

&lt;p&gt;So what do I mean by break it down? For me, it involves a lot of talking out loud. The more I speak out loud the exact problem that I am attempting to solve, the more I could understand it in "non-technical" terms. (Bonus: the more you speak in technical programming language, the more natural it comes which will be imperative to your career) I've been told many times "to be a developer, you have to speak like a developer", what better way to master this skill than repeatedly doing so? &lt;/p&gt;

&lt;p&gt;Once I am able to comprehend what I am being asked to do, I use "pseudocode" to translate the problem into singular steps using non programming language that does not follow any particular syntax guidelines. Make sure to keep your pseudocode short and to the point. Your pseudocode should be able to describe the functionality of your code in terms that someone without extensive programming background could understand. Once you have written out your pseudocode, you can then use this to write out your code.&lt;/p&gt;

&lt;p&gt;For a simple example, let's pretend you're creating an app that will take someones info, age, name, occupation, and decide if they're legally able to vote. You need to write a function that takes age as an argument, and will return voting eligibility.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Write a function that will check voting age of applicant
function checkVotingAge(age) {

// If applicants age is above 17 years old, return "vote!"
    if (age &amp;gt;= 18) {
        return "vote!";
    } 

// If applicants age is below 18 years old, return "no vote!"

else {
        return "no vote!";
    }
}
// Example usage:
const personAge = 20;
const result = checkVotingAge(personAge);
console.log(result); // Output will be "vote!"


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The task of writing code and developing can seem quite daunting and overwhelming. To me, it felt as though I was trying to solve multiple problems at once. By breaking the problem down into smaller steps and utilizing pseudocode, I am able to work the problem out step by step and the task becomes less of a mountain to conquer and more of a molehill. &lt;/p&gt;

&lt;p&gt;As a beginner in the software development world, I hope these small bits of advice can also help you in those frustrating moments. Happy coding!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sources&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;IMAGE : &lt;a href="https://medium.com/codex/10-best-programming-memes-1-cec344afc19a" rel="noopener noreferrer"&gt;https://medium.com/codex/10-best-programming-memes-1-cec344afc19a&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;CONTENT REFERENCE : &lt;a href="https://www.geeksforgeeks.org/how-to-write-a-pseudo-code/" rel="noopener noreferrer"&gt;https://www.geeksforgeeks.org/how-to-write-a-pseudo-code/&lt;/a&gt;&lt;/p&gt;

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