Photo by Markus Spiske on Unsplash

For every software engineer, when writing code, there should be a balance of efficiency, style, and implementation of features. But what happens when the latter takes the precedent over efficiency? Well, the short answer is you have code that looks good but perhaps doesn’t work all that well. Granted when I write code the first thing on my mind is to make it work. Once I’ve crossed that bridge, I look to enhance performance. Let’s take a look at one JavaScript feature and see an example of how it could make your code less performant.

Default Parameters

Default parameters were introduced in…


Photo by NESA by Makers on Unsplash

TypeScript: The Developer’s Tool

If you’re new to TypeScript, beware, it’s not without its critics. Just two years shy of being 10 years old, it’s been around long enough for opinions to have been formed down both sides of the isle. Some champion it, yet others are still not convinced of the weight of its benefits. This article will give a quick overview of three areas in which I believe TypeScript helps engineers at all levels to do their jobs better. And it answers the question as to why the hell anyone would want to add static typing to a dynamically typed language.

Those…


kids eating spaghetti
kids eating spaghetti
photo credit https://dailyhive.com/vancouver/kid-friendly-restaurants-vancouver-2019

What are servers?

If you Google “what are servers” a wiki page will pop up and have this to say:

In computing, a server is a computer program or a device that provides functionality for other programs or devices, called “clients”.

The client is typically another computer but can refer to the person using the other computer as well.

How do servers help us?

Servers are used to handle requests from the client. They do this through APIs.

What does API stand for? “Application Program Interface” (API)

What are APIs?

A quick Google search will give us another wiki stating that:

An application programming interface is a computing…


Micro-service trials and tribulations

SAM-MongoDB-Go[pher]

Do you like not having a reference to build something? As well known as these three technologies are, I was hard-pressed to find another article demonstrating a model of them working in tandem. In fact, I didn’t find one. So, I gave birth to this one!

I wanted to start the New Year with a new language. I also wanted to document some of the things that I learned along the way. This article is more about explaining what I did to get Go running locally and my experience developing locally with SAM, Go, and the Mongo driver. I will…


Since I have never used XML before for storage and transferring data, I figure that there would be others who find themselves scratching their heads the same way that I did here recently, when asked to take and XML document, parse it, and ingest it to a database of some sort.

To clarify eXtensible Markup Language (XML) is similar to HTML but with the design to store and transport data. With that being said let’s first examine some of the differences that make XML. …


Log into your AWS account and go to EC2. You’ll know you’re in your EC2 dashboard if you see something like this:

EC2 Dashboard

We’re going to launch a new EC2 instance, so click that blue button labeled “Launch Instance”. Once there, you will see a list of different machine images. Let’s chose the Ubuntu Server 18.04 LTS. Why, cause I like the Ubuntu distribution and it’s eligible for the free tier. 😉


This is Part I of a two part series of how to build and deploy Dockerized applications. In this article you will see a breakdown of the Dockerfile and how to use Docker Compose on a simple application. We will run the app locally and in Part II, we’ll stand it up in the cloud using AWS EC2.

Before we get started:

It assumes that you have Docker installed on your machine, if you don’t check here. You can follow this tutorial with only Docker installed but for the first step you will need Node.js. If you don’t have it get it here. …


React

The What…

I am working on a new e-commerce site and I wanted to share some of the things that I learned and put to use for this project. First, there are plenty of docs and talks about both subjects of this post. However, I will demonstrate how I used React’s context-api and code-splitting, a.k.a. lazy loading, together to create a modal that I will later flesh out to serve a higher purpose. This blog serves to be a reminder to myself of what I learned and is as a tutorial on how to get the two things working.

The Why…

I want to…

Naeem Gitonga

Cloud Engineer

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