<?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: chase</title>
    <description>The latest articles on DEV Community by chase (@chasehuber).</description>
    <link>https://dev.to/chasehuber</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%2F989806%2Fb34ecc1f-dde6-4360-bd1a-4d9079afe21f.jpeg</url>
      <title>DEV Community: chase</title>
      <link>https://dev.to/chasehuber</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chasehuber"/>
    <language>en</language>
    <item>
      <title>The easiest way to have consistent looking code</title>
      <dc:creator>chase</dc:creator>
      <pubDate>Mon, 06 Mar 2023 02:13:41 +0000</pubDate>
      <link>https://dev.to/chasehuber/the-easiest-way-to-have-consistent-looking-code-2aa0</link>
      <guid>https://dev.to/chasehuber/the-easiest-way-to-have-consistent-looking-code-2aa0</guid>
      <description>&lt;p&gt;One of the hardest things for me as a programmer with terrible ADHD is making sure that my code always looks clean and consistent. I &lt;em&gt;hate&lt;/em&gt; finishing a project and then having to go back and make all of the code look pretty, it's like torture to me. But now, I can leave all of that pain in the past. Introducing the newest extension to my VSCode roster... &lt;a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode"&gt;Prettier&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Allow me to explain what this amazing extension does. Let's say you have some code that just looks... messy. No shame in it, we all write ugly code from time to time. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Oxw4Jq63--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rpfeagt97vydh9v0wccr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Oxw4Jq63--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rpfeagt97vydh9v0wccr.png" alt="ugly code example" width="850" height="640"&gt;&lt;/a&gt;&lt;br&gt;
See? That's pretty disgusting looking if you ask me. Now you could go back and format that all by hand, wasting precious time, or you could just relax and let Prettier do it for you. By just pulling up your command palette and looking for the "Format Document" option, you can pick Prettier as your formatter and make this document look... prettier. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--czGVkfzG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6fpcjv3h1m2b2y682dxm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--czGVkfzG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6fpcjv3h1m2b2y682dxm.png" alt="pretty code example" width="850" height="496"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Prettier is highly customizable and has add-ons out there for a multitude of programming languages, including PHP, Ruby, JavaScript, HTML, CSS, Tailwind, etc. You can also have Prettier format your code every time you save if that's something you're interested in. If you're interested in other great VSCode extensions, you should absolutely check out &lt;a href="https://dev.to/chasehuber/some-helpful-extensions-for-beginners-in-vs-code-54c6"&gt;my other blog post&lt;/a&gt; that talks about some of my favorites. Hopefully this extension saves you millions of hours of frustration, as it has done for me.&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>beginners</category>
      <category>productivity</category>
    </item>
    <item>
      <title>A Short Intro to Doubly Linked Lists</title>
      <dc:creator>chase</dc:creator>
      <pubDate>Mon, 13 Feb 2023 00:33:45 +0000</pubDate>
      <link>https://dev.to/chasehuber/a-short-intro-to-doubly-linked-lists-16mk</link>
      <guid>https://dev.to/chasehuber/a-short-intro-to-doubly-linked-lists-16mk</guid>
      <description>&lt;p&gt;Every single day, there is a programmer who is struggling with mountains of data and the proper way to organize it all. If only there were efficient ways to organize and sort all of this data so that they could access it and use it in a meaningful way... Lucky for us, computer scientists have figured out ways to do this using &lt;strong&gt;Data Structures&lt;/strong&gt;. There are a lot of different types of data structures, but today I'm writing about a really simple one. Introducing, the doubly linked list (written in Ruby).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn1ggbmgzecaf4wriy6dh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn1ggbmgzecaf4wriy6dh.png" alt="linked list code in ruby" width="704" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Okay, okay, I'll admit that it doesn't really look like anything special right now, but allow me to explain what this data structure is. A doubly linked list is a structure made up of nodes. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fekyflnu98a97hxatlvh0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fekyflnu98a97hxatlvh0.png" alt="node code" width="660" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each of these nodes contains a link to the previous node, the data stored within the current node, and a link to the next node. Please, have a look at this diagram I've made. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9qc2v7aq9h97pnutc6o2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9qc2v7aq9h97pnutc6o2.png" alt="linked list diagram" width="660" height="150"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My amazing art skills aside, this is what a very short doubly linked list would look like if we made it into a tangible object. The start of a linked list (also called the head) has a previous value of nil and the final node in the linked list (also called the tail) has a next value of nil. I will now show you a basic method for creating a new item in our linked list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9zvpsqitvnuxac1d7g9l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9zvpsqitvnuxac1d7g9l.png" alt="linked list push method" width="692" height="604"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This function starts by creating a new Node object with whatever data you have being passed into it. If this linked list is empty, this brand new node becomes the head and the tail of our list. Now, if there are already nodes in the list, it will simply make your new node the tail of the list and increment the list length by one.&lt;/p&gt;

