<?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 Full Stack Vault on Medium]]></title>
        <description><![CDATA[Stories by Full Stack Vault on Medium]]></description>
        <link>https://medium.com/@fullstackvault.xyz?source=rss-12fd13770554------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zq0xiqXOeiPSBalyzpG2dA.png</url>
            <title>Stories by Full Stack Vault on Medium</title>
            <link>https://medium.com/@fullstackvault.xyz?source=rss-12fd13770554------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 12:09:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fullstackvault.xyz/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[Learn To Code From Zero — How To Teach Yourself Programming From Scratch]]></title>
            <link>https://medium.com/@fullstackvault.xyz/learn-to-code-from-zero-how-to-teach-yourself-programming-from-scratch-1fbd7f5a8477?source=rss-12fd13770554------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fbd7f5a8477</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Full Stack Vault]]></dc:creator>
            <pubDate>Fri, 09 Dec 2022 19:15:21 GMT</pubDate>
            <atom:updated>2022-12-10T18:08:34.620Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learn To Code From Zero — How To Teach Yourself Programming From Scratch</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B3oCbvaGhNo09uHRsJ5geA.png" /></figure><h3>How to learn programming for beginners (for free)</h3><p>There are three main questions that programmers get asked a lot from friends and family:</p><ol><li>Can you hack my friend’s Facebook account?</li><li>I have a cool app idea, can you build it?</li><li><strong>How can I also learn how to code?</strong></li></ol><p>I’m mostly excited about question #3, that’s why I wrote this huge guide.</p><p>If you:</p><ul><li>Want to learn programming online for free</li><li>Are fascinated at the thought of building cool things</li><li>Are dreaming about the rewarding job opportunities in the field</li></ul><p>then you’ve come to the right place. This <strong>beginner-friendly guide will walk you through five important steps</strong> to learning programming.</p><p>By the end of this article, you’ll:</p><ul><li>Learn the right mindset before starting</li><li>Get to know the different fields of programming</li><li>Have a learning roadmap for the kind of programming you choose to specialize in</li><li>Know how to avoid the common pitfall that aspiring programmers fall into</li><li>Have answers to the common questions beginners have about learning how to code</li></ul><p>So you’re a beginner and you want to teach yourself programming from scratch. How on earth do you do it?</p><h3>1. Start with the right mindset</h3><p>First, you have to get it out of your mind that there’s a universal right way to learn programming, because there’s none.</p><p>The truth is there are many ways to the top of the mountain.</p><p>If you ask any programmer about how you can start, you’ll probably hear specific advice such as, “learn Python” or “learn C”. Those suggestions aren’t inherently bad, but they’re usually suggesting something that they personally like.</p><p>You have to do your own research in conjunction with the advice that you get.</p><p>You see, “how to learn programming from scratch” is a broad question. And while there’s no universally correct answer, there are important questions you have to ask yourself in order to start on the right foot.</p><p>That’s what this guide is for.</p><p>Now that we have out of the way, let’s keep going…</p><h3>2. Figure out what kind of programming you want to learn</h3><p>If you want to learn programming, the next step after fixing your mindset is to figure out what kind of programming you want to learn.</p><p>There are two reasons why you need to think about this:</p><ol><li>The technologies you have to learn depends on what you want to do.</li><li>It’s fairly hard to learn how to code when you’re not excited about the things you’re building.</li></ol><p>So first you have to think about what kind of projects you want to build, or what kind of problems you’d like to solve with programming.</p><p>Do you want to work on mobile or web applications, Windows or macOS applications, PC games, data science, robotics/electronics, automation of manual tasks in your job, etc.?</p><p>If you’re completely clueless about which one to pick or where to start, try web development with the JavaScript programming language.</p><p>I warned against very specific advice like this earlier. But there are good reasons why many self-taught programmers got started in web development — the same reasons why you might consider starting there too.</p><p>Let’s explore those reasons…</p><h3>2.1 A good place to start if you’re undecided</h3><p>As I said, most self-taught programmers got started in web development, and it’s for the following reasons you can’t ignore:</p><h4>a. Low learning curve</h4><p>The web development field has one of the lowest barriers to entry because it’s one of the easiest to learn and get started with.</p><p>Because of the nature of the field, you can start building projects rather earlier in your journey compared to other types of programming.</p><p>One advantage of this is you can gauge faster if you really like coding or not. It’s a great way to get your feet wet in the world of programming.</p><p>For example, on the front-end side of web development where you build the client-side of web applications, you can immediately see the output of your work, and it’s a good motivator to keep going.</p><h4>b. Abundant resources online</h4><p>When you’re teaching yourself programming from scratch, you won’t run out of online resources for learning web development.</p><p>Remember, you’re self-teaching. Lacking resources is not a good way to learn when you’re teaching yourself programming.</p><p>The best thing is a LOT of these high-quality web development resources are also free.</p><p><a href="https://fullstackvault.xyz/">This website</a> is enough proof — it’s a curation of free, high-quality resources for learning web development.</p><p>You can learn from books, courses, tutorials, and documentation for any topic under the web development sun. Just browse the home page and see the quality of these free resources.</p><h4>c. JavaScript is versatile</h4><p>JavaScript is a programming language that is mostly used for web development. But wait, there’s more!</p><p>Gone are the days when JavaScript was just a scripting language to make interactive elements for the browser. Now, you can build web servers, mobile applications, and even games with it!</p><p>Combine JavaScript’s low learning curve with this versatility, it’s no wonder why it’s one of the most popular programming languages out there.</p><h4>d. Many communities to help you learn</h4><p>Teaching yourself how to code can be tough despite the abundance of learning resources and the low learning curve of web development.</p><p>Why? Because you’re alone!</p><p>It’s easy to get frustrated and give up altogether when you’re learning programming on your own.</p><p><strong>But that doesn’t have to be the case.</strong></p><p>There are many communities dedicated to learning web development and supporting newcomers to the field. That’s great because you can ask more specific questions and get insights from people with more experience.</p><p>These communities are also popular for finding accountability and study buddies. You can find people from all kinds of backgrounds, from students to professionals who are trying to switch careers into tech.</p><p>You can learn together, motivate each other, and even give each other feedback!</p><p>Just check out this example and tell me it’s not the best place to hang out when you’re starting out in coding: <a href="https://forum.freecodecamp.org/">https://forum.freecodecamp.org/</a></p><p>Other than that, you can also find similar communities on Facebook groups, Discord servers, subreddits, and Twitter.</p><h4>e. More job opportunities</h4><p>If you’re looking to do more than just dabble in programming and instead switch careers into tech through self-teaching, then you might have heard that web development is a good field to consider.</p><p>Web developers are in higher demand in the job market now more than ever.</p><p>The internet and web-based technologies are growing in popularity, and more and more businesses and organizations are relying on the web to connect with customers and provide services. So there will always be a demand for skilled web developers who can build and maintain websites and web-based applications.</p><p>Think about your favorite social media platforms like Facebook, Twitter, and Instagram. These are all examples of web-based applications that have revolutionized how we connect and share information. And they’re just the tip of the iceberg! E-commerce giants like Amazon and Ebay, video and streaming services like YouTube, Netflix, and Twitch, collaboration tools like Slack and Zoom, and many more services like Airbnb, Uber, Grubhub, Zillow, Dropbox, and TaskRabbit have all disrupted their respective industries through the power of the web. Web-based applications are changing the world, and there’s no sign of slowing down.</p><p>Web development will continue to be a big part of the future, and you can be part of that future if you decide to become a web developer.</p><p>Just do a quick Google search for web developer jobs such as “full-stack jobs”, “front-end jobs”, and “back-end developer jobs” and you’ll always see lots of results.</p><p>You could also try searching for a specific technology such as “JavaScript developer jobs” or “React developer jobs” and it’s the same thing.</p><p>Read more: <a href="https://dev.to/fullstackvault/%5Bhttps://brainstation.io/career-guides/is-web-development-a-good-career%5D(https://brainstation.io/career-guides/is-web-development-a-good-career)">prospects of a web development career</a></p><h4>f. It’s not set in stone</h4><p>Deciding to start in web development is not set in stone.</p><p>Web development can be the start of your journey but it doesn’t have to be the end. I’m only suggesting it as a great place to start because of the reasons above.</p><p>The good thing is that a lot of what you’ve learned in web development can be carried over to mobile app development, etc.</p><p>Computer science and the core concepts of programming are the same across the programming sub-fields, as you will soon realize when you switch from one programming language to another.</p><p>What I’m trying to say is that you shouldn’t overthink how to start, what to pick, etc. What’s more important is that you get started and gain momentum. Just get your feet wet, try it out yourself, and see if you like it.</p><p>If you think it’s not for you, it’s not a big deal. You can always switch over to another field or programming language if you realized that you don’t like web development.</p><p><strong>That’s the beauty of being a self-taught programmer</strong> — you don’t invest thousands of dollars into a degree before figuring out whether you like the practice or not. You can always switch to something else.</p><h3>2.2 Which programming language should I learn?</h3><p>Again, it depends on what you want to do or build (don’t worry, I’ll list the programming languages used for the popular use cases below).</p><p><strong>To reiterate, there’s no universally “correct” way to learn programming. In the same way, there’s no “best” programming language. Each programming language solves a specific kind of problem.</strong></p><p>So to answer this question, you should start by thinking of a problem you want to solve or an application you want to build, <strong>then research what programming language is used for that type of project.</strong></p><p>If you want to build a website or web application, you need to learn JavaScript, among other web technologies such as HTML and CSS.</p><p>For mobile applications, it depends on the operating system. For iOS, you need Swift. For Android, you need Java or Kotlin.</p><p>For desktop applications, it still depends on the operating system. For Windows, you need C#. For macOS, you need Swift. Notice how you can use the Swift programming language for both desktop (macOS) and mobile (iOS) applications?</p><p>For programming Arduinos or Raspberry Pi, you can choose between C++ or Python.</p><p>For building games, you can choose from a lot more languages, such as C#, Java, JavaScript, Python, LUA, and more.</p><p>For mathematical computing or data analysis, you can use Python, JavaScript, Scala, Julia, and more.</p><h3>2.3 Should I learn more than one programming language at once?</h3><p>It’s generally not a good idea to learn multiple programming languages at once if you’re going the <strong>self-taught route</strong> (learn without formal education or training) and you’re still a beginner.</p><p>There are two main reasons for this:</p><p>First, learning how to code is a challenge and it takes time. Learning more than one language at once as a beginner (especially when you’re self-taught) can overwhelm and frustrate you. If you try to learn multiple languages at once when you’re just starting out, you might end up not learning anything at all.</p><p>Second, the basics of a lot of programming languages are quite similar. That means it gets easier to learn a second programming language after being proficient in one language. That also means that learning multiple languages while starting out makes you learn the basics in multiple “syntaxes” which is not a good use of your time.</p><p>It’s better to stick to one programming language for a few months and master the basics of that language first. Once you have a strong foundation in the basics of programming, it’ll be easier to learn additional languages in the future.</p><p>So, what you should do instead is focus on building a strong foundation in general programming fundamentals using one language before you move on to your second language.</p><p>You should only learn more than one programming language at once if the project you’re working on requires it.</p><h3>3. Pick your curriculum — where to start learning programming</h3><p>Now it’s time to know where you can actually start learning programming. In this step, have to know the roadmap for learning the technologies needed to build your application in mind.</p><p>You see, each programming specialization requires knowing not just one but many technologies.</p><p>A learning roadmap is important because most technologies require you to learn their prerequisites first. <strong>If you’re well-informed about these prerequisites, you’ll be able to avoid learning the technologies in the wrong order.</strong></p><p><strong>So give me the curriculum!</strong></p><p>Before I provide the learning roadmaps, remember that “programming” is a very broad topic. And yet the roadmaps for the different programming specializations are more specific.</p><p>That’s also why I first urged you to pick what kind of programming you’d like to do and start from there.</p><p>The best I can do is provide a general guide like this one, and point you in the right direction where you can learn more specific programming technologies you need.</p><p>So don’t fret — here are the roadmaps for the popular programming fields that you can choose from:</p><h3>3.1 Web Development</h3><p>If you want to learn web development, start with <a href="https://www.youtube.com/watch?v=7uJGjbkp0-U">this roadmap</a>.</p><p>That’s honestly all the roadmap you need to get started in web development. Not only does he list the technologies you have to learn, but he also explains what they’re used for and why they’re helpful.</p><p>But if video style is not for you, check out the <a href="https://roadmap.sh/frontend">frontend developer roadmap</a> or the <a href="https://roadmap.sh/backend">backend developer roadmap</a>, or both if you want to learn full-stack.</p><h4>What’s the difference between frontend, backend, and full-stack development?</h4><p>All three are different aspects of web development.</p><p><strong>Frontend development</strong> focuses on the client-side of web development — the layout, visual elements, and interactive features of the website.</p><p>In other words, frontend developers code the stuff you see and interact with on the browser.</p><p>For example, the frontend is responsible for displaying a form on a website. The frontend logic also “listens” to the user’s input on the form and to the user’s click of the submit button. Finally, it sends the values to the server.</p><p><strong>Backend development</strong> focuses on the server-side of web development, which involves handling the data and logic that powers the application.</p><p>For example, when a user submits a form on a website, the backend logic will process the user’s input, store the data in a database, and return a response to the frontend to update the user interface.</p><p><strong>Full-stack development</strong> involves both the frontend and backend sides of a web application. That means that full-stack developers handle both the client and server-side of things.</p><h3>3.2 Mobile Development</h3><p>If you want to develop <strong>native mobile applications</strong>, these are the roadmaps you can choose from:</p><ul><li>Android → <a href="https://roadmap.sh/android">Android developer roadmap</a></li><li>iOS → <a href="https://decode.agency/article/ios-roadmap/">iOS developer roadmap</a></li></ul><p>You can also choose the cross-platform route and start learning one of the following:</p><ul><li>Flutter → <a href="https://roadmap.sh/flutter">Flutter developer roadmap</a></li><li>React Native → <a href="https://blog.bitsrc.io/a-web-developers-roadmap-to-learning-react-native-9e52f5d5d38e">React Native developer roadmap</a></li></ul><h4>What’s the difference between native mobile development and cross-platform mobile development?</h4><p><strong>Native mobile development</strong> refers to the development of mobile apps that are specifically designed to run on a particular mobile operating system, such as iOS or Android.</p><p>This allows developers to create apps with the <strong>best possible performance</strong> and user experience since they can take advantage of the full range of features and capabilities of the targeted platform.</p><p><strong>Cross-platform</strong> mobile development refers to the development of mobile apps by writing a <strong>single codebase that can be compiled and run on multiple platforms</strong>.</p><p>This is more efficient when developing mobile apps versus having to create separate versions of the app for each platform.</p><p>However, the performance and user experience of cross-platform apps may not be as good as native apps, since they may not be able to take full advantage of the features and capabilities of each platform.</p><h3>3.3 Game Development</h3><p>If you’re passionate about video games and have a dream of creating interactive experiences that captivate players, here’s the roadmap for you:</p><p><a href="https://www.codelivly.com/game-development-roadmap-2022/">Game developer roadmap</a></p><h3>3.4 Data Science</h3><p>Do you love using data to solve complex problems and uncover patterns and trends that can inform business decisions or drive research? Are you looking to be a part of a rapidly growing and in-demand field? I got you:</p><p><a href="https://www.geeksforgeeks.org/how-to-become-data-scientist-a-complete-roadmap/">Data scientist roadmap</a></p><h3>3.5 Embedded Engineering</h3><p>Imagine being able to develop control systems for robots, drones, and other autonomous devices. Or creating smart home appliances like thermostats, security systems, and lighting systems. Or even building consumer electronics like smart watches, fitness trackers, and portable speakers. The possibilities are endless with embedded programming!</p><p>So <strong>if you’re interested in working with both hardware and software</strong>, and enjoy the hands-on nature of the work, here’s the most straight-forward roadmap for you:</p><p><a href="https://www.leitner-fischer.com/2022/03/28/embedded-software-engineer-roadmap/">Embedded software engineer roadmap</a></p><h3>4. Build projects</h3><p>This is very important and something you must take seriously.</p><p><strong>The most common mistake many aspiring programmers make when learning on their own is not building their own projects.</strong></p><blockquote><em>They spend months (some even years) consuming resources, but they can’t code anything on their own — even basic stuff!</em></blockquote><blockquote><strong><em>This is called being stuck in tutorial hell. It happens when you don’t build your own projects.</em></strong></blockquote><blockquote><em>— Me, </em><a href="https://fullstackvault.xyz/blog/how-to-learn-javascript-at-home"><em>How To Learn JavaScript at Home</em></a></blockquote><p>Yes, I just quoted myself. The point is, you’ve got to build your own projects because you will never truly learn programming by just passively learning.</p><p>Why?</p><p>Because programming is like any other skill. Can you learn how to ride a bike by just watching a tutorial online? What about driving a car? Or swimming? Or learning another language?</p><p>Building projects helps you to:</p><ul><li>Develop your skills by applying the concepts you’ve learned in a practical setting.</li><li>Retain what you’ve learned.</li><li>Keep yourself motivated because building your own projects can be a fun and rewarding experience.</li><li>Showcase your skills and accomplishments to potential employers or clients.</li></ul><p>So please, build your own projects after learning the basics of your programming language of choice. Start small with your first project, and add more features and functionality as you go further along in your journey.</p><h3>5. Find a community</h3><p>If you want to teach yourself programming from scratch without getting a formal education (degree or bootcamp), then it’s even more essential to find a community.</p><p>Being part of a community when you’re aspiring to become a self-taught programmer can be the <strong>make-or-break piece of your learning journey</strong>.</p><p>That’s because a community provides the following:</p><ul><li>Valuable support and guidance as you learn and grow as a programmer. Fellow programmers can answer your questions, provide feedback on your work, and share their own experiences and insights, which can help you overcome challenges and <strong>accelerate your learning</strong>.</li><li>A sense of belonging and connection which is especially important for aspiring programmers who are learning on their own or feeling isolated.</li><li>Access to a wealth of resources and opportunities, such as online courses, workshops, meetups, and hackathons. These can help you learn new skills, network with other programmers, and gain experience working on real-world projects.</li></ul><p>As I mentioned earlier, you can find these communities on Facebook or Slack groups, Discord servers, subreddits, and Twitter.</p><h3>Learn How to Code — Frequently Asked Questions</h3><h3>How long does it take to learn how to code?</h3><p>If you’re starting from zero, the amount of time it takes to learn how to code depends a lot on how much time you are able to dedicate to learning, and how consistently you show up to learn.</p><p>That’s why for some people, it may take only a few months to learn the basics of a programming language, while others may take longer to become proficient.</p><p>On average, it may take several months to a year of <strong>dedicated learning</strong> to become proficient in a programming language. However, learning to code is a lifelong process, and even experienced programmers continue to learn new languages and techniques throughout their careers.</p><p>Instead of worrying about how long it will take you to learn programming, it’s better to focus on dedicating time to learning consistently.</p><p>It’s better to set aside 30 minutes every day than to spend 8+ hours every other week. Aside from building a habit more effectively, there is a science to showing up more often when learning something new.</p><p><strong>If you want to learn more about learning effectively, check out this amazing free course, </strong><a href="https://www.coursera.org/learn/learning-how-to-learn"><strong>Learning How To Learn</strong></a><strong>.</strong></p><h3>Is math important in programming?</h3><p>Yes and no. It depends on what kind of programming you want to specialize in.</p><p>After reading this far, you already know that programming is a big field that has different areas.</p><p>But in general, you don’t need to be good at math to be a programmer. A lot of programming specializations do not require you to be good at math. You just need to know how to do basic math like adding, subtracting, multiplying, and dividing.</p><p>In fact, a lot of programmers go through their entire careers barely doing any math at all (I’m one of those).</p><h4>Which fields require more math and which fields require less math?</h4><p>Some areas of programming that require good math skills are making games and working with data. To make 2D and 3D games, you will use math concepts like vectors, matrices, and linear algebra. Data analysis and machine learning use statistics and calculus.</p><p>Jobs like web development and mobile development don’t need much math. In those areas, it’s more important to be able to write good code and build things that people want to use.</p><h3>Am I too old to learn how to code?</h3><p>It’s never too late to learn how to code! In fact, many people start learning to code later in life and go on to have successful careers as programmers. The key is to have a willingness to learn and a dedication to practice regularly.</p><p>Whether you’re a retiree looking for a new challenge, a parent wanting to build skills for the future, or simply someone who’s always wanted to learn how to code, it’s never too late to start.</p><p>As long as you’re willing to put in the time and effort, you can learn to code at any age.</p><p>So why not give it a try and see where your new skills can take you? You might be surprised by what you can accomplish.</p><h3>Do you need a high IQ or be a genius to learn programming?</h3><p>Contrary to popular belief, you don’t need to be a genius to learn how to code! Sure, having a high IQ might make things a little easier, but it’s not a requirement. In fact, many successful programmers come from a wide range of backgrounds and have a variety of different strengths and abilities.</p><p>As long as you have a willingness to learn, a dedication to practice, and the ability to persevere when you’re struggling, you can learn to code and build incredible things, regardless of your IQ.</p><p>So don’t let the myth of the “programming genius” hold you back.</p><h3>Is it okay to Google a lot while learning programming?</h3><p>Yes. In fact, it’s encouraged!</p><p>One of the most important traits successful programmers have is the ability to Google things. That’s something that aspiring programmers have to learn how to do too.</p><p>Being able to effectively use Google and other online resources is an important skill for programmers, and is a valuable tool for learning and improving your skills.</p><p>However, it’s important not to rely solely on Google and to also learn how to think critically and solve problems on your own. For example, it’s also important to make the effort to understand the code you’re copying from Google rather than just blindly copy-pasting them into your application.</p><h3>Do I need a CS degree to land a software developer job?</h3><p>Contrary to popular belief, you don’t need a computer science degree to work as a software developer! In fact, many successful software developers have degrees in other fields or no degree at all.</p><p>The CEO of the company I work for is my favorite example. Before founding his own successful tech company that serves clients such as Bosch and Siemens, he was a senior premier field engineer at Microsoft. And yet he doesn’t have CS degree under his belt. What did he study at the university? Physics!</p><p>Furthermore, two of my favorite professors during my university days were accounting and mechanical engineering majors, respectively. They are legit programmers who held software engineering jobs and also had successful freelance careers before teaching. They only had to get a master’s in our field because it was a requirement to be able to teach at the university <strong>🤷‍♂️</strong></p><p>There are many more stories like this, some of which you can read in the <a href="https://fullstackvault.xyz/developer-journeys">Developer Journeys section</a> of this website. These are inspiring stories of real people who are self-taught programmers.</p><p>However, a degree in computer science can be helpful because it can provide you with a strong foundation in computer science concepts and principles, as well as experience with a wide range of programming languages and tools.</p><p>Additionally, many employers prefer to hire candidates with a computer science degree because they have demonstrated that they have the necessary knowledge and skills to succeed in the field. So, while it’s not necessary to have a degree in computer science to become a software developer, it can be beneficial.</p><h3>Got more questions? Let me know!</h3><p>Do you have a question that wasn’t answered above? Please don’t hesitate to ask! You can reach me at <a href="https://mailto:hello@fullstackvault.xyz/">hello@fullstackvault.xyz</a> or over at <a href="https://twitter.com/fullstackvault">Twitter</a>.</p><p>I was a beginner too, so I’m more than happy to help. Other than that, happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fbd7f5a8477" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fun & Easy React JS Sample Project (Step-by-Step + Source Code)]]></title>
            <link>https://medium.com/@fullstackvault.xyz/fun-easy-react-js-sample-project-step-by-step-source-code-ae2cf47c5798?source=rss-12fd13770554------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae2cf47c5798</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[learn-how-to-code]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Full Stack Vault]]></dc:creator>
            <pubDate>Sun, 04 Dec 2022 11:47:59 GMT</pubDate>
            <atom:updated>2022-12-04T12:08:53.364Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A card memory game sample project in React.js final output" src="https://cdn-images-1.medium.com/max/1024/1*mypB9RJJ9MVzhiF5bZFUvg.png" /></figure><p>Let’s build a React.js sample project from start to finish. I’ll walk you through the step-by-step process of building a React project for beginners, and I’ll also provide you with the source code and live site demo.</p><h3>React Example Project: Card Memory Game from The Odin Project</h3><p>As for the sample project, I’ll tackle the <em>Card Memory Game</em> — one of the projects in the famous Odin Project’s JavaScript curriculum. You’ll get to know more about the game in the requirements section below.</p><p>And if you don’t know what The Odin Project is, it’s one of the best resources out there for learning full-stack web development. <strong>The best part is, it’s free!</strong></p><p>Without further ado, let’s get started.</p><h3>Card Memory Game Requirements:</h3><p>Here are the base requirements for this React example project from The Odin Project:</p><ul><li>Show cards with different items</li><li>Each card should be clickable</li><li>The player gains points by clicking on a card he/she hasn’t clicked before.</li><li>On each click of a card, the cards re-appear in random order.</li><li>Clicking on a card you’ve previously clicked on will reset the current score to zero.</li><li>The game should show the current score, and “best score” which shows the best score that the player achieved so far.</li></ul><h3>General nice-to-have:</h3><p>Here are other things you’d be wise to add whenever you’re building a web application:</p><ul><li>Responsiveness — the web app should adjust and be usable on different device screen sizes.</li><li>Good UI design — aside from the bare-bones functionality, it should also look nice.</li></ul><h3>Project-specific advanced features:</h3><p>Even though The Odin Project only mentioned the base requirements above, I saw that there are opportunities to add more features and functionality if you want to challenge yourself or make the project more exciting:</p><ul><li>Card theme options — you can add the ability to pick from a theme of cards, instead of playing only one theme of card forever. Then depending on the theme, the cards and overall board will change in content and design. Some ideas for themes would be other cartoon shows, characters from different video games, movies, and so on.</li><li>Leaderboard — since this project is a game, showing top scores is a good idea. If you decided to implement the theme options above, you can even have one leaderboard for each theme. Otherwise, you can just have one global leaderboard.</li><li>Light mode / dark mode — not a high-value feature, but some users might still prefer to use dark mode when interacting with your application <strong>😄</strong></li></ul><h3>Planning Phase</h3><p>A good practice when tackling a new project is to plan first.</p><p>You might be thinking, “why is this important? I just want to code!”</p><p>Imagine building a house right away without deciding how you want it to look (design) and what you want it to have (features).</p><blockquote><em>“Architects draw detailed plans before a brick is laid or a nail is hammered. But few programmers write even a rough sketch of what their programs will do before they start coding.” — Leslie Lamport, a Turing Award-winning computer scientist</em></blockquote><p>Before writing a single line of code, you have to think of the following:</p><h3>1. List features you want to implement</h3><p>We already did so above.</p><h3>2. How would it look like?</h3><p>Draw a mockup or wireframe of the project. It doesn’t have to be the final design. Even drawing on paper is fine.</p><p><strong>What’s important is you have a general design direction because it will influence how you’d like to structure your components.</strong></p><h3>3. Which components do you need?</h3><p>For example, I’m already thinking that I’ll need the following React components right off the bat:</p><ol><li>Card — this component will be responsible for rendering the details of a card. It will receive a <em>title</em> and <em>image</em> property.</li><li>Board — it will “contain” my cards. I’m thinking it will be responsible for the cards’ layout.</li><li>Scoreboard — it will be responsible for displaying the current and best score.</li><li>App — the root-most component. It will hold the Board and Scoreboard components. It will also handle the root layout.</li></ol><h3>4. How to structure the application?</h3><p>What would be the file structure? Where to store images, fonts, etc.? How to structure the components? And so on. I’ll explain more about how I’d go about this step below.</p><h3>Implementation: React JS example project step by step</h3><h3>1. Pre-requisites</h3><p>Please make sure that you have at least a basic understanding of the concepts below. If you’re not familiar with a concept, I linked resources where you can start learning it.</p><p>I won’t be teaching each technology in this write-up. But if you’re struggling with anything specific, you can reach out to me and I’ll do my best to help.</p><p>This React JS project implementation uses the following technologies:</p><ul><li>npm — <a href="https://nodesource.com/blog/an-absolute-beginners-guide-to-using-npm/">An absolute beginner’s guide to using npm</a></li><li>HTML — <a href="https://developer.mozilla.org/en-US/docs/Web/HTML">HTML basics</a></li><li>CSS — <a href="https://developer.mozilla.org/en-US/docs/Learn/CSS">CSS basics</a></li><li>JavaScript — <a href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript">Learn JavaScript</a> and <a href="https://fullstackvault.xyz/blog/how-to-learn-javascript-at-home">How to learn JavaScript at home</a></li><li>React — <a href="https://reactjs.org/tutorial/tutorial.html">Intro to React</a> and <a href="https://coderfiles.dev/blog/how-to-learn-react-js-quickly/">How to learn React.js fast</a></li><li>JSX — <a href="https://reactjs.org/docs/introducing-jsx.html">Intro to JSX</a></li></ul><h3>2. create-react-app</h3><p>create-react-app is a helpful tool built by Facebook developers that allows you to create and run React projects quickly.</p><p>To create a new React project, use the command create-react-app. In my case, I decided to name my project “memory-card-game-odin-project”.</p><p>Run the command npx create-react-app memory-card-game-odin-project in your terminal if you want to code along.</p><p>After the command has finished running, a new folder called “memory-card-game-odin-project” will be created. This new folder will be in the directory where you ran the create-react-app command.</p><p>Navigate to the new folder and notice its contents:</p><ul><li><strong>node_modules</strong> — this is a folder that contains all the dependencies of your project. You typically never have to look inside this folder.</li><li><strong>public</strong> — this folder contains the project’s public assets, including the entry point index.html, the images, icons, fonts, etc.</li><li><strong>src</strong> — this folder contains the source code, so all our React components and CSS files will live here.</li><li><strong>.gitignore</strong> — this is a file that tells git what to ignore so they don’t get pushed to your repository. You typically want to include node_modules here because it’s a very large folder. Other files you should tell git to ignore are your .env files — those should never make it to your repository. Thankfully, create-react-app already did this for us.</li><li><strong>package.json</strong> — this file is used to manage the project’s dependencies, scripts, and more.</li><li><strong>package.lock.json</strong> — this file is used to guarantee the exact version of the dependencies in the project. This is helpful when the source code is being run in different development environments.</li></ul><h3>3. Run the project</h3><p>If you open the package.json file, you will see the scripts for the project, namely start, build, test, and eject.</p><p>You can run the project by running npm start in your terminal. Make sure that you’re in the project’s root directory (on the same level where package.json is in).</p><p>This will run the app in a new tab in your browser.</p><h3>4. Clean up boilerplate</h3><p>The project initially looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yFHiN2VIPxeG7aeGNHTiPQ.png" /></figure><p>Start by cleaning up this boilerplate code to prepare your React app for the memory card game project.</p><p>The first thing I did is change the HTML &lt;title&gt; tag. Open index.html and change the &lt;title&gt; tag to the following:</p><pre>&lt;title&gt;Card Memory Game&lt;/title&gt;</pre><p>You can also change the &lt;meta&gt; description tag, and add more metadata as you wish. It’s up to you and it depends on how much you care about the project’s SEO.</p><p>The next thing I always do is remove all the elements inside the App.js file inside the /src folder. That includes the spinning React.js logo, paragraph, and link to the React documentation. Basically, I removed everything inside the &lt;header&gt; tag:</p><pre>import logo from &#39;./logo.svg&#39;;<br>import &#39;./App.css&#39;;<br><br>function App() {<br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;header className=&quot;App-header&quot;&gt;<br>-        &lt;img src={logo} className=&quot;App-logo&quot; alt=&quot;logo&quot; /&gt;<br>-        &lt;p&gt;<br>-          Edit &lt;code&gt;src/App.js&lt;/code&gt; and save to reload.<br>-        &lt;/p&gt;<br>-        &lt;a<br>-          className=&quot;App-link&quot;<br>-          href=&quot;https://reactjs.org&quot;<br>-          target=&quot;_blank&quot;<br>-          rel=&quot;noopener noreferrer&quot;<br>-        &gt;<br>-          Learn React<br>-        &lt;/a&gt;<br>      &lt;/header&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Because of this, I no longer need the logo.svg inside the /src folder, so I deleted that file, and removed the import from App.js:</p><pre>- import logo from &#39;./logo.svg&#39;;<br>import &#39;./App.css&#39;;<br><br>function App() {<br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;header className=&quot;App-header&quot;&gt;&lt;/header&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>I also no longer need the styles inside App.css, so I deleted its contents as well, but I did not delete the file. I’ll use this later.</p><p>I usually delete the contents of index.css because I typically use different fonts and base styles. But for this project, I decided to keep it.</p><p>After saving all the changes above, you should see your updated app in the browser tab. It should have a new title, and the page should be empty.</p><h3>5. Set up the folder structure</h3><p>Now let’s set up the project’s folder structure.</p><p>Inside the /src folder, create a new folder named “components”. This is where the React components will reside.</p><p>If you have a larger project, it’s also good to split these components into more sub-folders according to their <strong>Atomic design</strong>. Atomic design is a web design practice and is also used in structuring React applications.</p><p>Learn more: <a href="https://medium.com/@janelle.wg/atomic-design-pattern-how-to-structure-your-react-application-2bb4d9ca5f97">https://medium.com/@janelle.wg/atomic-design-pattern-how-to-structure-your-react-application-2bb4d9ca5f97</a></p><p>But since our example React project is quite small, and will only use a handful of components, it’s fine to just use the root /components folder. And since we won’t have multiple pages, we can use App.js as our one and only “page” component.</p><h3>6. Start creating the components</h3><h4>1. The App component</h4><p>Open App.js in the /src folder. Let’s load the data that will appear on the cards.</p><p>For the cards data, I decided to use Rick and Morty characters. Conveniently, there’s a free API that provides an endpoint to get data on Rick and Morty characters.</p><p>I decided to query that API endpoint directly from App.js because it’s a small project.</p><p>For larger projects, you’ll have complex data, so you’d want to use better practices using React’s useReducer hook and the Context API, or external libraries in order to query from a server, store that in a React state, and manage that state across the application.</p><p>I’m talking about Redux, React Query, SWR, or other alternatives.</p><p>But since this project is for beginners and the scope is quite small, it doesn’t make much sense to over-engineer date-fetching and state management. So the following will do:</p><pre>import React from &#39;react&#39;;<br>import &#39;./App.css&#39;;<br><br>function App() {<br>  const [cardsData, setCardsData] = React.useState([]);<br><br>  async function fetchData() {<br>    fetch(`https://rickandmortyapi.com/api/character?page=${Math.floor(Math.random() * 41)}`)<br>      .then((response) =&gt; response.json())<br>      .then((data) =&gt; {<br>        setCardsData(data.results);<br>      });<br>  }<br><br>  React.useEffect(() =&gt; {<br>    fetchData();<br>  }, []);<br><br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;header className=&quot;App-header&quot;&gt;&lt;/header&gt;<br>      &lt;div className=&quot;App-body&quot;&gt;<br>        {/* BOARD COMPONENT GOES HERE */}<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Here’s what the code above does:</p><ul><li>Create a React state called cardsData where we’ll store data of Rick and Morty characters. Its initial value is set to an empty array.</li><li>Create a function named fetchData for fetching the data from the API endpoint, <a href="https://rickandmortyapi.com/api/character">https://rickandmortyapi.com/api/character</a><br>– This function uses <a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch">fetch API</a>. You can also use <a href="https://axios-http.com/docs/intro">axios</a>.<br>– On each page load, I want to query a random page (between 1 and 40) from the API endpoint, so I added the following string to the query: ?page=${Math.floor(Math.random() * 41)}<br>– Uses .json() method to parse the API response into a JavaScript object.<br>– Sets the resulting value to the cardsData React state.</li><li>Call the fetchData function that fetches the data from a useEffect hook.</li></ul><p>If you want, you can console.log() the value of cardsData so you can confirm if the data-fetching and state-setting were successful. The value should be an array of a JavaScript objects containing details of random Rick and Morty characters.</p><p>Finally, add this to App.css:</p><pre>.App {<br>    padding: 0.25rem 2rem 2rem;<br>    height: 100%;<br>    min-height: 100vh;<br>    background-color: #ebe1e1;<br>}</pre><h4>2. The Board component</h4><p>Create a new folder inside the /components folder called “Board”. Inside this folder, create a new file Board.js:</p><pre>import React from &#39;react&#39;;<br><br>export default function Board(props) {<br>    return (<br>        &lt;div className=&#39;board&#39;&gt;<br>    {/* CONTENT GOES HERE */}<br>        &lt;/div&gt;<br>    )<br>}</pre><p>I planned that this component will manage the layout of the cards. So basically it’s really just a wrapper component.</p><p>It will take in the data as props and render the cards with that data in a wrapper div. This wrapper div will take care of the board’s layout.</p><p>So let’s style the Board component. Create a new file inside the /Board folder named “Board.css”:</p><pre>.board {<br>    margin: 0 auto;<br>    display: grid;<br>    grid-template-columns: repeat(2, 1fr);<br>    gap: 1rem;<br>}<br><br>@media (min-width: 600px) {<br>    .board {<br>        grid-template-columns: repeat(3, 1fr);<br>        gap: 2rem;<br>    }<br>}<br><br>@media (min-width: 1024px) {<br>    .board {<br>        grid-template-columns: repeat(4, 1fr);<br>    }<br>}<br><br>@media (min-width: 1200px) {<br>    .board {<br>        grid-template-columns: repeat(6, 1fr);<br>    }<br>}<br><br>@media (min-width: 1871px) {<br>    .board {<br>        grid-template-columns: repeat(8, 1fr);<br>    }<br>}</pre><p>Import this CSS file into the Board.js component:</p><pre>import React from &#39;react&#39;;<br>+ import &#39;./Board.css&#39;;<br><br>export default function Board(props) {<br>    return (<br>        &lt;div className=&#39;board&#39;&gt;<br>            {/* CONTENT GOES HERE */}<br>        &lt;/div&gt;<br>    )<br>}</pre><h4>3. The Card component</h4><p>Create a new folder inside the /components folder called “Card”. Inside this folder, create a new file Card.js:</p><pre>import React from &#39;react&#39;;<br><br>export default function Card(props) {<br>    return (<br>        &lt;div className=&#39;card&#39;&gt;<br>            &lt;img src={props.imgUrl} alt={props.title} /&gt;<br>            &lt;div className=&#39;card-title-container&#39;&gt;<br>                &lt;span className=&#39;card-title&#39;&gt;{props.title.toUpperCase()}&lt;/span&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    )</pre><p>This component receives the card title and image URL as props and renders those.</p><p>Before we connect all these components together, first give the card some styling.</p><p>Create a new file inside the /Card folder named “Card.css”:</p><pre>.card {<br>    display: flex;<br>    flex-direction: column;<br>    justify-content: space-between;<br>    gap: 2rem;<br>    padding: 2rem 0 0;<br>    border-radius: 30px 30px;<br>    background-color: #1C232B;<br>    box-shadow: 0px 4px 20px 3px rgba(77,77,77,0.7);<br>    -webkit-box-shadow: 0px 4px 20px 3px rgba(77,77,77,0.7);<br>    -moz-box-shadow: 0px 4px 20px 3px rgba(77,77,77,0.7);<br>    transition: all 200ms ease-in-out;<br>    cursor: pointer;<br>}<br><br>.card:hover {<br>    box-shadow: 0px 4px 20px 3px rgb(18 18 18 / 70%);<br>    -webkit-box-shadow: 0px 4px 20px 3px rgb(18 18 18 / 70%);<br>    -moz-box-shadow: 0px 4px 20px 3px rgb(18 18 18 / 70%);<br>    transform: scale(1.03);<br>}<br><br>.card img {<br>    margin: 0 auto;<br>    width: 70%;<br>    height: auto;<br>    border-radius: 50%;<br>}<br><br>.card-title-container {<br>    display: flex;<br>    align-items: center;<br>    justify-content: center;<br>    padding: 1rem 2rem;<br>    background-color: #FAFBFD;<br>    border-radius: 0 0 30px 30px;<br>    text-align: center;<br>    min-height: 38px;<br>}<br><br>.card-title {<br>    font-weight: 800;<br>}</pre><p>Import this CSS file into the Card.js component:</p><pre>import React from &#39;react&#39;;<br>+ import &#39;./Card.css&#39;;<br><br>export default function Card(props) {<br>    return (<br>        &lt;div className=&#39;card&#39;&gt;<br>            &lt;img src={props.imgUrl} alt={props.title} /&gt;<br>            &lt;div className=&#39;card-title-container&#39;&gt;<br>                &lt;span className=&#39;card-title&#39;&gt;{props.title.toUpperCase()}&lt;/span&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    )<br>}</pre><h4>5. Connect all components together</h4><p>Now that I have both Card and Board components, I can import them into their parent components.</p><p>Import the Board component inside App.js and render it inside the inner-most div:</p><pre>import React from &#39;react&#39;;<br>import &#39;./App.css&#39;;<br>+ import Board from &#39;./components/Board/Board&#39;;<br><br>function App() {<br>  const [cardsData, setCardsData] = React.useState([]);<br><br>  async function fetchData() {<br>    fetch(`https://rickandmortyapi.com/api/character?page=${Math.floor(Math.random() * 41)}`)<br>      .then((response) =&gt; response.json())<br>      .then((data) =&gt; {<br>        setCardsData(data.results);<br>      });<br>  }<br><br>  React.useEffect(() =&gt; {<br>    fetchData();<br>  }, []);<br><br><br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;header className=&quot;App-header&quot;&gt;&lt;/header&gt;<br>      &lt;div className=&quot;App-body&quot;&gt;<br>+        &lt;Board data={cardsData} /&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Import the Card component inside Board.js:</p><pre>import React from &#39;react&#39;;<br>+ import Card from &#39;../Card/Card&#39;;<br>import &#39;./Board.css&#39;;<br><br>export default function Board(props) {<br>    return (<br>        &lt;div className=&#39;board&#39;&gt;<br>+           {props.data.map(cardItemData =&gt; &lt;Card key={cardItemData.id} title={cardItemData.name} imgUrl={cardItemData.image} /&gt;)}<br>        &lt;/div&gt;<br>    )<br>}</pre><p>What the new line of code does is map through the array of Rick and Morty characters, and render a Card component for each item, while passing in the necessary props to the Card component.</p><p>If you look back at your browser, the app should now render the data as cards:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8v7AasL0KPLrsOYZ-B7WXg.png" /></figure><h4>7. Implement the game logic</h4><p>Let’s go back to the game mechanics. The objective of the game is to get as many points as possible by clicking on a card that you haven’t clicked on before.</p><p>On each card click, the current score either adds 1 point or resets to zero, depending on whether or not the card has been previously clicked. The best score also updates accordingly. Lastly, the board always resets and displays the cards in random order.</p><p>This means we need to keep track of which cards have already been clicked. Thankfully, the Rick and Morty API also returns a unique ID for each character. We can use the ID to keep track of which cards have been clicked or not by storing clicked card IDs in an array.</p><p>Then on each click of a new card, we search for the clicked card’s ID in this array. If this card ID is in the collection, then reset the current score to zero. Otherwise, add one point to it.</p><p>It’s also important to reset the array that tracks clicked IDs to an empty array each time we reset the current score to zero.</p><p>Also, on each correct click, we need to check if the new score is higher than the best score. If yes, then set the best score to this new score.</p><p>Lastly, on each correct click, we need to add the clicked card’s ID to the array that tracks clicked IDs.</p><p>Finally, we shuffle the cards array to a random order.</p><p>Phew! That’s a lot to take in, so here’s the pseudocode:</p><pre>IF clicked card ID is in clicked cards array THEN<br>    set current score to 0<br>    set clicked cards array to empty<br>ELSE<br>    set current score to (current score + 1)<br>    IF (current score + 1) is greater than best score THEN<br>        set best score to (current score + 1)<br>    END IF<br>    set clicked cards array to (current clicked cards array + clicked card ID)<br>END IF<br>shuffle the cards in random order</pre><p>Notice that our algorithm above involves setting a React state that is in App.js. I’m talking about the cardsData state which will be updated in order to shuffle the cards on each click.</p><p>That’s why I decided to put this function inside App.js.</p><p>But first, add the new states needed for this calculation:</p><pre>import React from &#39;react&#39;;<br>import &#39;./App.css&#39;;<br>import Board from &#39;./components/Board/Board&#39;;<br><br>function App() {<br>  const [cardsData, setCardsData] = React.useState([]);<br>+  const [clickedCardIds, setClickedCardIds] = React.useState([]);<br>+  const [currentScore, setCurrentScore] = React.useState(0);<br>+  const [bestScore, setBestScore] = React.useState(0);<br><br>  async function fetchData() {<br>    fetch(`https://rickandmortyapi.com/api/character?page=${Math.floor(Math.random() * 41)}`)<br>      .then((response) =&gt; response.json())<br>      .then((data) =&gt; {<br>        setCardsData(data.results);<br>      });<br>  }<br><br>  React.useEffect(() =&gt; {<br>    fetchData();<br>  }, []);<br><br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;header className=&quot;App-header&quot;&gt;&lt;/header&gt;<br>      &lt;div className=&quot;App-body&quot;&gt;<br>        &lt;Board data={cardsData} /&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Then add the function that performs our algorithm on each card click:</p><pre>import React from &#39;react&#39;;<br>import &#39;./App.css&#39;;<br>import Board from &#39;./components/Board/Board&#39;;<br><br>function App() {<br>  const [cardsData, setCardsData] = React.useState([]);<br>  const [clickedCardIds, setClickedCardIds] = React.useState([]);<br>  const [currentScore, setCurrentScore] = React.useState(0);<br>  const [bestScore, setBestScore] = React.useState(0);<br><br>  async function fetchData() {<br>    fetch(`https://rickandmortyapi.com/api/character?page=${Math.floor(Math.random() * 41)}`)<br>      .then((response) =&gt; response.json())<br>      .then((data) =&gt; {<br>        setCardsData(data.results);<br>      });<br>  }<br><br>  React.useEffect(() =&gt; {<br>    fetchData();<br>  }, []);<br><br>+  function onCardClick(cardId) {<br>+    if (clickedCardIds.includes(cardId)) {<br>+      setCurrentScore(0);<br>+      setClickedCardIds([]);<br>+    } else {<br>+      setCurrentScore(currentScore + 1);<br>+      <br>+      if (currentScore + 1 &gt; bestScore) {<br>+        setBestScore(currentScore + 1);<br>+      }<br>+<br>+      setClickedCardIds([...clickedCardIds, cardId]);<br>+    }<br>+  }<br><br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;header className=&quot;App-header&quot;&gt;&lt;/header&gt;<br>      &lt;div className=&quot;App-body&quot;&gt;<br>        &lt;Board data={cardsData} /&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Notice that the onCardClick function is missing the final requirement which is to shuffle the cards in random order on each click.</p><p>For that, create a helper function that takes in an array as an argument, then returns a shuffled version of it.</p><p>In the /src folder, create a new file called utils.js:</p><pre>export function shuffleArray(array) {<br>    const arrayClone = [...array];<br>    for (let i = arrayClone.length - 1; i &gt; 0; i--) {<br>        const j = Math.floor(Math.random() * (i + 1));<br>        [arrayClone[i], arrayClone[j]] = [arrayClone[j], arrayClone[i]];<br>    }<br>    return arrayClone;<br>}</pre><p>Import this function in App.js and use it to shuffle the array of cards at the end of onCardClick function.</p><p>I also decided to use this function on the API result before setting it to the cardsData state. That’s because I noticed that the characters from the API are usually in alphabetical order. That’s not ideal if I want the initial cards to already be in random order once the page loads:</p><pre>import React from &#39;react&#39;;<br>import &#39;./App.css&#39;;<br>import Board from &#39;./components/Board/Board&#39;;<br>+ import { shuffleArray } from &#39;./utils&#39;;<br><br>function App() {<br>  const [cardsData, setCardsData] = React.useState([]);<br>  const [clickedCardIds, setClickedCardIds] = React.useState([]);<br>  const [currentScore, setCurrentScore] = React.useState(0);<br>  const [bestScore, setBestScore] = React.useState(0);<br><br>  async function fetchData() {<br>    fetch(`https://rickandmortyapi.com/api/character?page=${Math.floor(Math.random() * 41)}`)<br>      .then((response) =&gt; response.json())<br>      .then((data) =&gt; {<br>+        const shuffledArray = shuffleArray(data.results);<br>+        setCardsData(shuffledArray);<br>      });<br>  }<br><br>  React.useEffect(() =&gt; {<br>    fetchData();<br>  }, []);<br><br>  function onCardClick(cardId) {<br>    if (clickedCardIds.includes(cardId)) {<br>      setCurrentScore(0);<br>      setClickedCardIds([]);<br>    } else {<br>      setCurrentScore(currentScore + 1);<br>      <br>      if (currentScore + 1 &gt; bestScore) {<br>        setBestScore(currentScore + 1);<br>      }<br><br>      setClickedCardIds([...clickedCardIds, cardId]);<br>    }<br>+<br>+    const shuffledArray = shuffleArray(cardsData);<br>+    setCardsData(shuffledArray);<br>  }<br><br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;header className=&quot;App-header&lt;/header&gt;<br>      &lt;div className=&quot;App-body&quot;&gt;<br>        &lt;Board data={cardsData} onCardClick={onCardClick} /&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Now we need to pass the onCardClick function to the Card component. First, we have to pass it to the Board component:</p><pre>import React from &#39;react&#39;;<br>import &#39;./App.css&#39;;<br>import Board from &#39;./components/Board/Board&#39;;<br>import { shuffleArray } from &#39;./utils&#39;;<br><br>function App() {<br>  const [cardsData, setCardsData] = React.useState([]);<br>  const [clickedCardIds, setClickedCardIds] = React.useState([]);<br>  const [currentScore, setCurrentScore] = React.useState(0);<br>  const [bestScore, setBestScore] = React.useState(0);<br><br>  async function fetchData() {<br>    fetch(`https://rickandmortyapi.com/api/character?page=${Math.floor(Math.random() * 41)}`)<br>      .then((response) =&gt; response.json())<br>      .then((data) =&gt; {<br>        const shuffledArray = shuffleArray(data.results);<br>        setCardsData(shuffledArray);<br>      });<br>  }<br><br>  React.useEffect(() =&gt; {<br>    fetchData();<br>  }, []);<br><br>	function onCardClick(cardId) {<br>    if (clickedCardIds.includes(cardId)) {<br>      setCurrentScore(0);<br>      setClickedCardIds([]);<br>    } else {<br>      setCurrentScore(currentScore + 1);<br>      <br>      if (currentScore + 1 &gt; bestScore) {<br>        setBestScore(currentScore + 1);<br>      }<br><br>      setClickedCardIds([...clickedCardIds, cardId]);<br>    }<br><br>    const shuffledArray = shuffleArray(cardsData);<br>    setCardsData(shuffledArray);<br>  }<br><br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;header className=&quot;App-header&quot;&gt;&lt;/header&gt;<br>      &lt;div className=&quot;App-body&quot;&gt;<br>+        &lt;Board data={cardsData} onCardClick={onCardClick} /&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Then pass this function from the Board to the Card component:</p><pre>import React from &#39;react&#39;;<br>import Card from &#39;../Card/Card&#39;;<br>import &#39;./Board.css&#39;;<br><br>export default function Board(props) {<br>    return (<br>        &lt;div className=&#39;board&#39;&gt;<br>+            {props.data.map(cardItemData =&gt; &lt;Card key={cardItemData.id} title={cardItemData.name} imgUrl={cardItemData.image} cardId={cardItemData.id} onCardClick={props.onCardClick} /&gt;)}<br>        &lt;/div&gt;<br>    )<br>}</pre><p>Notice that I also passed the cardId prop to the Card component. This value is simply coming from the API.</p><p>We want the cards to be clickable, so inside Card.js, add an onClick event handler to the parent div:</p><pre>import React from &#39;react&#39;;<br>import &#39;./Card.css&#39;;<br><br>export default function Card(props) {<br>    return (<br>+        &lt;div className=&#39;card&#39; onClick={() =&gt; props.onCardClick(props.cardId)}&gt;<br>            &lt;img src={props.imgUrl} alt={props.title} /&gt;<br>            &lt;div className=&#39;card-title-container&#39;&gt;<br>                &lt;span className=&#39;card-title&#39;&gt;{props.title.toUpperCase()}&lt;/span&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    )<br>}</pre><p>Save your changes and click around the cards. <strong>Notice that they successfully jumble randomly on each click.</strong></p><p>But now we need to show the current and best scores.</p><h4>8. Implement the Scoreboard</h4><p>Don’t worry, I didn’t forget the Scoreboard component. It just made more sense to tackle it in this step.</p><p>You know the drill. Create a new folder inside the /components folder called “Scoreboard”. Inside this folder, create a new file Scoreboard.js. This time, let’s automatically import the CSS file and create that file afterward:</p><pre>import React from &#39;react&#39;;<br>import &#39;./Scoreboard.css&#39;;<br><br>export default function Scoreboard(props) {<br>    return (<br>        &lt;div className=&#39;scoreboard&#39;&gt;<br>            &lt;div className=&#39;current-score&#39;&gt;Current score: {props.currentScore}&lt;/div&gt;<br>            &lt;div className=&#39;best-score&#39;&gt;Best score: {props.bestScore}&lt;/div&gt;<br>        &lt;/div&gt;<br>    )<br>}</pre><pre>.scoreboard {<br>    margin: 1.5rem 0; <br>    display: flex;<br>    flex-direction: column;<br>    gap: 0.5rem;<br>    font-size: 18px;<br>}</pre><p>Then import the Scoreboard component inside App.js and render it above the Board component.</p><p>Pass the necessary props to the Scoreboard component which is currentScore and bestScore. The values of these props is coming from the React states with the same name in App.js:</p><pre>import React from &#39;react&#39;;<br>import &#39;./App.css&#39;;<br>import Board from &#39;./components/Board/Board&#39;;<br>+ import Scoreboard from &#39;./components/Scoreboard/Scoreboard&#39;;<br>import { shuffleArray } from &#39;./utils&#39;;<br><br>function App() {<br>  const [cardsData, setCardsData] = React.useState([]);<br>  const [clickedCardIds, setClickedCardIds] = React.useState([]);<br>  const [currentScore, setCurrentScore] = React.useState(0);<br>  const [bestScore, setBestScore] = React.useState(0);<br><br>  async function fetchData() {<br>    fetch(`https://rickandmortyapi.com/api/character?page=${Math.floor(Math.random() * 41)}`)<br>      .then((response) =&gt; response.json())<br>      .then((data) =&gt; {<br>        const shuffledArray = shuffleArray(data.results);<br>        setCardsData(shuffledArray);<br>      });<br>  }<br><br>  React.useEffect(() =&gt; {<br>    fetchData();<br>  }, []);<br><br>	function onCardClick(cardId) {<br>    if (clickedCardIds.includes(cardId)) {<br>      setCurrentScore(0);<br>      setClickedCardIds([]);<br>    } else {<br>      setCurrentScore(currentScore + 1);<br>      <br>      if (currentScore + 1 &gt; bestScore) {<br>        setBestScore(currentScore + 1);<br>      }<br><br>      setClickedCardIds([...clickedCardIds, cardId]);<br>    }<br><br>    const shuffledArray = shuffleArray(cardsData);<br>    setCardsData(shuffledArray);<br>  }<br><br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;header className=&quot;App-header&quot;&gt;&lt;/header&gt;<br>      &lt;div className=&quot;App-body&quot;&gt;<br>+		&lt;Scoreboard currentScore={currentScore} bestScore={bestScore} /&gt;<br>        &lt;Board data={cardsData} onCardClick={onCardClick} /&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Save your changes to see the scoreboard in effect:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*03ah2T2A-D2rWHnwQn0Tnw.png" /></figure><h4>9. Final touches</h4><p>Add the following final touches to App.js:</p><pre>import React from &#39;react&#39;;<br>import &#39;./App.css&#39;;<br>import Board from &#39;./components/Board/Board&#39;;<br>import Scoreboard from &#39;./components/Scoreboard/Scoreboard&#39;;<br>import { shuffleArray } from &#39;./utils&#39;;<br><br>function App() {<br>  const [cardsData, setCardsData] = React.useState([]);<br>  const [clickedCardIds, setClickedCardIds] = React.useState([]);<br>  const [currentScore, setCurrentScore] = React.useState(0);<br>  const [bestScore, setBestScore] = React.useState(0);<br><br>  async function fetchData() {<br>    fetch(`https://rickandmortyapi.com/api/character?page=${Math.floor(Math.random() * 41)}`)<br>      .then((response) =&gt; response.json())<br>      .then((data) =&gt; {<br>        const shuffledArray = shuffleArray(data.results);<br>        setCardsData(shuffledArray);<br>      });<br>  }<br><br>  React.useEffect(() =&gt; {<br>    fetchData();<br>  }, []);<br><br>  function onCardClick(cardId) {<br>    if (clickedCardIds.includes(cardId)) {<br>      setCurrentScore(0);<br>      setClickedCardIds([]);<br>    } else {<br>      setCurrentScore(currentScore + 1);<br>      <br>      if (currentScore + 1 &gt; bestScore) {<br>        setBestScore(currentScore + 1);<br>      }<br><br>      setClickedCardIds([...clickedCardIds, cardId]);<br>    }<br><br>    const shuffledArray = shuffleArray(cardsData);<br>    setCardsData(shuffledArray);<br>  }<br><br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;header className=&quot;App-header&quot;&gt;<br>+        &lt;h1&gt;Rick and Morty Card Memory Game&lt;/h1&gt;<br>      &lt;/header&gt;<br>      &lt;div className=&quot;App-body&quot;&gt;<br>+        &lt;p&gt;Get as many points as possible by clicking on a card only once!&lt;/p&gt;<br>        &lt;Scoreboard currentScore={currentScore} bestScore={bestScore} /&gt;<br>        &lt;Board data={cardsData} onCardClick={onCardClick} /&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>And you should see the project header and intro paragraph appear:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mypB9RJJ9MVzhiF5bZFUvg.png" /></figure><p>And that concludes the basic features of the Card Memory Game for the Odin Project.</p><h4>Advanced features? Let me know.</h4><p>This has been a long-write up just for the base requirements for the application. But if you find yourself eager to learn how to implement even the advanced features mentioned above, just let me know and I’ll spend time on it.</p><h3>React JS sample project GitHub</h3><p>You can view the GitHub repository here: <a href="https://github.com/KarlaDampilag/card-memory-game-odin-project">GitHub repository</a></p><h3>Live Demo</h3><p>You can view the live demo of the card memory game here: <a href="https://card-memory-game-odin-project.netlify.app/">https://card-memory-game-odin-project.netlify.app</a></p><p>You can also leave a comment about the project here: <a href="https://fullstackvault.xyz/projects/card-memory-game-karla.dmplg">https://fullstackvault.xyz/projects/card-memory-game-karla.dmplg</a></p><h3>What’s Next?</h3><p>When going through this tutorial, it’s fine to copy the code. But you can go further by adding your own twist to it.</p><p>You can use your own design, add your own features, and so on. You can even write unit tests!</p><p>If you want to showcase your projects, submit them at <a href="https://fullstackvault.xyz/projects">https://fullstackvault.xyz/projects</a>. Other members can vote and leave feedback. No project is too small — we all started somewhere!</p><h3>Conclusion — React JS sample project</h3><p>And that’s the step-by-step process for this card memory game!</p><p>If you have any questions, you can reach out to me at <a href="/service/mailto:hello@fullstackvault.xyz">hello@fullstackvault.xyz</a> or <a href="https://twitter.com/fullstackvault">Twitter</a>.</p><p>Other than that, happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae2cf47c5798" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best full-stack web development course in 2022]]></title>
            <link>https://medium.com/@fullstackvault.xyz/best-full-stack-web-development-course-in-2022-8b6d138ac6fe?source=rss-12fd13770554------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b6d138ac6fe</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[learn-how-to-code]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Full Stack Vault]]></dc:creator>
            <pubDate>Wed, 30 Nov 2022 18:01:09 GMT</pubDate>
            <atom:updated>2022-11-30T18:01:09.829Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WYYJbUFBFhlwC8JGi7rU4Q.jpeg" /></figure><p>Out of the top full-stack web development courses out there, which one is the best for you?</p><p>In this article, we’ll explore three of the most popular ones (that you always hear about online). I’ll help you decide which course to pick so you could be a proficient full-stack developer.</p><p>For each course, I’ll give a quick background of the course author, content, pros &amp; cons, who it’s for, and who it’s not for.</p><p>Sounds good? Then let’s dive right in:</p><h3>1. The Complete 2022 Web Development Bootcamp by Angela Yu Review</h3><p><strong>Link: </strong><a href="https://www.udemy.com/course/the-complete-web-development-bootcamp/"><strong>https://www.udemy.com/course/the-complete-web-development-bootcamp/</strong></a></p><h3>Author</h3><p>Angela Yu is a professional boot-camp instructor and is one of the most successful course instructors on Udemy. She also founded London App Brewery in Central London. They offer in-person courses and tailor-made courses for training corporate teams.</p><p>But back to the course in question…</p><h3>Content</h3><p><strong>On front-end web development</strong>, the course teaches HTML, CSS, Bootstrap, web design, JavaScript, jQuery, and React.js.</p><p>It even has a nice introduction about <strong>how the Internet works</strong>, which is a crucial concept if you’re interested in breaking through the web dev scene.</p><p>The front-end section includes building fun projects such as a <strong>dice game using JavaScript and the Simon game using jQuery</strong>.</p><p>Before jumping into the back-end section, the course has 35 minutes of content about the <strong>Unix command line</strong>. This is good because you’ll be using the command line a lot of the time when programming.</p><p>Yes, even in web development.</p><p><strong>For the back-end section</strong>, the course teaches Node.js, Express.js, APIs, EJS, MongoDB, and Mongoose.</p><p>It also covers <strong>version control using git and GitHub</strong> as well as <strong>authentication</strong>.</p><p>Not only that, but recently the course added <strong>a new section for Web3 development</strong>. It covers building a decentralized application using the Motoko language. Then you’ll learn how to deploy this app on the ICP network. This section also teaches creating your own crypto token, minting NFTs, and building an NFT marketplace.</p><p>Now that’s a lot of content. But what’s our review of this course? Let’s jump to it!</p><h3>Reviews</h3><p><em>The Complete 2022 Web Development Bootcamp</em> by Angela Yu is one of the top-rated courses in the history of Udemy. There’s no doubt about its “Bestseller” badge on the platform.</p><p>On Udemy alone, it has <strong>775,582 students and has 4.7 stars out of 229,055 ratings</strong> at the time of this writing.</p><p>Here are the course’s pros and cons:</p><h3>Pros</h3><h4>Angela is a good teacher</h4><p>This is one of the biggest reasons why this course gained its popularity when it came out. Angela teaches complex concepts in a way that’s easy and clear to understand.</p><p>The course is popular among absolute beginners because she’s able to explain her topics simply enough for this targeted audience, not to mention that she does so with much enthusiasm.</p><p>You can tell that she loves what she does.</p><h4>Packed with content</h4><p>This course teaches topics across the front-end and back-end stack, and more in-between. It even has a Web3 development section!</p><p>With this amount of topics covered, the current price of 80 USD makes the course a steal.</p><p>It has a total of 65 hours of video content, plus accompanying articles and downloadable resources.</p><h4>Lifetime access</h4><p>Like any course you can purchase on Udemy, <em>The Complete 2022 Web Development Bootcamp</em> by Angela Yu offers lifetime access, which means you’ll have access even to future updates.</p><h4>Certificate of completion</h4><p>While certificates don’t hold as much value in web development jobs as it does in other industries, you may still want to have them. Hey, you just finished a course that’s 65 hours long. You deserve this trophy (but don’t forget to build your own projects and portfolio <a href="https://emojipedia.org/winking-face/"><strong>😉</strong></a>).</p><h3>Cons</h3><h4>Outdated content</h4><p>Perhaps the most common complaint that students have with this course is that many of the parts are outdated. The course was first released in 2018. That was 5 years ago. <strong>In the tech world, 5 years is a very, very long time.</strong></p><p>Why is outdated course content a problem? Can’t you still learn from it?</p><p>You definitely can still learn from it. But remember, tech moves fast. What worked a year ago might not work today. Languages, frameworks, and libraries get updated frequently to keep improving and staying useful.</p><p>If a course doesn’t keep up with these updates, you might end up quitting out of frustration. <strong>Following a course that’s outdated adds more difficulty to the already difficult task of learning programming, let alone the topic of full-stack web development.</strong></p><p>Learning how to code in itself is already quite a feat. It’s not recommended to learn from outdated resources on top of that.</p><p>The good news is, the comments section is full of past students who point out most of these breaking changes, or things that no longer work, and provide current solutions that are correct.</p><h4>Not being updated enough</h4><p><strong>An old course that’s still available for sale is not a problem as long as it’s being updated when needed. The problem is, this course is not being updated enough.</strong></p><p>For example, on Udemy, the course was last updated on May 2022 and it still uses React 16. However, React 18 was released in March of the same year. That means the course had two months between its most recent content update on the Udemy platform and React’s major version update (that has breaking changes, mind you).</p><p>It also uses Node 12 but the latest version is 16. I can go on, but you get the gist.</p><h4>Doesn’t teach how to put all things together</h4><p>I’d say the biggest issue with this course is that it doesn’t teach you how to put all the things together to make a full-stack application.</p><p>It teaches you each topic individually, but it doesn’t have content on how to connect these tools and technologies, or how to connect the back-end with the front-end.</p><p>It’s supposed to be a full-stack web development course. I’m not sure if it expects you to tinker with that on your own too.</p><h3>Who it is for</h3><p><strong>If you’re a complete beginner</strong> and are worried that you can’t understand complex concepts, the course might be for you because Angela makes the topics easy to learn.</p><p>However, a big downside is that a lot of the content is outdated. It also doesn’t teach you how to put all the pieces together to make a full-stack web application.</p><p>So after going through this course, you’ll most likely still need another course or any other resource to be able to put together the loosely taught concepts and build a big project that’s impressive enough to put in your full-stack web developer portfolio.</p><p>This course is also for you <strong>if you’re not a beginner</strong>, have some programming experience in your belt, and feel comfortable with tinkering and getting yourself unstuck when you come across some of the course’s outdated content.</p><h3>Who it is not for</h3><p>We mentioned above that the course might be for you if you’re a complete beginner, and are afraid that you can’t understand complex concepts, since the course does a good job of explaining complicated topics that are easy to grasp for beginners.</p><p>But honestly, <strong>if you’re completely new to programming</strong> and you want to start off by learning with the latest technologies, I suggest you choose some other course. Don’t worry, I’ll cover more of the most popular full-stack web development courses for you below.</p><p>The course is also not for you <strong>if you want to be able to trust the course</strong> so that you’re not struggling with things not working on your end, due to outdated content.</p><h3>2. The Web Developer Bootcamp 2022 by Colt Steele</h3><p><strong>Link: </strong><a href="https://www.udemy.com/course/the-web-developer-bootcamp"><strong>https://www.udemy.com/course/the-web-developer-bootcamp</strong></a></p><h3>Author</h3><p>Aside from making his courses on Udemy, Colt Steele also teaches boot camps that are worth $14,000 to $21,000. He recently led <a href="https://www.galvanize.com/">Galvanize</a>’s SF’s 6-month immersive program as Lead Instructor and Curriculum Director.</p><p>He launched his <strong><em>Web Developer Bootcamp</em></strong> on Udemy in 2016, and he was voted Udemy’s Best New Instructor in the same year.</p><h3>Content</h3><p>Before we get to the specifics, let me just tell you that this is a very comprehensive course.</p><p>In the introduction section alone, the course covers <strong>everything you need to know before writing a single line of code:</strong> how the Internet works, the Web, request-response cycle, front-end and backend concepts, and finally setting up your dev environment.</p><p>Then it proceeds to teach the essentials: HTML, CSS, Bootstrap, and modern JavaScript. In this section, you’ll code along to build a <strong>scorekeeper application</strong> (you’ll build <strong>13 more projects plus 80+ coding interactive exercises</strong> throughout the course).</p><p>Then you’ll move to asynchronous JavaScript, AJAX, and API’s. Here you’ll learn more advanced JavaScript concepts such as <strong>prototypical and classical object-oriented programming</strong>.</p><p>You’ll also learn <strong>how to use the terminal</strong>, which we already mentioned in Angela’s course is a necessary skill for programmers.</p><p>Moving on to the <strong>backend</strong>, you’ll learn Node.js, modules and NPM, Express.js, dynamic HTML templating, REST API’s, MongoDB, and Mongoose.</p><p>Then you’ll <strong>learn how to build YelpCamp</strong>, a full-stack website where users can create and review campgrounds. This project will teach you the authentication and authorization of user accounts. It even teaches how to add maps for the campgrounds in the front-end, and how to secure the back-end against common security issues.</p><p>Finally, you’ll learn how to deploy your application using Mongo Atlas and Heroku.</p><h3>Reviews</h3><p><em>The Web Developer Bootcamp 2022</em> by Colt Steele has better ratings than Angela Yu’s course Udemy.</p><p>It’s been taken by <strong>826,010 students and has 4.7 stars out of 249,119 ratings</strong> at the time of this writing.</p><p>Here are the course’s pros and cons:</p><h3>Pros</h3><h4>Colt Steele is a great teacher</h4><p>Just like Angela Yu, Colt has a talent for explaining things perfectly to beginners. They’re both successful instructors with their own boot camps and courses outside of Udemy after all.</p><p>Colt has a clear and clean way of explaining concepts. He has an explanation style that makes learning easy and engaging by breaking down concepts in a non-boring way to keep you interested. More importantly, he explains in a way that you don’t have the “impostor” syndrome — throughout this course, you really feel like you’re becoming a web developer.</p><p>Colt doesn’t just tell you how to do things. He explains in detail why it’s necessary, and goes on to give useful tips and tricks to help you progress even faster.</p><p>He loves giving <strong>step-by-step examples</strong> so you don’t feel like you’re missing things in-between different concepts. He gives <strong>challenges and quizzes that help you retain the information</strong> he teaches.</p><p>All-in-all, the course gives you lots of <strong>hands-on practice</strong> and Colt explains lessons in detail when needed.</p><h4>Very comprehensive content</h4><p>We already mentioned that Colt also teaches in-person boot camps outside of Udemy and that they cost $14,000 to $21,000. He mentioned that this Web Developer Bootcamp 2022 on Udemy is “just as comprehensive but with brand new content for a fraction of the price.”</p><p>Just look at the course contents in Udemy <a href="https://www.udemy.com/course/the-web-developer-bootcamp">here</a> and you’ll see what I mean.</p><p>That’s the edge this course has over Angela’s: it teaches you how to <strong>connect the different concepts</strong> of web development together. <strong>It doesn’t cut corners.</strong></p><h4>Up-to-date content</h4><p>We spent quite some time talking about the disadvantages of outdated content in Angela Yu’s course above. <strong>This course is pretty much the opposite.</strong></p><p><strong>The current version on Udemy is a complete overhaul</strong> that was released in July of 2022. In the past years, Colt was just updating or patching up the course content to keep up with the changes in the web development world and fix issues if some parts of the course are no longer working. That’s already a good thing, but his recent redo of the course from scratch is on another level of dedication.</p><p>Colt himself said that he spent 8 to 9 months straight redoing this course. He even went the extra mile and added a <strong>course changelog</strong> so you can see beforehand what was changed or added to the course. This is something that more course creators should do in my opinion.</p><p>Everything the course covers is <strong>up-to-date and relevant to the web developer job market in 2022</strong>.</p><h4>Has a Discord community</h4><p>This is nice to have, not only because the community voluntarily helps people who are struggling, but also because being part of a community helps you to keep going when the going gets tough.</p><h3>Cons</h3><h4>Does not cover React</h4><p>One of my critiques on this course is it doesn’t cover React, or any other similar front-end framework such as Vue, Angular, or Svelte. It’s a very comprehensive course but it sure is lacking in this department.</p><p>You can always take a separate course, or any other resource, to learn a front-end framework. I’m only mentioning this criticism because Colt markets the course as “the only course you need to learn web development”, which is not true.</p><p>This is especially true if you’re looking for a course to land a full-stack developer job. Most full-stack (or even front-end jobs) require some knowledge of at least one of these technologies. After all, any complex full-stack web application benefits a lot from using them.</p><h4>The code-along content might be a trap</h4><p>This course is fantastic in a way that it makes you code along through many exercises, challenges, and projects to help you retain the concepts. However, it’s a common trap for students to fall into passive learning with such teaching methods.</p><p>This is a common pitfall with video-style learning, so you have to make sure that you’re not falling into the copy-paste hole. Otherwise, you’ll get the feeling that you’re learning something, only to find out later you didn’t.</p><p>You have to make effort to write your own code before watching his walkthrough of the solutions and make your variation of the projects.</p><h3>Who it is for</h3><p>This course is perfect for beginners who want to learn full-stack web development. It’s also for people who already have experience in some of the technologies in front-end and back-end, but not all.</p><h3>Who it is not for</h3><p>This course is not for people who want a course that also covers React.js or other similar modern front-end libraries for building user interfaces. I know that the course markets itself as the ONE and only course you ever need to know about web development, but that is not the case for people who also want to learn React.js or the like.</p><h3>3. The Complete Web Developer in 2022: Zero to Mastery by Andrei Neagoie Review</h3><p><strong>Link: </strong><a href="https://www.udemy.com/course/the-complete-web-developer-zero-to-mastery/"><strong>https://www.udemy.com/course/the-complete-web-developer-zero-to-mastery/</strong></a></p><h3>Author</h3><p>Andrei Neagoie is one of the most popular instructors of programming courses online. He is also the founder of ZTM Academy where some graduates now work for big tech companies such as Tesla, Amazon, Uber, and Google.</p><p>Before making courses, he worked as a software developer for Fortune 500 companies and tech startups in Silicon Valley and Toronto for many years and is now teaching programming and technical interviewing skills online.</p><h3>Content</h3><p>The course briefly covers how the Internet works and the history of the web.</p><p>Then it teaches HTML, CSS, Bootstrap, JavaScript, DOM Manipulation, HTTP, AJAX, React.js, and Redux. <strong>Here you’ll learn how to build a website with HTML and CSS, then with React, and you’ll also build a portfolio that you can use in the future.</strong></p><p>Then you’ll learn how to use the command line terminal, and how to set up your developer environment, NPM, and NPM scripts.</p><p>Aside from version control using git and GitHub, it also has a dedicated section about <strong>contributing to open source projects</strong> which the two previous courses don’t have.</p><p>As for the backend section, you’ll learn about API’s, Node.js, Express.js, and databases with PostgreSQL. <strong>Here you’ll build an image recognition app with authentication using all of the above technologies (you’ll be building more than 10 projects throughout the course).</strong></p><p>Finally, you’ll learn how to deploy your projects to production using Heroku.</p><h3>Reviews</h3><p><em>The Complete Web Developer in 2022: Zero to Mastery</em> by Andrei Neagoie has the same rating on Udemy as the first two courses above, but it’s the least popular out of the three.</p><p>It’s been taken by <strong>196,657 students and has 4.7 stars out of 57,270 ratings</strong> at the time of this writing.</p><p>Here are the course’s pros and cons:</p><h3>Pros</h3><h4>Andrei is a good teacher</h4><p>I don’t think any of these three courses we reviewed will be as popular as they are now if the instructors don’t teach very well.</p><p>Andrei is a brilliant teacher like the rest. He’s a self-taught developer who successfully worked in Silicon Valley for many years before dedicating his time to teaching online. With his experience as a self-taught developer, he’s able to explain concepts in a clear and easy-to-follow way.</p><h4>Has unique sections that aren’t covered by other courses</h4><p>Andrei claims that in this day and age, just knowing HTML, CSS, and JavaScript is not good enough. As someone who’s been in the industry for 6 years myself, I agree. Gone are the days when knowing only these technologies will guarantee you a job. Now everyone and their mom is learning how to code because of how lucrative the field has become.</p><p>Here are additional things that the course covers to give you an edge:</p><p>React.js and Redux, a day in the life of a developer, contributing to open source, and most impressively, machine learning which it covers in the final project regarding image recognition.</p><h4>Teaches you how to put all things together</h4><p>The course will teach you how all these tools and technologies can be used together to build a complete full-stack application.</p><h4>Has a thriving and helpful Discord community</h4><p>Just like Colt Steele, Andrei has a Discord community. It’s designed to be like an online classroom, so you’ll really feel like you’re a part of a class and not just watching videos by yourself.</p><p>It’s impressively a large community and the best part is they’re very active. They help each other which is a huge plus.</p><p><strong>They also have frequent activities and challenges that are fun and rewarding. Other than that, there are frequent posts from students who talk about their success stories of getting hired or being promoted from the knowledge they learned from Andrei’s courses.</strong> I can only imagine how much that boosts the community’s motivation.</p><h3>Cons</h3><h4>Some topics aren’t covered in-depth</h4><p>The course does a very good job at the beginning, from the basics until the front-end development sections. However, Andrei tends to skip a lot of explanations for some of the advanced topics.</p><p>Sometimes he lightly touches the fundamentals behind some of these technologies and goes straight to building the projects. He will instead point you to another resource to learn more about some topic. That’s not automatically a bad thing, since this mirrors more closely how you’d be picking up new technologies at work. But it might not be the preferred learning style for all beginners.</p><p>The course also progresses fast. Because of this, the later sections might feel too rushed for complete beginners. That means you’ll have to complement it with other resources such as FreeCodeCamp or the tech’s documentation to dive deeper.</p><h3>Who it is for</h3><p>The course is for people who want to learn modern technologies that are actually being used at top tech companies.</p><p>It’s also for learners who enjoy using different resources together to learn new concepts or technologies.</p><h3>Who it is not for</h3><p>It’s not for beginners who want to learn every single detail about a technology from a single course. This course will point you to other resources to learn some of the topics in-depth. As I already said, this learning style is closer to how you’ll be learning new tech as a professional developer, but it might not be your preferred method, so it’s something you should know about this course.</p><h3>Final Words</h3><p>All of these courses on Udemy are subject to a 30-day money-back guarantee. That means you can pick your first choice based on this review, and try it yourself with very little risk. All it takes from your part is your time and willingness to learn.</p><p><strong>As with any resource, courses are just tools. It’s up to you to truly learn from them by going beyond the courses’ projects and building your own applications to drill down the concepts in your head and fill in your knowledge gaps.</strong></p><p>Let me know if you have any comments, or if you want me to review another resource for you. You can always reach me at <a href="https://mailto:hello@fullstackvault.xyz/">hello@fullstackvault.xyz</a> or <a href="https://twitter.com/fullstackvault">Twitter</a>.</p><p>Hope you have a fun time learning (which is the most important thing) and best of luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b6d138ac6fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to learn JavaScript at home + 5 FREE Resources]]></title>
            <link>https://medium.com/@fullstackvault.xyz/how-to-learn-javascript-at-home-cc12cd36a4ad?source=rss-12fd13770554------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc12cd36a4ad</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[learn-how-to-code]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Full Stack Vault]]></dc:creator>
            <pubDate>Mon, 21 Nov 2022 22:09:31 GMT</pubDate>
            <atom:updated>2022-11-21T22:13:56.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iXDOXLiI7gDb8GTmI_5dRQ.jpeg" /></figure><p>So, you wanna know how to learn JavaScript at home? Search no more!</p><p>More and more people are sharing how they’re learning one of the most popular languages at home. That’s right, AT HOME. <strong>Not at a university, not in a boot camp, but at home.</strong></p><p>How do they do it? And how can you also do it?</p><h3>How to learn JavaScript at home</h3><p>First, find resources to help you understand the basics. I’ll recommend the best ones to start with below.</p><p>Second, learn the basics of JavaScript. I’ll list the basic concepts you have to know before moving to more advanced concepts.</p><p>As you keep going, you’ll learn enough to be able to build your own JavaScript projects.</p><p>I’ll suggest some project ideas for you below, as well as other tips to help you learn JavaScript at home.</p><h3>Find your resources (with 5 FREE recommendations)</h3><p>While it’s true that there are tons of resources available that will help you learn JavaScript at home, <strong>it can also be overwhelming trying to sift through everything</strong>.</p><p>So I recommend you start with the following:</p><h4>1. Codecademy’s JavaScript course</h4><p>Teaches you everything you need to learn the basics of JavaScript.</p><p>Link: <a href="https://www.codecademy.com/learn/introduction-to-javascript">https://www.codecademy.com/learn/introduction-to-javascript</a></p><h4>2. MDN’s JavaScript Guide</h4><p>MDN is a documentation repository for web development that’s used by Mozilla, Google, Microsoft, and Samsung.</p><p>You can think of it like Codecademy’s JavaScript course but in text format.</p><p>I recommend you don’t skip this because it’s more in-depth. You can use this to supplement the Codecademy course so you’ll have a deeper understanding. Codecademy courses are great for beginners but they also tend to be too shallow for some people.</p><p>Link: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide</a></p><h4>3. The Odin Project</h4><p>The Odin Project is an excellent way to learn JavaScript because of its project-based approach. It also teaches how you to learn new tech as a professional developer in the real world — by reading official documentation of these technologies.</p><p>Because of this, you also end up learning how to learn more effectively, which is essential in the long run.</p><p>I highly recommend this one because it’s a proven resource — hundreds of students have gotten a job in tech because of it.</p><p>Link: <a href="https://www.theodinproject.com/">https://www.theodinproject.com/</a></p><h4>4. FreeCodeCamp</h4><p>Just like The Odin Project, FreeCodeCamp is another top resource in web development. Their courses (including JavaScript) include interactive exercises with their own online code editor. This lets you know if your code has mistakes.</p><p>It’s a preferable resource for those who prefer more hand-holding versus the approach of The Odin Project.</p><p>Link: <a href="https://www.freecodecamp.org/">https://www.freecodecamp.org/</a></p><h4>5. Coursera</h4><p>Coursera hosts free online courses from well-known universities and tech companies. With the link below, you can get access to free JavaScript courses by Meta (previously Facebook), IBM, and universities.</p><p>Link: <a href="https://www.coursera.org/search?query=javascript&amp;">https://www.coursera.org/search?query=javascript&amp;</a></p><h3>More resources</h3><p>For more resources, check out the <a href="https://fullstackvault.xyz/">Full Stack Vault</a>, a curation of high-quality resources on learning web development.</p><h3>Learn the basics of JavaScript</h3><p>Before you could run, first you gotta learn how to walk.</p><p>You’re probably thinking of grand project ideas to build in JavaScript already. But before you could build those projects, you have to learn the basics of JavaScript first.</p><p>I cannot stress this enough.</p><p>I see many people who start learning how to code give up early in their journey because they skip the basics. They jump into tutorials or courses that teach you how to build complex things.</p><p>So start by learning the basics of JavaScript first.</p><p>For starters, here are the basic programming concepts you need to understand in JavaScript:</p><ul><li>Variables and data types</li><li>Operators</li><li>Conditionals</li><li>Functions</li><li>Scope</li><li>Loops and Iterators</li><li>Objects</li><li>DOM (Document Object Model)</li><li>DOM manipulation</li><li>Events &amp; event handling</li><li>Object-oriented programming (OOP)</li><li>Functional programming</li></ul><p>Once you have a firm understanding of the basics, you can move on to more advanced concepts.</p><h3>Apply the basics</h3><p>Let me tell you about a common mistake many newbies make when learning JavaScript, or any programming language:</p><p>They spend months (some even years) consuming resources, but they can’t code anything on their own — even basic stuff!</p><p><strong>This is called being stuck in tutorial hell. It happens when you don’t build your own projects.</strong></p><p>That’s why I recommend The Odin Project as a resource because of its project-oriented approach. You will learn concepts and build projects as you go.</p><p>As with anything, practice makes perfect when it comes to learning JavaScript. The best way to learn is by experimenting with code and seeing what happens when you make changes.</p><p>When you’re starting out, try to do the things you’ve learned on your own, to see if you actually understood the concept.</p><p>If you’re following along a tutorial or course and you don’t understand what you’re doing, Google the concept to get a deeper understanding. <strong>This will make sure you’re actually learning something instead of mindlessly copying a tutorial’s code.</strong></p><p><strong>Then write everything you’ve learned in your notes so you can reference them later.</strong></p><p>A great place to start is Codecademy’s JavaScript track, which I mentioned earlier. This will walk you through the basics of syntax, variables, data types, and more.</p><p>After you’ve completed Codecademy’s course, or if you’re already familiar with the basics, it’s time to start building something on your own. Choose a project that interests you, and start coding!</p><p>Try to start small with your first project. Then increase the difficulty as you move on to the next projects. Remember what I said about people giving up too early because they skipped the basics? It’s the same with projects.</p><p>Here are simple JavaScript project ideas for inspiration:</p><ul><li>Simple calculator</li><li>Unit converter</li><li>Currency converter</li><li>Calorie tracker</li><li>Online questionnaire</li><li>Simple image gallery</li></ul><p>As for advanced project ideas, let your creativity shine. Think of a problem you have in your life, and try to solve it yourself. Besides, <strong>many successful tech products came to life because the founders were simply solving their own problems</strong>.</p><p>With JavaScript, you can even build games that run on the browser!</p><p>At Full Stack Vault, we also curated resources for you that teach you <a href="https://fullstackvault.xyz/tutorials">advanced JavaScript projects</a> such as <strong>Uber, Yelp, and Medium clones, as well as Twitter, Discord, and AI bots</strong>.</p><p>If you get stuck, don’t be afraid to Google for solutions or ask questions on Stack Overflow.</p><h3>Learn to ask for help</h3><p>Don’t be afraid to ask for help!</p><p>Many people who are starting out don’t ask for help or even use Google to get themselves unstuck, thinking that it’s cheating.</p><p><strong>But this is the worst mindset to have in learning programming.</strong> Believe me, even senior developers get stuck and ask for help themselves. Programming is a very wide field, plus it is constantly evolving and changing. <strong>Nobody knows everything!</strong></p><p>So if you get stuck, there’s no shame in looking up the answer online or asking for help from someone more experienced than you.</p><p>Reach out to friends or family who already know JavaScript, or post a question on a forum or online community dedicated to learning programming languages.</p><p>Finally, <strong>one of the best things you can do to learn programming is to find a mentor</strong> that can help and guide you.</p><p>Learning JavaScript at home alone can be hard when you’re starting out. Sometimes, you can’t make sense of the resources you’re using, or your code doesn’t work and no amount of posting in an online forum helps.</p><p><strong>That can be frustrating and it’s one of the many reasons people quit before they reach a breakthrough in their learning.</strong></p><p>The personal touch that comes with mentorship changes that, and it’s a game-changer. Having someone who can take the time to look at your code, answer your questions and doubts, or simply motivate you when you’re on the brink of giving up, is priceless.</p><p>You can also reach out to me at <a href="/service/mailto:hello@fullstackvault.xyz">hello@fullstackvault.xyz</a> or <a href="https://twitter.com/fullstackvault">Twitter</a>. My inbox is open if you’re stuck on something and need guidance. I’ve already lent a hand to a few people who are just getting started, and you’re also welcome to join them!</p><h3>Stay up to date with new features and developments</h3><p>JavaScript and the tech industry as a whole is constantly evolving, so it’s important to stay up to date on new features and developments. This way, you can take advantage of new capabilities as they become available and you also keep your skills sharp.</p><p>So be sure to keep up with the latest news in the JavaScript community so that you can stay current on new features and best practices.</p><p>And that’s it!</p><p>By following these steps and putting in some consistent practice, you’ll be well on your way to becoming a proficient JavaScript developer in no time.</p><p>You can do this!</p><h3>Final Words</h3><p>If you have further questions or just want to connect, don’t hesitate to reach out to me at <a href="/service/mailto:hello@fullstackvault.xyz">hello@fullstackvault.xyz</a> or <a href="https://twitter.com/fullstackvault">Twitter</a>. I was a beginner too and I’m happy to help when I can.</p><p>Other than that, happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc12cd36a4ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>