<?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: Preston "Brady" Adger</title>
    <description>The latest articles on DEV Community by Preston "Brady" Adger (@bradyadger12).</description>
    <link>https://dev.to/bradyadger12</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%2F1251825%2Fcbc8403f-e4b5-4325-8253-00834ddde9c3.jpg</url>
      <title>DEV Community: Preston "Brady" Adger</title>
      <link>https://dev.to/bradyadger12</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bradyadger12"/>
    <language>en</language>
    <item>
      <title>5 Tactics to Maintain Momentum Working From Home</title>
      <dc:creator>Preston "Brady" Adger</dc:creator>
      <pubDate>Sun, 18 Feb 2024 16:00:00 +0000</pubDate>
      <link>https://dev.to/bradyadger12/5-tactics-to-maintain-momentum-working-from-home-i0l</link>
      <guid>https://dev.to/bradyadger12/5-tactics-to-maintain-momentum-working-from-home-i0l</guid>
      <description>&lt;p&gt;We've all had days where we feel like &lt;em&gt;nothing&lt;/em&gt; can stop us. Our mind creeps into autopilot and we enter a flow state where our thoughts effortlessly spill out into our work. Then, there are the days when it feels like you're struggling to stay on task - fighting every step of the way. Why can't all of our days be like the former? I've curated a short list of ways that may help you tip your work day in your favor. &lt;/p&gt;

&lt;p&gt;This is a list of things I incorporate into my daily life that have helped me and is in no way based on an ounce of scientific research.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Easy tasks first
&lt;/h2&gt;

&lt;p&gt;You've eaten breakfast, drank your coffee, brushed your teeth, and now you've sat down to start your day feeling energized and ready to take on your toughest task of the day. An hour into the endeavor you've hardly made a dent; The eagerness and motivation you had to start the day have evaporated into thin air as you trudge your way through your assignment. I've been there far too many times. &lt;/p&gt;

&lt;p&gt;Picking up the heaviest part of today's workload without partaking in the mental warmup leaves you with a strained cerebrum. Kick off your day by tackling a couple of easier tasks to gain a bit of momentum and confidence to tackle the more challenging requests. Bonus points if you sandwich your hard tasks with easy ones. I'll elaborate on that later&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Lose the phone
&lt;/h2&gt;

&lt;p&gt;"Yeah dude, duh."&lt;/p&gt;

&lt;p&gt;I know, it's low-hanging fruit so I'll keep it short. Put your &lt;em&gt;dang&lt;/em&gt; phone in another room. Nothing kills your momentum quite like the buzzing, beeping, or flashing of your 8 GB pacifier. An innocent glance at a single Instagram reel turns into a 30-minute sidequest where there is no loot at the end. Do yourself a huge favor and remove your phone from your workspace. You can still hear calls from another room if it's important.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Create a morning routine
&lt;/h2&gt;

&lt;p&gt;Think of a snowball being pushed down a steep hill. Small and insignificant looking to begin, but with each roll gaining speed and menace. Being deliberate about your morning routine seems to create a similar effect. &lt;/p&gt;

&lt;p&gt;Whatever it may be; Brushing your teeth, making your bed, taking a cold shower, etc. Completing these everyday mundane morning engagements (in order) day in and day out gives you an early sense of achievement, a sense of "I've already gotten so much done today!". Let's see how long we can keep that snowball moving.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Take a break
&lt;/h2&gt;