&lt;p&gt;Now, I'm not going to go over all about traversing linked lists and other methods you can create in this blog post, but this has just been a very basic overview of a doubly linked list. Hopefully you're able to get some use out of this data structure.&lt;/p&gt;

</description>
      <category>gratitude</category>
    </item>
    <item>
      <title>What the heck is Tailwind CSS and should I use it?</title>
      <dc:creator>chase</dc:creator>
      <pubDate>Sun, 22 Jan 2023 23:27:10 +0000</pubDate>
      <link>https://dev.to/chasehuber/what-the-heck-is-tailwind-css-and-should-i-use-it-557d</link>
      <guid>https://dev.to/chasehuber/what-the-heck-is-tailwind-css-and-should-i-use-it-557d</guid>
      <description>&lt;p&gt;Before I started at Flatiron School, I had to learn three different programming languages, JavaScript, HTML, and (my least favorite) CSS. I &lt;em&gt;hate&lt;/em&gt; working with CSS, it's super annoying, naming classes is hard, and I always end up with a really ugly and bloated css file at the end of a project. There was no way I could possibly keep working with it, so I decided to go out and find a better way. While there are a lot of CSS frameworks out there that could solve this problem, today I'll be writing about one I've been messing with - Tailwind.&lt;/p&gt;

&lt;p&gt;On the &lt;a href="https://tailwindcss.com/" rel="noopener noreferrer"&gt;official Tailwind website&lt;/a&gt; they describe the framework as "a utility-first CSS framework" that you can use "directly in your markup". After I read a little bit and watched a couple of videos, I knew that I had to give this a shot. Tailwind offers a lot of customization with lots of pre-built utility classes, which would make your HTML look something like this; &lt;code&gt;&amp;lt;h1 class="text-green bg-gray-100 font-mono"&amp;gt;Hello world!&amp;lt;/h1&amp;gt;&lt;/code&gt;. This doesn't produce anything super detailed, just green text with a gray background in a monospaced font.&lt;/p&gt;

