<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Oli Treadwell</title>
    <description>The latest articles on DEV Community by Oli Treadwell (@olitreadwell).</description>
    <link>https://dev.to/olitreadwell</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F919897%2Fecaf57b5-f78f-4181-b9b8-f6730fc780dd.jpeg</url>
      <title>DEV Community: Oli Treadwell</title>
      <link>https://dev.to/olitreadwell</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/olitreadwell"/>
    <language>en</language>
    <item>
      <title>Why you should ask for code reviews early on and review others code!</title>
      <dc:creator>Oli Treadwell</dc:creator>
      <pubDate>Thu, 20 Apr 2023 20:57:29 +0000</pubDate>
      <link>https://dev.to/olitreadwell/why-you-should-ask-for-code-reviews-early-on-and-review-others-code-488n</link>
      <guid>https://dev.to/olitreadwell/why-you-should-ask-for-code-reviews-early-on-and-review-others-code-488n</guid>
      <description>&lt;p&gt;Hey there, software developers!&lt;/p&gt;

&lt;p&gt;Looking to improve your coding skills, learn from others, and avoid wasting hours or days on what ends up being a simple fix?&lt;/p&gt;

&lt;p&gt;There's one tactic that you absolutely shouldn't overlook.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CODE REVIEW.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Code review is the practice of sharing your code with others and reviewing the code of others. It may seem a little scary at first! Trust me, it's worth it. &lt;/p&gt;

&lt;p&gt;Here are a few reasons why:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Two heads are better than one:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sometimes, all it takes is a fresh pair of eyes to spot those pesky errors that you've been staring at for hours. &lt;/p&gt;

&lt;p&gt;I know! I spent 2 whole workdays at my first job wondering why my code wasn't working. I was missing an equal sign &lt;code&gt;=&lt;/code&gt; to reassign a variable value. 🤬&lt;/p&gt;

&lt;p&gt;When you share your code with others, they can help you catch mistakes you may have missed on your own.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Learn something new:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Collaborating with other developers can help you pick up new skills and techniques.&lt;/p&gt;

&lt;p&gt;By reviewing someone else's code, you might discover a more efficient way of doing things or a tool you didn't even know existed.&lt;/p&gt;

&lt;p&gt;Code review is a great place to ask questions and share your knowledge. Be curious and open to learning new things!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Don't make the same mistake twice:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;By reviewing others' code, you can learn from their mistakes and avoid making the same errors yourself. This can save you a lot of time and frustration in the long run.&lt;/p&gt;

&lt;p&gt;One of the best ways to share and review your code is through GitHub. GitHub is a platform that allows you to host your code and collaborate with other developers. By posting your code on GitHub, you can invite others to review your code and provide feedback. You can also review the code of others and learn from their techniques and approaches.&lt;/p&gt;

&lt;p&gt;To sum it up, sharing and reviewing your code with other developers is a must if you want to become a better software developer. By being open to feedback and collaborating with others, you can catch errors, learn new techniques, and become a better coder.&lt;/p&gt;

&lt;p&gt;So why not give it a shot? Share your code today and start collaborating with other developers. Who knows what you might learn or what problems you might solve together?&lt;/p&gt;

&lt;p&gt;And speaking of collaboration, what are some other ways you like to work with other developers? Let us know in the comments below!&lt;/p&gt;

&lt;p&gt;Here are some resources to get you started:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/joho/awesome-code-review#readme"&gt;Awesome Code Review&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.atlassian.com/agile/software-development/code-reviews"&gt;Why Code Reviews Matter - Atlassian&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;cover image credit: Photo by &lt;a href="https://unsplash.com/@disruptxn?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Desola Lanre-Ologun&lt;/a&gt; on &lt;a href="https://unsplash.com/photos/IgUR1iX0mqM?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Unsplash&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Explaining Filepaths and "cd ." for Beginners</title>
      <dc:creator>Oli Treadwell</dc:creator>
      <pubDate>Tue, 18 Apr 2023 17:21:09 +0000</pubDate>
      <link>https://dev.to/olitreadwell/explaining-filepaths-and-cd-for-beginners-10lc</link>
      <guid>https://dev.to/olitreadwell/explaining-filepaths-and-cd-for-beginners-10lc</guid>
      <description>&lt;h2&gt;
  
  
  Explaining Filepaths and "cd ." for Beginners
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is a filepath?
&lt;/h3&gt;

