A brief about JavaScript, clean code, and unit testing

Search for a command to run...

Thank you ๐
Thanks, Jennifer Openshaw. I see you are documenting your progress from a Bootcamp too. Cheers!
Nice Post! Keep going and the motivation will come. Most poeple think we need motivation to start something but its the other way around: The motivation will come while we doing stuff.
And here is a JS Repo with some questions: https://github.com/lydiahallie/javascript-questions#readme Some of them are quite hard but its fun!
Thanks, Dany Tulumidis I totally agree with you. do stuff-get motivated-do stuff. It's a cycle. Also thanks for sharing the repo. It's really helpful.
I took the challenge of writing a blog every week. I will write about the things I learned throughout the week, the resources I used, the ups and downs, and the whole process of learning.
The thing with JavaScript is that it takes a week to learn the basics but ages to understand it completely. Even though I have worked with JavaScript a lot, I still get stuck and feel uncomfortable sometimes. So this week I decided to dive deep into ...
2022 was a year full of learnings for me. It was about solving problems, lots of iterations, making solid fundamentals, and growing up as a person. Even though it feels like this year went really fast and I have a very vague memory of it, this is my ...

Finally, the wait is over. Last year I built and launched Tabwave, a mindful productivity chrome extension that replaces your browser's new tab. It has been my passion project for a long time. And now it has become even more mindful and beautiful. Af...

The modern web has evolved over the years with new tools and technologies. We are introduced to new approaches to rendering websites and apps. With the rise of frameworks like NextJs and Remix, SSR has gained a lot of popularity in the last few years...

If you are following me for a while you know I love building side projects. And every time I decided to build one, I didn't know how it will turn out in the end. But one thing is for sure, it all started with a half-baked idea. half baked idea? what...

Did you know you can create GraphQL APIs within minutes without writing a single line of code? Well, I didn't. Thanks to the Hasura X Hashnode hackathon. Now I know and so you will. Hi there, In this blog post I will talk about why and how I built a ...

๐ Hey everyone. Welcome back.
It's week 2 of my #12weeks12blogs challenge. And I must say it's not easy to stay motivated all the time. I realized the importance of knowing your next move. Discipline is hard. So I spent an entire day thinking, planning, and digging my bookmarks of resources, to create an ultimate plan based on my goals.

It's weird. The same topics when you revisit after a long time, you understand a lot differently. You get a new perspective and lots of ' Oh, so this is how it works' moments.
This week I revisited DOM and it's basic concepts like
And made a simple app that counts characters, words, and estimates reading time while typing. It was super easy and fun. You can see it live here.

One good thing I observed was how I was coming up with better solutions every time. It's a big win. And that brings me to the importance of writing clean code.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler
Even the bad code works well. Then why should I care about writing clean code? It's simple. Clean code is easy to understand, change, and maintain. If you want to be a good programmer, clean code is important. I went through the code I wrote a year ago and now I know. When I first heard about clean code, I thought it's just indenting the code well. But it's way more than that. Here are a few things I learned about clean code.
It will take some time and practice for me to write clean code. It's an iterative process of learning and improving. Clean Code by Robert Martin is next on my reading list. But for now, this repo is enough to get started.
Testing is simply checking if our code is working right or not. And unit testing is a technique where we divide our code into small isolated units and then write tests to check if the unit works as expected.
I explored Jest, a popular JavaScript testing framework, and wrote my first unit test. The jest docs are pretty good. And this series on the unit testing by fun fun function is too good. Testing is an important aspect of software development and I will definitely dive deep into it in the nearby future.
So far it's been a great start for me, and I am very excited to learn more in the upcoming weeks.
Thread of the week:
I keep writing about the things I learned and applied. So you can connect with me on Twitter, Github or Linkedin. Also, subscribe to my newsletter and stay up-to-date with my latest blog posts.
โก Happy Learning!