<?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 Nathan Peel on Medium]]></title>
        <description><![CDATA[Stories by Nathan Peel on Medium]]></description>
        <link>https://medium.com/@nathanpeel?source=rss-b11b53ae23be------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p2Q_CHgbUSOxrCzDdEXiyA.jpeg</url>
            <title>Stories by Nathan Peel on Medium</title>
            <link>https://medium.com/@nathanpeel?source=rss-b11b53ae23be------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 06:18:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nathanpeel/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[How to Learn as a Software Engineer]]></title>
            <link>https://medium.com/@nathanpeel/how-to-learn-as-a-software-engineer-8262ddd56e5f?source=rss-b11b53ae23be------2</link>
            <guid isPermaLink="false">https://medium.com/p/8262ddd56e5f</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[philosophy]]></category>
            <dc:creator><![CDATA[Nathan Peel]]></dc:creator>
            <pubDate>Thu, 15 Aug 2024 19:20:55 GMT</pubDate>
            <atom:updated>2024-08-15T19:20:55.174Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A thumbnail of the article title, subtitle, and author name. Blue, green, and white coloration." src="https://cdn-images-1.medium.com/max/848/1*8U14fqzX9Vsp6o4CVq_Hiw.png" /></figure><p>What is a software engineer? Is it someone who knows Java? Is it someone who understands React or Node.js? Is it someone who has experience with AWS? A software engineer can be all of these things or none of them. What makes someone a software engineer is a mix of computer science and engineering fundamentals and an understanding of learning. You build everything else on top of that. In this article, we will focus on understanding how to learn. Everyone knows how to do this to some degree, but the better you learn, the more valuable you will be as a software engineer. Technology is ever-evolving, so knowing how to learn to use a framework is more important than knowing how to use a framework perfectly.</p><p>Let’s say we went back in time and found an expert software engineer from the 1990s and brought them to 2024. How would they handle software engineering today, 30+ years later? Some things would be the same, but many would be vastly different. This person would not be valuable for the exact languages and frameworks they used because they have changed and new technologies emerged. Instead, they would be useful for using their understanding of computer science and engineering to learn the technology currently being used.</p><h3>Philosophy of Learning</h3><p>There are many ways to learn new information, an infinite number of ways. However, some general mindsets will help you get further.</p><p>I love learning all kinds of things, from history and philosophy to spoken languages and software engineering tools. I loved learning so much that I just wanted to learn everything perfectly, regardless of how long it took. Unsurprisingly, this halted my learning to a devastating degree. I told myself I had to learn the basics before learning what I wanted. Learning the basics is okay, but there is a balance to it. A never-ending hole of basics to learn prevents you from studying valuable ideas. This obsession with understanding everything perfectly and fully leads to a spiral where you always learn more but never progress–AKA tutorial hell. First, you start by wanting to learn a new framework like React. Before that, you need to learn JavaScript. Then, you feel you need to know how JavaScript works, so you learn C++ to understand the engine. Then, you <em>naturally</em> want to learn assembly language, machine code, and so on and on. Next thing you know, you are trying to make a computer from raw materials. My example is an over-exaggeration, but the point remains. There is always another level deeper to go, but you probably don’t need to go there.</p><p>The reason we spiral like this varies from person to person, but it tends to stem from the fear of doing something wrong and the fear of uncertainty.</p><p>The solution? Let go of the need for perfection and the fear of not being good enough. With this perfectionist mindset, you will never reach perfection or be good enough. Accept that you will never know everything and that you will make mistakes. Accepting this allows you to learn more than ever and make fewer mistakes than you would if you chased this ideal.</p><p>Another issue was my fear of forgetting what I had learned. Practice and study are essential, but you can do too much. My fear led to endless note-taking, as if the more notes I took, the more I would retain. The reality is we are going to forget things we learned. Our forgetfulness might seem like a flaw in our biology, but it is actually a strength. Consider how the brain decides which information to maintain and which to remove. It is based on which information you use or, in other words, which information is helpful. When you are working as a software engineer, you are constantly using information that you learned. The connections in your brain regarding this information are ever-growing stronger. On the other hand, the information you don’t use slowly fades away. Why keep the information you don’t need? Accept that you won’t remember everything but will remember what is essential.</p><p>Solidify and emphasize new material by connecting it to concepts you already know. For instance, when learning a new programming language, you can relate its syntax to a language you already know. Many psychologists have studied and made theories about this idea, but the basic concept is to fit new information into existing information. The more critical the existing information you connect the new information to, the more important the new information will become. Using your emotions is incredibly effective. Focusing on connections works because information in your brain is just connections between neurons. The more connections information has, the better you will retain it.</p><p>Everything in this world, in this universe, is connected. All subjects of study are connected in some way. Everything in our lives is somehow connected to everything we learn. Sometimes, these connections are easier to see than others, but they are there.</p><p>With software engineering, it is easy to make connections because ideas, frameworks, and languages are similar and connected. However, there are also connections outside of the direct field. Having studied psychology and computer science, I have seen both subjects reference each other to teach new ideas. Deep philosophical and psychological ideas are also embedded in soft skills such as collaboration, productivity, and project management.</p><h3>My process for learning something new</h3><p>Everyone has a different process for learning new skills and information. It doesn’t matter how similar your process is to others, as long as you are consciously aware of it and seek to improve it. At the moment, my process of learning new information and skills is going like this:</p><ol><li>Gain context on the skill or information. What does this new material relate to? Is it for front-end development or backend? Is it even for the web? What is the skill for?</li><li>Decide why you want to learn in it. Not knowing why I am learning something makes it difficult to push myself. I fall to feeling it is pointless. Why do I want to learn Unity? I want to make fun games with my friends while learning C#, which makes me more desirable for employers. Why do I want to learn AWS? AWS is a massive collection of tools for deploying code reliably and efficiently. It is a highly desired skill, and because of this, I want to learn it.</li><li>Try to break down large subjects into smaller pieces. For example, saying you want to learn front-end development is too vague and overwhelming. Start by learning JavaScript or learning a framework/library if you already know JavaScript. When you find a more specific (but not too specific) topic, go back to step one.</li><li>Get a high level understanding of the material. Learn the basics and fundamentals, but don’t lose yourself in understanding everything perfectly. Make as many connections to things you already know as you can. Don’t just make computer science connections. Make connections to everything and anything you can, emphasizing things and ideas that are important to you.</li><li>Go further into more specific things by reading documentation or watching videos. I try to avoid lengthy video tutorials. If I have time to watch long tutorials, I might, but you can get lost in tutorial hell this way. That’s not to say I don’t watch videos or tutorials. I indeed used YouTube tutorials when I was first learning Next.js and TypeScript. However, the point is not to get lost watching tutorial after tutorial. It’s best to watch those you can follow along with on a project.</li><li>Try to use the new information. If I get stuck, I repeat step four. As I use the new information and skills, I continue making connections, especially within the material.</li><li>Continue to improve your understanding.</li></ol><p>Sometimes, I take notes, but I find that I often learn more if I just engage with the material and make connections. As I said before, this might be very different for you. If you need to take notes to learn, do that. The point is to be aware of your process and refine it to work for you. Another important concept is making learning fun. I find creating things and doing things hands-on fun, so I try to learn that way if I can.</p><p>Learning is a cornerstone software engineering skill, so knowing your process will make you a more productive and valuable engineer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8262ddd56e5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How my dad taught me to be an engineer]]></title>
            <link>https://medium.com/@nathanpeel/how-my-dad-taught-me-to-be-an-engineer-9590af4c7b59?source=rss-b11b53ae23be------2</link>
            <guid isPermaLink="false">https://medium.com/p/9590af4c7b59</guid>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[creativity]]></category>
            <dc:creator><![CDATA[Nathan Peel]]></dc:creator>
            <pubDate>Thu, 15 Aug 2024 19:17:13 GMT</pubDate>
            <atom:updated>2024-08-15T19:17:13.492Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Thumbnail with article title, subtitle, and author name. Green, blue, white coloration." src="https://cdn-images-1.medium.com/max/848/1*UFVuuqBJ2eJHDP92DdvYtg.png" /></figure><p>Software Engineering is less about your tech stack and more about how you use the tools you have access to. Technology, languages, and frameworks change. We did not use Next.js 10 years ago. Next.js is undoubtedly different from what it was when it was released. Every language or framework is. These technologies will continue to evolve, be replaced, and die to irrelevance only for new technologies to take their place.</p><p>Dealing with all this change is a topic for another article, but underneath these ever-changing technologies is a collection of fundamentals and philosophies that prescribe how to use tools to make stuff. I don’t claim to know all these fundamentals and philosophies, as it varies from person to person. I do have the ones that I was taught and follow. Here are some engineering principles I will carry for the rest of my career and my whole life, taught by my Old Man.</p><h3>Who my dad was</h3><p>My father was not an engineer by trade, but he thought like one. People are rarely born with specific behavior traits, but my dad showed a creative knack for building things from a young age. From making bicycle ramps, assembling bicycles, and making deafeningly loud car stereo systems, my dad loved to make things. He continued this throughout his life, bringing vehicles back from the dead, modifying the room layout in the house, building a patio cover, designing an automatic water change system for our aquarium, and modifying his motorcycle. This list goes on and on. Building and fixing things was my dad’s happy and safe place. My dad was always thinking about ways to optimize his work. I was fortunate enough to spend lots of time helping him build things, and through that, I learned many skills and philosophies that I would like to share. Unfortunately, my dad died in a motorcycle accident. It is sad, but I am incredibly grateful for the time we had and the skills he taught me.</p><h3>Select the right tool for the problem</h3><p>A large part of our jobs as engineers is knowing a wide range of tools and knowing when and how to use the best one for the task. I doubt I am exaggerating when I say there are millions of ways to do one task. However, the best approach depends on the situation, your goals, and what you have access to. If your goal is to make something as quickly as possible, you will likely use different tools than someone who plans on maintaining the software for 10+ years. Even more so, you will likely use your tools differently.</p><p>My dad loved tools. He had an entire trailer full of them. He had tools for doing specific tasks like taking off motorcycle fairings or trimming palm trees. He used his miter saw when cutting wood into a particular shape, not the palm tree saw. This practice might seem obvious, but you need to know what your tools are for to apply them to the correct situations. For some, it might seem evident that Next.js is a web framework while React Native is for building mobile applications, but others might not find it obvious. Also, just because you can use a tool for something doesn’t mean you should. You can use vanilla JavaScript to make a website, but that doesn’t mean you should use it over Next.js or Angular. Just because you can use a hand saw to cut something doesn’t mean you should use it over an electric circular saw. These power tool analogies might not make the most sense, but it’s what my dad taught me, and you get the point.</p><h3>When you don’t have access to the right tool, make the one you have work</h3><p>My dad often cut palm trees as part of his work. Ideally, he would have used tree climbing equipment or a lift, but he couldn’t access those things. Instead, he used a ladder and asked a teammate to hold it while he worked. This approach was not the safest or most efficient, but it was what he had access to, and he found the right technique to do it as safely and quickly as possible.</p><p>Software Engineers are lucky because we can usually learn new tools quickly. However, we don’t always have time to learn a new skill or the option to choose a different technology. If you are working on a server made in Express.js, you can’t randomly start building it with Django. Even if you wanted to migrate it over, your manager might not want you to migrate to Django. What do you do? Use Express.js the best you can. As a Python developer, it might not be ideal for you, but as an engineer, you can figure out how to use it just as well as you would use a Python framework.</p><h3>Solve problems you don’t know how to solve</h3><p>It is impossible to know how to solve every software engineering problem. You can’t possibly memorize that many solutions, especially when dealing with issues that don’t exist yet. Often, what differentiates engineers is their ability to solve problems with unknown solutions. Use what you know to solve what you don’t.</p><p>My dad once took a job building a shed. The client bought some sort of kit to build the shed. My dad was not familiar with building sheds or using this kind of kit. He could have told the client that he couldn’t do the job, but that wasn’t my dad’s attitude. My dad understood that the difference between knowing enough and not knowing enough to do something is an illusion. Sure, he didn’t know exactly how to build a shed, but he knew how to learn and figure it out. That is just as good, if not better, than knowing how to build the shed in the first place. Why would he turn down work that he knew he could do, even if he didn’t know how to yet? That’s how my dad learned how to work on cars, rebuild motorcycles, do drywall, and anything else he could do. As a side note, my dad built that shed and was hired by the same client to do more work.</p><p>Sure, I don’t know C++, but I am 110% confident I could figure out how to use it. I know how to learn a new language, which is more valuable than knowing the language skill itself.</p><p>That’s not to say there isn’t a difference between knowing C++ and not knowing it. The point isn’t to pretend you know all the skills you don’t. The key here is to approach software engineering and life in general with a growth mindset. You’ll never know everything you’ll ever need to do your job as a software engineer, but you can grow and learn to solve problems you and others don’t know how to solve <em>yet</em>.</p><h3>Don’t take shortcuts</h3><p>My dad once said that lazy people actually work the hardest because they take shortcuts that result in more work in the long run. Smart people, on the other hand, make optimizations that take more upfront work but result in less work in the long run. The difference between the two is a difference of ignorance.</p><p>Before I continue, I should clarify that the lesson here is not to make <em>bad</em> shortcuts. The skill is distinguishing between a lazy shortcut and an optimization.</p><p>When cutting wood, my dad always told me, “Measure twice, cut once.” That is a common saying amongst artisans but highlights a critical philosophy. A good translation is testing. Like measuring twice, writing tests takes more time upfront but saves so much time in the long run. Sure, measuring once takes less time, but if you have to go back to Home Depot to buy another piece of wood because you made a wrong cut, that second measurement would have been worth it.</p><p>Another good example is using TypeScript. JavaScript might be initially quicker, but TypeScript saves time in the long run, especially as the application expands.</p><h3>Persistence</h3><p>Some issues require brute force and persistence. Persistence is an overarching principle encompassing many other principles. Everyone has some experience with persistence, yet it is a relatively rare skill. Doing something difficult is uncomfortable, which is generally something people try to avoid. People often view discomfort and stress as negative, but my dad and I disagree. Embrace stress and discomfort with open arms because growth, success, and fun are on the other side. Embracing discomfort is difficult, but another skill/principle makes it possible and even easy. I could talk about many Stoic ideals here, but I’ll save that for another article.</p><p>In the meantime, check out this <a href="https://www.ted.com/talks/kelly_mcgonigal_how_to_make_stress_your_friend?language=en">TED talk about stress</a>.</p><h3>Patience</h3><p>Patience goes hand in hand with persistence, but it is a different skill. Patience is the willingness to wait to finish or accomplish something. Often, the issue is not fear of discomfort but a need to achieve things immediately. Some people get frustrated because they aren’t experts after one day of studying a framework. This frustration stems from a lack of willingness and acceptance that things take time. While it is important to be efficient with your time, as this saves your company money, patience saves time, too.</p><p>When I was younger, I would get frustrated and impatient when I asked my dad to fix something, and it took more time than I thought. He explained that this mindset of getting things done immediately would make them take longer. “Don’t rush,” he would tell me. Doing things when you are rushing and frustrated is more challenging, leading to mistakes that take longer to fix than doing the task itself.</p><p>While people are often taught to idealize patience from a young age, you shouldn’t overlook its importance. Many people comment on our shortening attention spans, so I’ll keep my comment short. This skill is even more valuable in an age where people expect gratification in increasingly shorter amounts of time.</p><p>As Treebeard from <em>The Two Towers</em> says, “We must not be hasty”.</p><h3>Asking for help</h3><p>Having persistence and patience to solve problems on your own are important skills. However, equally important is knowing when to ask for help. When teaching me how to fix things, my dad often told me that it was okay to ask for help. He displayed this skill by asking me for help himself. Again, this skill applies to all of life, but it also applies to software engineering.</p><p>Not asking for help when you should is often the result of pride and a rampant ego. Some people think they are more valuable if they can do all their tasks without help. They also feel more proud of their work. However, pride isn’t what makes software successful. Also, this “do it all by myself” mindset tends to waste time, which is never valuable.</p><p>When my dad asked me for help, I often quickly pointed out the issue. When you fixate on a problem long enough, you can become sort of blind to it simultaneously. Someone else might recognize the issue quickly.</p><p>First, I said that you should persist in solving complex issues, and now I am saying to ask for help. While it might not seem so, these two principles are not contradictory. Asking for help is not giving up. On the contrary, it is an extension of persistence. You are using your resources, which include your coworkers and teammates. However, there is a balance to this. Asking for help is good, but you should try to solve it independently first. Respecting your coworkers’ time is equally essential, so constantly asking for help is not ideal. On the other hand, being determined to do everything yourself is unreasonable and unhelpful.</p><h3>Step away when you get frustrated or tired</h3><p>As mentioned before, dealing with a particular bug or problem for a long time can make you blind to the solution. We get fixated on a specific aspect of the code, neglecting other areas that could cause the bug. This inability to find the bug can lead to frustration, making matters worse.</p><p>I must briefly warn you about the story I am about to tell, as it is slightly graphic but demonstrates an important lesson. Feel free to skip to the next section. You’ve been warned.</p><p>One day, my dad was redoing the flooring in one of the rooms. He was replacing some nasty dog and cat pee-ridden carpet with laminated wood floors. He had been working on it for a few days, spending a lot of his time after work on it. One day, he was very close to finishing the project. He finished the flooring and only had a few more pieces of baseboard to cut. He was tired and needed a break, but it was only a few more pieces, so he kept going. I don’t remember if it was the last piece or the second to last, but he made a mistake when cutting it. I was helping him and noticed what was going to happen after it was too late. My dad ran his finger into the table saw. He didn’t lose his finger but cut 2/3 of the way through. My dad, being my dad, drove himself to the hospital. He underwent surgery, and his finger was relatively okay. He never got a full range of motion back in that finger. This incident was all caused by my dad being tired but refusing to take a break, leading to a mistake far worse than finishing the project the next day.</p><p>From that point on, he would force himself to take a break whenever he felt weary from working on some project or task. He often joked about what happened the previous time he refused to take a needed break.</p><p>While you aren’t going to accidentally chop through your finger when software engineering, you could make a silly mistake that costs lots of time and money to fix just because you were tired and needed a break. While it seems inefficient upfront, taking a break saves time and money in the long run.</p><h3>Be open to solutions</h3><p>Solutions come from many different places: Stack Overflow, the lead engineer, your manager, Chat GPT, or even the intern or junior engineer. While not all suggestions are created equal, don’t neglect one because it came from the intern instead of the lead engineer. Consider suggestions at face value, without bias. This is a challenging skill, but it is essential.</p><p>Yes, the lead engineer <em>likely</em> has a better approach than the intern, but that doesn’t mean they actually do.</p><p>My dad worked with many different people with varying skill levels, but he never neglected or favored suggestions because of who gave them. When I, someone who knew little about cars, offered a suggestion on how to fix one, my dad honestly considered it. There were a few occasions where my suggestion was actually the solution. We might have spent longer solving the issue if he had brushed aside my suggestion just because I was less experienced.</p><h3>Have fun</h3><p>Software development is incredible (I might be biased) and super fun. Unfortunately, getting caught up in the day-to-day work is easy, and we lose sight of how lucky we are. Being a software engineer is the dream job of millions, so be grateful and have fun with it.</p><p>When working on projects with my dad, he would always show me how fun it was. We never took it so seriously that it wasn’t fun anymore. He would show me things that were “cool,” such as his electric PVC cutters or laser measurement tool. It is common to get so used to modern technology that it loses its fun. However, developers from 20 years ago would be amazed at the things some of us see as typical.</p><p>The antidote to this is approaching your work with enthusiasm and curiosity. Again, there are tons of Stoic principles I could talk about here. I’ll mention one. Epictetus says, “People are troubled not by things but by their judgments about things.” This idea applies to having fun with your work. If you want work to be fun, see it as fun. View your tasks from an enthusiastic and curious perspective instead of an “I do this everyday-this is boring” perspective. Not only will you enjoy your work more, but you will likely do a better job. Enthusiasm is more potent than caffeine, and I know how powerful caffeine is for some of you.</p><h3>Don’t let anyone tell you you’re not capable</h3><p>When I first got diagnosed with myopia (nearsightedness), the optometrist told me I couldn’t be a pilot because of it. I’m unsure if this is true or why she told me this, but I believed it. It didn’t bother me because I had no interest in being a pilot. I told my dad about it casually, and he stopped me with all seriousness. He told me not to let anyone tell me what I’m capable or not capable of. He said if I want to achieve something, I must at least try.</p><p>As a software engineer with a less common background, I’ve heard my fair share of “you can’t.” If I dared to let that bother me, I would simply remember what my dad told me. This principle applies to you even if you have a conventional background. If someone says you can’t work at your dream company, or even if they say the chances are low, don’t let that discourage you. Try anyway, even if the chances are incredibly slim. If you are passionate about it, giving up because someone told you to is silly.</p><p>While lots of people think you are not capable, there are also plenty of people who believe you are. Choose to listen to those people instead. Don’t decide the outcome before you even try. Rejecting doubt applies to the job search and actual engineering. If engineers only did what seemed clearly possible, our technology and software would be nowhere near where it is.</p><h3>Make time for yourself</h3><p>One of the last things my dad told me before he died was to take time for myself. He explained that your life will flash by if all you do is work. As software engineers, getting lost in learning the next, best framework or technology or trying to fix that pesky bug is common. However, life is more than engineering. Live your life, and live it well. To do this, you must take time for yourself. Don’t neglect your health, friends and family, or hobbies. Balancing your life will allow you to work with higher energy and success.</p><p>That was a long article for my first post, but I genuinely believe in these philosophies, and I wanted to appreciate the skills my dad taught me. I hope you find something valuable.</p><p>Live well and happy engineering.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9590af4c7b59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Next.Nav: The Solution to Confusing File-Based Routing in Next.js]]></title>
            <link>https://medium.com/@nathanpeel/next-nav-the-solution-to-confusing-file-based-routing-in-next-js-3c6db2346a05?source=rss-b11b53ae23be------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c6db2346a05</guid>
            <category><![CDATA[vscode-extension]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Nathan Peel]]></dc:creator>
            <pubDate>Wed, 06 Sep 2023 22:59:03 GMT</pubDate>
            <atom:updated>2023-09-07T16:46:12.689Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Co-authored by: Brian Henkel, Anatoliy Sokolov, and Jordan Querubin</em></p><h3>Next.Nav: The Solution to Confusing File-Based Routing in Next.js</h3><p>Next.js is a React framework for creating web applications with advanced page routing and <strong>SEO optimization</strong>. With <a href="http://nextjs.org/">Next.js</a>, React applications are more accessible and user-friendly. Next.js comes with a plethora of features, such as<strong> prefetching, lazy loading, file-based routing, server-side rendering,</strong> and more. It’s the perfect framework for anyone developing a React web application. The React team themselves recommends using Next.js over React Native.</p><blockquote>React is a library. It lets you put components together, but it doesn’t prescribe how to do routing and data fetching. To build an entire app with React, <strong>we recommend a full-stack React framework like Next.js</strong> or Remix.</blockquote><blockquote>— React Website</blockquote><p>My team and I are passionate about Next.js, and we genuinely believe it is the best React framework. However, we understand there are frustrations when using it, some of which we hope to solve with our <strong>VS Code extension</strong>.</p><h4>Frustrations with file-based routing</h4><p>Next.js provides crucial features for developing web applications, though <strong>file-based routing can make development frustrating</strong> even on small applications. With the new App Router, developers must create routes using their application’s folder structure. <strong>Each page is called “page.jsx”</strong>. Many folders also include a “layout.jsx”, “loading.jsx”, a CSS file, and other repeated file names. When the file names are all the same between folders, it is confusing to navigate the file structure. Creating new folders and routes with the VSCode file explorer is also annoying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*DC0GN3oX7SQyhnn08JBzpQ.png" /><figcaption>This is a small application…</figcaption></figure><p><strong>Precious time is lost</strong> searching for the correct file and adding files and folders in the right place. Navigating the file structure of a small Next.js application is frustrating, but navigating an extensive application is even more so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*tx-_pFpMQmD_RfBYC2ypjQ.jpeg" /><figcaption>Next developers looking for another page.jsx file</figcaption></figure><p>File-based routing has many benefits and streamlines the creation of websites. We firmly believe in the improvements Next.js brings to React development. For this reason, we developed Next.Nav to address the frustrations with navigating file-based routing while embracing the central features of Next.js.</p><h3>Introducing Next.Nav</h3><p>Introducing <a href="http://next-nav.com/"><strong>Next.Nav</strong></a>, a VS Code extension for <strong>viewing and modifying </strong>the folder structure of your Next.js application via a tree structure. You can quickly find and open files from the <strong>visually pleasing tree</strong>. Within the modal that pops up after clicking a node, you can <strong>create new files</strong> in the folder or delete existing ones. You can <strong>create or delete folders</strong> by using the node’s buttons. The tree will automatically update with changes you make to the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*j0KDorlhVYHFmDAQW5jXEw.png" /><figcaption>Much better…</figcaption></figure><p>Server-side rendering (SSR) is a vital part of Next.js, as it improves SEO by making the site easily accessible to web crawlers. It also improves accessibility by making the site available even if JavaScript isn’t loading on the browser. However, client-side rendering (CSR) is needed to make aspects of a site interactive. Fortunately, Next.js allows you to make a page client-side rendered. Next.Nav encourages this feature by <strong>indicating whether a folder is SSR or CSR</strong>, further decreasing navigation time and improving the developer experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Ve49kP3J_KJj7zY473blA.gif" /></figure><p><strong><em>You can view Next.Nav on the VSCode extension store </em></strong><a href="https://marketplace.visualstudio.com/items?itemName=NextNav.NextNav&amp;ssr=false#review-details"><strong>here</strong></a><strong><em>.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*pXBj4GWXVnaQxgpX08ug5g.jpeg" /><figcaption>Peacefully creating Next.js apps with Next.Nav</figcaption></figure><h3>Using Next.Nav</h3><p>Creating an intuitive extension was our focus. Next.Nav is easy to use, requiring little effort to understand. You can use it immediately after downloading. Regardless, here are some tips to get you started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V5oEYdFI01iU71kBhKFh7A.png" /></figure><p>Next.Nav is a VS Code extension available on the extension store. Go to the store and, search for “Next’Nav” and install the extension. From the root file of your application, press <strong>Command + Shift + P (CTRL + SHIFT + P for Windows)</strong> to open the Command Pallete and <strong>enter “Next.Nav”</strong>. The extension will load with a tutorial tree. You can explore the tutorial tree without affecting your application. Note that you won’t be able to add any files or folders to this tree.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qoC85AKSGnKHSs5cMP-Fww.gif" /><figcaption>Opening the extension</figcaption></figure><p>Press the upload icon in the top right to view your application’s tree structure. Please <strong>copy and paste the path (relative or direct)</strong> to your app folder and paste it into the input field. Press submit, and you will see your tree. You can choose how the tree is oriented by pressing the orientation button in the top right. Press the refresh button in the top right if you accidentally put the tree out of view or move the nodes too much. You should also press this button if you update the folders or create new files from the VS code file explorer. If you update the folders and files from the Next.Nav extension, the <strong>changes will reflect instantly</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8IoFiMHpTzxuy7QTzc924Q.gif" /><figcaption>Opening your Next.js application file structure</figcaption></figure><p>To add new files, click on the node (which represents a folder) to which you want to add the file. A modal will pop up with all the files in the folder and an input field at the bottom. Enter the name of the new file and press enter. To view files, click on the node icons or the folder names from within the node modal. You can also hover over the icons to see what files they represent. To delete a file, click on a node to view the modal. You will see a trash can icon next to each file. Click the trash can and press confirm. <strong>You cannot undo this action</strong>, so we have an extra confirmation step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2x7ANE57kr5-nC8bLlmNw.gif" /><figcaption>Opening a file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I40k5IRsQ64_Q9DbyOLW5w.gif" /><figcaption>Creating new files</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qpa_83SCQY_fVafuiUlGOg.gif" /><figcaption>Deleting files</figcaption></figure><p>To create a folder, press the button on the right of the parent node. A modal will pop up with an input field to name the folder. Press enter to create the folder. To delete a folder, press the left button on the node you want to delete. The application will ask you to type the folder name to confirm that you want to delete it. Again, <strong>you cannot undo this</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aD4wv-xr-Rx0H7zY8d4tsQ.gif" /><figcaption>Creating a new folder</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5LmuYte8rOqWiAef4pMKeQ.gif" /><figcaption>Deleting a folder</figcaption></figure><h3>The magic behind the awesomeness</h3><p>For those curious about how Next.Nav was developed, here is some information on <strong>the technologies we used</strong>.</p><p>Next.Nav is a <strong>React application</strong> built inside of a VS Code extension. We used <a href="https://reactflow.dev/"><strong>ReactFlow</strong></a> to display the nodes in the React app. To position the nodes correctly, we used <a href="https://www.npmjs.com/package/elkjs"><strong>ELK.js</strong></a>. Of course, we also used the <a href="https://code.visualstudio.com/api/references/vscode-api"><strong>VS Code API</strong></a> to interact with files and directories.</p><p>If you are interested in contributing to Next.Nav, please visit our <a href="https://github.com/oslabs-beta/Next-Nav"><strong>GitHub</strong></a> and review the contribution guidelines. We would love for you to contribute.</p><p>The Next.Nav team is incredibly excited about our extension’s launch. We know you’ll find it helpful in creating awesome Next applications. If you have any questions for our team, please do not hesitate to ask! <strong>We would love to connect!</strong></p><h3>The Next.Nav Team and Co-Authors</h3><p>Jordan Querubin | <a href="https://github.com/jequerubin">GitHub</a> | <a href="https://www.linkedin.com/in/jordanquerubin">LinkedIn</a></p><p>Nathan Peel | <a href="https://github.com/nathanpeel">GitHub</a> | <a href="https://www.linkedin.com/in/nathaniel-peel/">LinkedIn</a></p><p>Brain Henkel | <a href="https://github.com/FANFICPDF">GitHub</a> | <a href="https://www.linkedin.com/in/b-henkel/">LinkedIn</a></p><p>Anatoliy Sokolov | <a href="https://github.com/AnatoliySokolov98">GitHub</a> | <a href="https://www.linkedin.com/in/anatoliy-sokolov">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c6db2346a05" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>