A guide to getting unstuck as a developer
Tags: devhelp, webdev
Published: 2022-08-30 14:59:34

---
title: A guide to getting unstuck as a developer
published: true
date: 2022-08-29 22:46:40 UTC
tags: #devhelp #Webdev
canonical_url: https://devwithlanie.hashnode.dev/a-guide-to-getting-unstuck-as-a-developer
---

## Introduction

![nubelson-fernandes-CO6r5hbt1jg-unsplash.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1661811281430/Ci6ytWZio.jpg)

_image from unsplash.com by [Nubelson Fernandes](https://unsplash.com/@nublson)_

Did you know it's normal to get stuck as a developer?, even experienced developers do too. Writing code or programs is one thing, errors arising is another.

From a simple omission of one character or even misspelling of words, your code will indicate an error. This goes to show that errors can stem from the tiniest bit of mistake.

So what should you do when you get stuck? in this article we will cover:

- Types of errors
- Debugging and steps to debugging
- Helpful online communities to check out
- Tips to try when you get stuck

By the end of this article you should be able to:

- Identify errors
- explain and execute debugging

Let's get into it

### Identifying errors

![undraw_Warning_re_eoyh.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1661811125774/vyeUjJ8Iv.png)

Error prompts are ways in which an [integrated development environment (IDE)](https://www.ideglobal.org/) can display errors. The types of errors that can occur include:

**Logic errors:** In this type of error, your code or program will run but displays a wrong/unexpected output.

**Syntax errors:** This error occurs when your code doesn't follow the correct syntax or sequence of the programming language.

**Runtime error:** As the name implies, this error occurs during execution or running of your code/program.

Read more about errors [here](https://www.bbc.co.uk/bitesize/guides/zbssv9q/revision/2).

## What is debugging?

![undraw_bug_fixing_oc7a.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1661810781795/4PqtIEhVQ.png)

In simple terms it means getting rid of errors/bugs in a code/program. It involves identifying and fixing the error/bug. Usually IDEs e.g. [VScode](https://code.visualstudio.com/), come equipped with tools for debugging.

### Steps to debugging

**Identify the error** : Logically this should be the first thing to do - you can't solve a problem you can't find. There are several ways of identifying the error including:

![undraw_flagged_2uty.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1661810834451/u7ezaA-qh.png)

- Using the error prompt provided
- Using the console log by pulling up developer tools on the browser

**Locate the error** : After identifying the error you can locate it's position. The location of the error is usually stated on the error prompt.

![undraw_Current_location_re_j130.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1661811204592/YCiqziICl.png)

**Devise a means to fix the error** : This is where the real work comes in. Syntax errors are easier to fix. So what do you do when you can't think of anything?:

- Do a google search, you can copy the error prompt into the search bar. Chances are someone has encountered that issue before or there are similar issues already fixed. [A guide to searching effectively on google](https://www.freecodecamp.org/news/how-to-google-like-a-pro-10-tips-for-effective-googling/).

- Post the questions on **online Q&A communities** like [StackOverflow](https://stackoverflow.com/)- the most popular, [Quora](https://www.quora.com/), [Reddit](https://www.reddit.com/), [StackExchange](https://stackexchange.com/), and more. Be sure to follow their guidelines for posting questions and also be polite.

- For helpful contents you can also check [Freecodecamp](https://www.freecodecamp.org/), [MDN Docs](https://developer.mozilla.org/en-US/), [W3School](https://www.w3schools.com/), [Netninja](https://netninja.dev/), and more.

- Reach out to a senior developer or anybody more knowledgeable about the subject. Be polite, clear and concise with your approach.

**Apply the solution** : If you've figured out a solution, you can apply it. Then test the code/program out to be sure your solution works.

![undraw_fixing_bugs_w7gi.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1661810859988/cFlX7aAyR.png)

### Tips to try when you're stuck

- Take a break, do something else to clear your head, listen to music or whatever helps you relax.

- Reevaluate your goals, remind yourself about what you aim to achieve.

- Say your affirmations, if you don't have any then chant about your strengths and how you will overcome the problem

all these tips are garnered from developers who have been stuck too, it's worked for them and can be helpful to you too.

### Conclusion

You've learnt how to debug and what to do when you're stuck. You've also learnt about helpful communities to check out. Remember that you're not alone and it's an opportunity to learn more and grow.

When next you're stuck on a project be sure to use the steps and tips.

_if you have contributions to share please do so in the comments_
_all illustrations from Undraw.co_