<?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: Benjamin H</title>
    <description>The latest articles on DEV Community by Benjamin H (@benjaminh).</description>
    <link>https://dev.to/benjaminh</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%2F1158653%2Ff1af2a18-f458-4459-93da-ab6ce2368c66.jpeg</url>
      <title>DEV Community: Benjamin H</title>
      <link>https://dev.to/benjaminh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/benjaminh"/>
    <language>en</language>
    <item>
      <title>"Uncaught SyntaxError: Unexpected token '.'" Explained</title>
      <dc:creator>Benjamin H</dc:creator>
      <pubDate>Wed, 03 Apr 2024 14:37:57 +0000</pubDate>
      <link>https://dev.to/benjaminh/uncaught-syntaxerror-unexpected-token-explained-46fc</link>
      <guid>https://dev.to/benjaminh/uncaught-syntaxerror-unexpected-token-explained-46fc</guid>
      <description>&lt;p&gt;Have you ever encountered the cryptic error message "Uncaught SyntaxError: Unexpected token '.'" while working with JavaScript code? If so, you're not alone. This error can be perplexing, especially for those new to programming. I'm going to briefly explain what this error means.&lt;/p&gt;

&lt;p&gt;The error message "Uncaught SyntaxError: Unexpected token '.'" typically occurs in JavaScript when the interpreter encounters a period (".") where it wasn't expecting one. This usually happens when there's a syntax error in your code. Here's what each part of the error message means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Uncaught": This indicates that the error was not caught by a try...catch block, meaning it wasn't handled by your code.&lt;/li&gt;
&lt;li&gt;"SyntaxError": This indicates that there is a problem with the syntax of your JavaScript code.&lt;/li&gt;
&lt;li&gt;"Unexpected token '.'": This specifies that the interpreter encountered a period (".") unexpectedly. It expected something else in that position based on the JavaScript syntax rules.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here are some common scenarios where you might encounter this error:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Missing or misplaced punctuation: If you forget a semicolon or use incorrect punctuation in your code, it can lead to unexpected tokens.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Incorrect use of dot notation: Using dot notation (e.g., object.property) incorrectly can also trigger this error. For example, if you try to access a property on an undefined or null object, it will result in an "Uncaught TypeError" rather than a "SyntaxError," but in some cases, dot notation can be involved in a syntax error.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Incorrectly formed expressions or statements: Writing expressions or statements incorrectly can lead to syntax errors. For example, using a dot (".") in a place where it's not allowed, such as at the beginning of a line or as part of an identifier name, can cause this error.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To fix this error, carefully review the line of code mentioned in the error message and check for any syntax mistakes, such as missing or misplaced punctuation, incorrect use of dot notation, or improperly formed expressions or statements.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>App Ideas to Build and Monetize</title>
      <dc:creator>Benjamin H</dc:creator>
      <pubDate>Fri, 29 Sep 2023 20:41:55 +0000</pubDate>
      <link>https://dev.to/benjaminh/app-ideas-to-build-and-monetize-mgo</link>
      <guid>https://dev.to/benjaminh/app-ideas-to-build-and-monetize-mgo</guid>
      <description>&lt;p&gt;I've been thinking about developing apps that I can monetize while learning to code. Thanks to the internet and ChatGPT, I came across some interesting ones and decided to share. With some of these you can just build an MVP (Minimum Viable Product) or a Single-Feature app depending on your level of expertise. You can also try collaborate with other developers because working alone is not easy if you're building a comprehensive app.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Task Management App:&lt;/strong&gt; Create a user-friendly task management app with features like to-do lists, project management, and reminders. You can offer a free basic version and charge for premium features such as team collaboration and advanced reporting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Weather App:&lt;/strong&gt; Develop a beautiful and accurate weather app that provides real-time weather forecasts, radar images, and weather-related news. You can monetize it through ads or by offering a premium, ad-free version.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Recipe Finder and Meal Planner:&lt;/strong&gt; I know my wife would love this one. Build an app that helps users find recipes based on ingredients they have on hand, plan their meals, and generate shopping lists. You can earn money through affiliate marketing with grocery stores and premium recipe packs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Language Learning App:&lt;/strong&gt; Create an interactive language learning app that teaches users new languages through games, quizzes, and lessons. Offer a freemium model with basic lessons for free and charge for more advanced content.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Fitness Tracking App:&lt;/strong&gt; Design a fitness app that allows users to track their workouts, set fitness goals, and monitor their progress. Monetize it by offering premium workout plans and personal coaching services.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. E-commerce Product Comparison Tool:&lt;/strong&gt; Build a tool that lets users compare prices and features of products across multiple e-commerce websites. You can earn affiliate commissions for purchases made through your app.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. Travel Planner and Itinerary App:&lt;/strong&gt; Develop an app that helps travelers plan their trips, book accommodations, and create detailed itineraries. Partner with travel agencies or hotels for commissions on bookings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8. Pet Care App:&lt;/strong&gt; Create an app for pet owners to track their pets' health, set reminders for vaccinations, and connect with local veterinarians and pet stores. You can generate revenue through partnerships with pet-related businesses.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9. Budget and Expense Tracker:&lt;/strong&gt; Design an app that simplifies personal finance management by allowing users to track expenses, create budgets, and set financial goals. Offer premium features like investment tracking and financial advice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10. Virtual Event Platform:&lt;/strong&gt; In the age of remote work and online events, develop a platform for hosting virtual conferences, webinars, and trade shows. Monetize it through event ticket sales, sponsorships, and premium features like virtual exhibition booths.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;11. Online Portfolio Builder:&lt;/strong&gt; Create a tool for individuals and businesses to easily build and customize their online portfolios or websites. Offer premium templates and hosting services.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;12. Mental Health and Well-being App:&lt;/strong&gt; Develop an app that provides mental health resources, meditation guides, and mood tracking features. Monetize it through subscription-based access to premium content and therapy services.&lt;/p&gt;