&lt;p&gt;A filepath is like a set of directions that helps a computer find a file or folder. Think of it like giving a friend directions to a store in a big city.&lt;/p&gt;

&lt;p&gt;Computers use forward slashes (&lt;code&gt;/&lt;/code&gt;) or backslashes (&lt;code&gt;\&lt;/code&gt;) to show the path to a file or folder. In many computer systems, a filepath could look like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/home/user/Documents/example.txt&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This filepath leads to a file called &lt;code&gt;example.txt&lt;/code&gt; inside the &lt;code&gt;Documents&lt;/code&gt; folder, which is inside the &lt;code&gt;user&lt;/code&gt; folder, which is inside the &lt;code&gt;home&lt;/code&gt; folder.&lt;/p&gt;

&lt;p&gt;In Windows, filepaths use backslashes, like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;C:\Users\User\Documents\example.txt&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Finding your current filepath
&lt;/h3&gt;

&lt;p&gt;You can find your current filepath by opening a command prompt on your computer.&lt;/p&gt;

&lt;p&gt;On Windows, you can open a command prompt by pressing the Windows key and typing &lt;code&gt;cmd&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On Mac, you can open a command prompt by pressing the Command key and the spacebar at the same time, typing &lt;code&gt;terminal&lt;/code&gt;, and pressing Enter.&lt;/p&gt;

&lt;p&gt;Once you have a command prompt open, you can type the command &lt;code&gt;pwd&lt;/code&gt; to find your current filepath. The command &lt;code&gt;pwd&lt;/code&gt; stands for "print working directory." It tells you where you are in the file system.&lt;/p&gt;

&lt;p&gt;Knowing your current filepath can be helpful when you need to find a file or folder or when you need to navigate to a particular directory using the command prompt.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is "cd ."?
&lt;/h3&gt;

&lt;p&gt;The command &lt;code&gt;cd&lt;/code&gt; stands for "change directory." It's used to move around in the file system. For example, if you're in the &lt;code&gt;home&lt;/code&gt; folder and you want to move to the &lt;code&gt;user&lt;/code&gt; folder, you can use the command &lt;code&gt;cd user&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The command &lt;code&gt;cd .&lt;/code&gt; helps you stay in the same folder when using a command prompt on a computer. The &lt;code&gt;.&lt;/code&gt; represents "the current folder." So it tells the computer, "stay in the folder we're in right now."&lt;/p&gt;

&lt;p&gt;If you want to go up one level, you can use the command &lt;code&gt;cd ..&lt;/code&gt;. The &lt;code&gt;..&lt;/code&gt; means "start where we are now, but go up one level." So it tells the computer, "go up one level from the folder we're in right now."&lt;/p&gt;

&lt;h3&gt;
  
  
  When we will see the &lt;code&gt;.&lt;/code&gt; and &lt;code&gt;..&lt;/code&gt; in our code
&lt;/h3&gt;

&lt;p&gt;When making a website, we use filepaths to show the web browser where to find different files, like images, stylesheets, and scripts.&lt;/p&gt;

&lt;p&gt;For instance, we might use &lt;code&gt;./scripts/main.js&lt;/code&gt; to include a JavaScript file in a website or &lt;code&gt;./styles/main.css&lt;/code&gt; to link to a CSS stylesheet file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"./styles/main.css"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"./scripts/main.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remember from above that the &lt;code&gt;.&lt;/code&gt; at the start of these filepaths means "start in the current folder." So it tells the browser, "look in the folder we're in right now to find the file."&lt;/p&gt;

&lt;p&gt;It's essential to write filepaths correctly, using the right slashes and correct spelling. Computers are very picky about these details!&lt;/p&gt;

&lt;p&gt;Knowing how to work with filepaths and navigate the file system using commands like &lt;code&gt;cd .&lt;/code&gt; and &lt;code&gt;cd ..&lt;/code&gt; can make your work on the computer much more efficient and productive.&lt;/p&gt;

&lt;p&gt;Thank you for reading this introduction to filepaths and the &lt;code&gt;cd .&lt;/code&gt; command. I hope it has helped you better understand how to navigate and access files on your computer. &lt;/p&gt;

&lt;p&gt;If you have any questions or comments, please feel free to leave them below. And if you're interested in learning more about technology and programming, you can connect with me on LinkedIn at &lt;a href="https://www.linkedin.com/in/olitreadwell"&gt;https://www.linkedin.com/in/olitreadwell&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What has been your biggest challenge when it comes to working with filepaths on your computer?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