&lt;p&gt;Now you may be asking yourself "Chase, is this amazing framework compatible with a component-based JavaScript framework? How about React?" The answer is yes, I'll even walk you through a quick installation guide (that can also be found &lt;a href="https://tailwindcss.com/docs/guides/create-react-app" rel="noopener noreferrer"&gt;here&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;First, using create-react-app, you want to create a new React app like so &lt;code&gt;npx create-react-app tailwind-project&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Next, change into your new project directory and install TailwindCSS using the following command &lt;code&gt;npm install -D tailwindcss&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now that we have Tailwind installed, we need to initialize the configuration file with &lt;code&gt;npx tailwindcss init&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Navigate into the new file called tailwind.config.js and make the following changes:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6bdv87ay258fcq21sgd3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6bdv87ay258fcq21sgd3.png" alt="making changes in our tailwind config file" width="778" height="532"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally, navigate into your index.css file and make these changes as well: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq72c24jrxzz28zyi0qwt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq72c24jrxzz28zyi0qwt.png" alt="making changes in index.css" width="444" height="244"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And next time you use &lt;code&gt;npm run start&lt;/code&gt;, you can make your new project beautiful with the power of Tailwind! Hooray! Here's a little example of a hello world item in Tailwind and the code that goes along with it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzedgn0dkgnh52sir9ay9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzedgn0dkgnh52sir9ay9.png" alt="tailwind hello world example" width="800" height="275"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm32ebtb8mikt2cs7ctsi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm32ebtb8mikt2cs7ctsi.png" alt="tailwind hello world code" width="800" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
    </item>
    <item>
      <title>Some helpful extensions for beginners in VS Code</title>
      <dc:creator>chase</dc:creator>
      <pubDate>Fri, 23 Dec 2022 02:47:31 +0000</pubDate>
      <link>https://dev.to/chasehuber/some-helpful-extensions-for-beginners-in-vs-code-54c6</link>
      <guid>https://dev.to/chasehuber/some-helpful-extensions-for-beginners-in-vs-code-54c6</guid>
      <description>&lt;p&gt;Now I'm gonna start this blog post off by clarifying one thing; I am no expert in writing code or the best way to write it, not yet at least. That being said, I'm going to write about a couple of extensions that I have personally found helpful or useful for working in VS Code. If you find any of the following extensions helpful or have any you would like to suggest, please write a comment and let me know!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CodeSnap by adpyke&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Link to extension: &lt;a href="https://marketplace.visualstudio.com/items?itemName=adpyke.codesnap" rel="noopener noreferrer"&gt;https://marketplace.visualstudio.com/items?itemName=adpyke.codesnap&lt;/a&gt;&lt;br&gt;
Extension ID: adpyke.codesnap&lt;/p&gt;

&lt;p&gt;One thing that has always annoyed me when trying to share snippets of code with people has been how ugly it looks and how certain messaging apps can mess up the formatting. CodeSnap is an extension that aims to fix these two issues. Simply highlight your code, right click it, and click on the "CodeSnap" option and it will generate a beautiful screenshot of your beautifully written code.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;An example of a CodeSnap screenshot:&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0x26mzbr757c9476g5bc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0x26mzbr757c9476g5bc.png" alt="CodeSnap example image" width="748" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And would you look at that? It's a wonderful screenshot of a function I wrote for a code challenge earlier today. If for some reason you don't like the look of these screenshots, you can always go into your settings and change pretty much everything about the way your screenshots look. Happy code sharing!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Better Comments by Aaron Bond&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Link to extension: &lt;a href="https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments" rel="noopener noreferrer"&gt;https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments&lt;/a&gt;&lt;br&gt;
Extension ID: aaron-bond.better-comments&lt;/p&gt;

&lt;p&gt;Earlier today I was working on a code challenge for my classes with Flatiron School and I had a remarkable discovery. Regular comments in my code looked pretty lame. For me, trying to read my code amongst a sea of green sentences that described what I needed to do and what I had done just wasn't working. Here is where Better Comments comes in to save the day.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Better looking comments already&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmvtpyqtppu7hr8z7373p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmvtpyqtppu7hr8z7373p.png" alt="Better Comments examples" width="547" height="163"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With just a few symbols and color changes, comments suddenly become a whole lot easier to read and work with. For me, associating the colors with levels of importance really improves how I do work anywhere. Just like CodeSnap, if you don't like the way these colors look or the symbols used, this is all fully customizable. &lt;/p&gt;

&lt;p&gt;You may currently be asking yourself; "Why didn't this genius just use CodeSnap for that example screenshot?" and that is totally a fair question. I tried using CodeSnap, but unfortunately the colors wouldn't show up with that extension, and I'm sure if someone doesn't have this extension their comments will look boring too. But this is about your workflow, not someone else, so does that really matter?&lt;/p&gt;

&lt;p&gt;Those are just two of the extensions I have found that have already helped me with some of my work. I'm sure there are more for me to find and I'm actively looking for any way to help get my programming done more efficiently. These are already being put to work on some fun side projects I'm working on, those may turn into future blog posts. If you have any suggestions for extensions, or have found either of these to be useful, please leave a comment! Happy coding!&lt;/p&gt;

</description>
      <category>gratitude</category>
    </item>
  </channel>
</rss>