&lt;p&gt;The idea with these ideas is to learn with the hope that what you produce while learning can possibly evolve into becoming something viable enough to go to market instead of just having it in your portfolio for job prospects. There's really no harm in learning while trying to make some extra cash.&lt;/p&gt;

&lt;p&gt;If you have any other idea please feel free to share here. If you would like to collaborate on some projects, please hit me up. I'm sure there's a lot we can learn from each other.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>development</category>
      <category>business</category>
      <category>ideas</category>
    </item>
    <item>
      <title>Learn to take breaks!</title>
      <dc:creator>Benjamin H</dc:creator>
      <pubDate>Thu, 14 Sep 2023 15:45:34 +0000</pubDate>
      <link>https://dev.to/benjaminh/learn-to-take-breaks-3f81</link>
      <guid>https://dev.to/benjaminh/learn-to-take-breaks-3f81</guid>
      <description>&lt;p&gt;In my journey as a developer I've realized that it's important to take breaks, especially after every small win within your code blocks, testing and debugging. Breaks personally help me think better. Go outside and inhale some fresh air, make a cup of coffee, drink water or take a pee, etc. You get my drift!&lt;/p&gt;

&lt;p&gt;Coding is hard and mentally demanding. As developers we often want to keep going until we feel extremely exhausted but this habit can take a toll on you if you don't take regular breaks. I've learnt this the hard way. I've been so burnt out to the point I felt like "may be I should just choose another career". Giving up becomes an easy temptation when you're too hard on yourself.&lt;/p&gt;

&lt;p&gt;I'm learning that taking breaks:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Reduces stress&lt;/li&gt;
&lt;li&gt;Prevents burnout&lt;/li&gt;
&lt;li&gt;Improves health&lt;/li&gt;
&lt;li&gt;Enhances creativity&lt;/li&gt;
&lt;li&gt;Boosts productivity&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Breaks while coding are not a sign of being unproductive but a strategic move to sustain your performance. Always remember why you first started on this path and lock your eyes on the vision while being patient with yourself because "Rome wasn't built in a day!". &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>productivity</category>
      <category>tips</category>
    </item>
    <item>
      <title>Root level logger middleware should be active</title>
      <dc:creator>Benjamin H</dc:creator>
      <pubDate>Wed, 13 Sep 2023 21:22:01 +0000</pubDate>
      <link>https://dev.to/benjaminh/root-level-logger-middleware-should-be-active-2b74</link>
      <guid>https://dev.to/benjaminh/root-level-logger-middleware-should-be-active-2b74</guid>
      <description>&lt;p&gt;If you're doing the Backend-Dev freeCodeCamp course like myself there's a possibility that you came across the error "Root level logger middleware should be active" on the Basic Node and Express track. &lt;/p&gt;

&lt;p&gt;This error got me scratching for hours and I just want to help someone experiencing it only because the hint is missing spaces in the string formatting example. &lt;/p&gt;

&lt;p&gt;Make sure to have spaces between the dash and req.path and req.ip in your root-level request logger middleware, like this  &lt;strong&gt;console.log(req.method + " " + req.path + " " + "-" + " " +req.ip)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I hope this helps.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Is Frontend Dev Enough?</title>
      <dc:creator>Benjamin H</dc:creator>
      <pubDate>Mon, 11 Sep 2023 20:01:25 +0000</pubDate>
      <link>https://dev.to/benjaminh/is-frontend-dev-enough-34d9</link>
      <guid>https://dev.to/benjaminh/is-frontend-dev-enough-34d9</guid>
      <description>&lt;p&gt;As a frontend developer, I've spent countless hours trying to develop beautiful user interfaces, ensuring seamless user experiences, and diving deep into the intricacies of HTML, CSS, and JavaScript.&lt;/p&gt;

&lt;p&gt;Frontend development has been my passion, and my creative outlet. But lately, I find myself pondering a question that many in the field may have also asked themselves: Is frontend development enough, or should I learn backend development too?&lt;/p&gt;

&lt;p&gt;I can never undermine frontend dev, considering that the skills required for frontend development are essential, diverse and ever-evolving. However, my struggle is with the curiosity that I often have regarding what happens behind the scenes. I'm intrigued by the idea of handling server-side logic, databases and APIs.&lt;/p&gt;

&lt;p&gt;As a frontend developer, sometimes backend development seems like a mystery. I feel like a waiter in a restaurant, eager to know how the food I serve is prepared in the kitchen.&lt;/p&gt;

&lt;p&gt;In a sense I feel limited, especially when dealing with complex data-driven applications. This realization has led me to question whether learning backend development could enhance my skillset and career prospects.&lt;/p&gt;

&lt;p&gt;What are your thoughts on this?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>frontend</category>
      <category>backend</category>
      <category>career</category>
    </item>
  </channel>
</rss>