&lt;p&gt;This one may seem counterintuitive as interrupting your workflow seems like a direct attack on keeping your momentum (if you're counting how many times I say '&lt;em&gt;momentum&lt;/em&gt;', quit it). I can see how it would initially look that way, but taking a mental break helps your brain recover from all of the work you just put it through. Powering your way through workload day after day will inevitably lead to burnout, which kills... &lt;/p&gt;

&lt;p&gt;you guessed it... &lt;/p&gt;

&lt;p&gt;&lt;em&gt;momentum&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;So, give yourself a break and go touch some grass.&lt;/p&gt;

&lt;h2&gt;
  
  
  Set yourself up for the next day
&lt;/h2&gt;

&lt;p&gt;This is where the easy task sandwich comes back into play. This one is my favorite tactic to keep the momentum going. You've executed the other 4 to perfection and you want to better your odds every day you sit down to work.&lt;/p&gt;

&lt;p&gt;End your day with another easy task, and queue up another for tomorrow.&lt;/p&gt;

&lt;p&gt;This is a great way to ensure you end your day with a positive attitude and a feeling of accomplishment, which I've found greatly indicates the mood in which I sit down to start working the next day.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Conclusion
&lt;/h2&gt;

&lt;p&gt;There are many ways to sustain momentum during your work week and these are just a handful of ways I've found success in doing so. If you find yourself struggling to keep the ball rolling, give these a try. Better yet, let me know some of your tactics!&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>howto</category>
      <category>programming</category>
    </item>
    <item>
      <title>Redesigning My Portfolio Website</title>
      <dc:creator>Preston "Brady" Adger</dc:creator>
      <pubDate>Mon, 05 Feb 2024 17:24:42 +0000</pubDate>
      <link>https://dev.to/bradyadger12/redesigning-my-portfolio-website-5289</link>
      <guid>https://dev.to/bradyadger12/redesigning-my-portfolio-website-5289</guid>
      <description>&lt;p&gt;4 years ago I created my first portfolio website.&lt;/p&gt;

&lt;p&gt;Here is the hero section.&lt;/p&gt;

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

&lt;p&gt;Now that you've finished laughing (and/or cringing), I had no clue what I was doing. I felt like I was improving my skillset as a developer, but did not have a single creative bone in my body to showcase. It was frustrating to iterate through different font sizes, typography, images, and layout, only to end up settling on something that you know looks mediocre. I couldn't seem to locate the right side of my brain.&lt;/p&gt;

&lt;p&gt;A few weeks ago I decided to revisit my unhosted portfolio page and completely overhaul it. Instead of building my page using Javascript's framework of the week, I would leverage Webflow and Figma.&lt;/p&gt;

&lt;h2&gt;
  
  
  Learning new tools
&lt;/h2&gt;

&lt;p&gt;Having never created a website using either of these tools, I searched for a course that could instill some confidence in this quest to create a page that doesn't make me completely unhirable.&lt;/p&gt;

&lt;p&gt;I purchased this course &lt;a href="https://www.udemy.com/course/freelance-web-design-from-design-to-development-to-making-money/"&gt;https://www.udemy.com/course/freelance-web-design-from-design-to-development-to-making-money/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I spent my afternoons learning the ins and outs of Figma design. I learned about concepts and techniques such as color matching, typography, visual hierarchy, cropping, contrast, unboxing, remixing, and much more. 90% of this information was completely new to me. Like a lot of engineers, we are handed designs, and are concentration is honed in on executing the design to pixel perfection, not creating the thing.&lt;/p&gt;

&lt;p&gt;I had never given much thought to design itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Creative
&lt;/h2&gt;

&lt;p&gt;Over the next week, I had committed much of my afternoons to practice the aforementioned techniques of web design, and to my surprise, I was improving rather quickly. It was like the iconic scene in The Grinch where his heart grew 3 sizes bigger. I think I could see the creative bone in my body beginning the grow. The course had given me tools (and a bit of confidence) that empowered me to make a visually appealing website on my own.&lt;/p&gt;

&lt;p&gt;By the end of the course, I had created a my design.&lt;/p&gt;

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

&lt;p&gt;I had done it.&lt;/p&gt;

&lt;p&gt;What seemed unattainable due to the limitations I put on myself, I had created a portfolio site that I was proud of. With the help of Midjourney, the hero section of the site was vastly improved. The only thing left to do was take this design and implement it in Webflow. I won't bog you down with the details of getting the web page created, as it was simple and fast due to the fact I've done a ton of front-end work. The amazing part was the entire process of creating the design and building the site took less than 7 hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;It's 2024. Designing a website has never been easier and will continue to become a non-issue with each passing day. That being said, learning the basics of good design will never go out of style as it rewires your brain as to what makes good design, and what design elements shape the story that you are trying to tell. Without this knowledge, it's easy to be frozen and always think 'How did they come up with that?'. Odds are that person thought the same thing when they were looking for inspiration for their next design venture. So if you think you are a non-creative, left-brained robot, odds are you just haven't found that creative bone yet.&lt;/p&gt;

</description>
      <category>design</category>
      <category>portfolio</category>
      <category>webflow</category>
      <category>website</category>
    </item>
    <item>
      <title>Making async requests simple</title>
      <dc:creator>Preston "Brady" Adger</dc:creator>
      <pubDate>Mon, 08 Jan 2024 18:14:35 +0000</pubDate>
      <link>https://dev.to/bradyadger12/making-async-requests-simple-48hi</link>
      <guid>https://dev.to/bradyadger12/making-async-requests-simple-48hi</guid>
      <description>&lt;p&gt;If you're a front-end web developer, you will inevitably run into the predicament of managing your asynchronous call workflow. You want to write clean code AND provide a seamless experience for the end-user.&lt;/p&gt;

&lt;p&gt;A single data fetch requires several variables to capture the various states of your request...&lt;/p&gt;

&lt;p&gt;1). The data being returned from the query.&lt;br&gt;
2). The state of the data fetch.&lt;br&gt;
3). Error handling.&lt;br&gt;
4). Pagination?&lt;br&gt;
5). Refetching of data if dependent variables change.&lt;/p&gt;

&lt;p&gt;The list goes on and on depending on the demands of the application. Add more than a single data fetch and your code can quickly spiral out of control with multiple variables and similar naming conventions.&lt;/p&gt;

&lt;p&gt;Enter Tanstack Query. TanStack Query is an asynchronous state management tool for various web frameworks, including popular ones such as Vue and React. Using the example of asynchronous querying, this lightweight library allows for a simple function call, passing your asynchronous request, and returning a SINGLE object. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;const fetchBlog = useQuery({&lt;br&gt;
 queryFn: () =&amp;gt; &amp;lt;async_call_to_fetch_blog&amp;gt;&lt;br&gt;
 })&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
The fetchBlog object now contains the essential goodies for rendering your component/page, such as fetchBlog.data, fetchBlog.isLoading, fetchBlog.refetch(), fetchBlog.error, and many other useless tools. You can also destructure the assignment to look like { data, isLoading, refetch, error }. Pair this with a state management tool of your choosing and your speed, efficiency, and clarity will soar!&lt;/p&gt;

</description>
      <category>react</category>
      <category>webdev</category>
      <category>typescript</category>
      <category>npm</category>
    </item>
  </channel>
</rss>
