Person typing on laptop
Person typing on laptop
Image from

Problem solving is a huge part of computer science. In fact computer programming is basically the process of solving a problem with code. These problems are solved by means of algorithms. An algorithm is a step by step instruction to solve a problem.

We implement algorithms in many aspects of our lives even without knowing it. For example if I wanted to make a cup of tea, I would take the following steps.

  1. Walk to the kitchen
  2. Find the electric kettle
  3. Grab the electric kettle
  4. Walk to the sink
  5. Fill the kettle with water to capacity
  6. Boil the water to 100…

A comprehensive introduction to functions in JavaScript.

Image for post
Image for post
Image from

Functions are a very important concept in JavaScript. Functions can be compared to building blocks. So Understanding them is one step toward true JavaScript mastery. In this article i am going to go over the basics of functions.

What is a Function?

Think of functions as vocabulary in human language. Different vocabularies help us to avoid repeating the same words. For example, Instead of saying “human being between the age of 13 and 19”. You can use one vocabulary, teenager. That gives you the freedom to use the word teenager to form different sentences without having to confuse yourself.

Functions follow a similar pattern, they allow us to wrap a whole program into one single expression. We can then call this expression our new vocabulary. We can then use it anywhere in our program to do different things. …

Reflections on 365 days of being a programmer

Image for post
Image for post
Photo by Devon Divine on Unsplash

So, yes, it’s official, I’ve been coding for one year now. I must say, this has been one of the most challenging years of my life. I’ve hit my head on the wall countless times, learned and accomplished a lot in the past year.

In this article, I am going to share seven tips based on the challenges I’ve faced and the things I’ve learned along the way.

Disclaimer: This is not going to be one of those “I wake up at 4 a.m. every day, switched careers in three to six months while coding at least 12 hours a day” articles. …


Joel P. Mugalu

JavaScript Developer. Self Learning Full Stack Web Development. Connect with me on Twitter @joelpmugalu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store