5 Easy Hacks in Becoming a Better Developer
Tags: beginners, javascript, webdev, career
Published: 2019-08-15 08:41:31

###Hi Guys Good Day!

It's almost two years that I've become a web developer since I graduated from college. I learned a lot about how to prioritize my time in which problem to solve first, how to solve the most intimidating software problems that I haven't encountered and the importance of communication between teammates and sometimes doing nothing at all even the deadline is near cuz I'm lazy AF. I'm not comparing myself to anyone or something like that. I'm comparing myself to the programmer that I was 2 years ago. 



###1. Read and Understand Error Messages. 
I can't emphasize how important this is in becoming a better developer. So I'm gonna make an example for __JavaScript__ because of the reason that I always use this language.

```javascript
  const obj = { 
    a : 1
  };
  console.log(obj.b.a);
  //Uncaught TypeError: Cannot read property 'a' of undefined
```
The __Error__ object in __JavaScript__ has two properties __stack__ and __message__. 
The __stack__ tells you where in your code the error occurred.
The __message__ tells you why the error occurred.
These two are really helpful in how to solve the error problem so understand them. In our example, we're accessing a property __b__  which returns an __undefined__ value and we're accessing an __a__ property on that __undefined__ value. So obviously there's no __a__ property in an __undefined__ so it throws this error.
 

###2. Sometimes the answer is in the Docs and Read more code.
__Stack Overflow__ is a great place to find an answer to our problem but sometimes we can't find answers there so better check out the docs first they're really helpful and really informative. Reading other people's codes is a great thing because of the reason you have a chance to learn how other people think in what way or ways they solve a particular problem.

The best docs that I've read.
[React](https://reactjs.org/)
[Vue.js](https://vuejs.org/)
[Vue Router](https://router.vuejs.org/)
[Reach Router](https://reach.tech/router)
[Express.js](https://expressjs.com/)



###3. Ask Advice or Help with your Superiors or Senior Devs.
Don't be afraid to ask them questions. They have more experience than you so they know a lot and be respectful to them.


###4. Give time to Practicing. Improve your critical thinking.
Practice makes perfect. So they say. Let's face it solving a problem that you haven't encountered before is hard unless you're super smart or something. But the important part is that it makes you __think__ or __analyze__ in what ways you could solve the problem.  Divide a problem into multiple problems and make solutions for those multiple problems. Solve a problem like a __Lego Set__. Solve it piece by piece.

Go to one of these sites and try.
[Hacker Rank](https://www.hackerrank.com)
[Code Wars](https://www.codewars.com/)
[Free Code Camp](https://learn.freecodecamp.org/)
[JS Checkio](https://js.checkio.org/)

###5. Compete with Yourself.
Be a better programmer or developer today than you were yesterday. 
Don't be afraid to face new __Errors__.
Read more __Documentation__ and __Code__.
Learn from your __Seniors__ and respect them.
__Practice__ a problem for 30 mins a day. It will help you in the long run.

####Thanks guys for reading this post.

# Have a Nice Day :smiley:!.