A quick introduction into what pointers are, why they exist & how to use them

Image for post
Image for post

Arguably one of the more complicated aspects of any low level programming language is the subject of pointers. If you’ve ever struggled with the concepts behind them and how they work, you’re not alone!

I first became fully aware of pointers when I was working on an embedded C project using Atmel chips. There, memory was tight and I had to use it sparingly. It was a great introduction into the benefits of using pointers.

What problem do they solve?

When computers run code, they pass around variables like ints, floats, strings and structs by value at runtime. …

A quick, hands-on introduction into Docker and containerization.

Image for post
Image for post

In this Article, we’ll go over what the tool is, what purpose it serves as well as working through an example to containerize a simple python application.


What is it

Docker is a tool to pull together a set of resources for your application to run anywhere. …

A quick guide on how to get up and running locally using Docker-compose.

Prometheus, deity of fire, wonders if it was all worth it
Prometheus, deity of fire, wonders if it was all worth it
Credit: public domain

If you’ve made it here you probably already have an app that you want to add some metrics to and have displayed. This is a good idea, mainly because:

  • Having to kubectl into the pod all the time to ascertain how your apps performing can be a pain.
  • It’ll impress the project manager with some fancy graphs.
  • You can quickly see what's going on in your app when sysadmin won’t give you access to the DB (probably for the best).

Note: Prometheus is for logging metrics, or in other words, numbers. The four types of metrics available; Counter, Gauge, Histogram and Summary only take numbers as parameters, try putting in anything else and it’ll throw an error. This may seem obvious but if you want to get the most popular searched item for example, then I’d suggest using the ELK stack instead. …

How to connect data being distributed via a web-socket to Kafka and then onto an S3 bucket.

Image for post
Image for post

If you’ve made it here you’ve probably exhausted stack-overflow and just want to know how to stream data into an S3 bucket. Fear not, the code is included below.

But first, a couple of helpful resources (other than stack-overflow) that i came across on my quest for real-time data storage.

  1. The Confluent Slack group: You may have to put up being bombarded with sales emails but the first hand help you’ll get to specific problems is second to none.
  2. If you’re completely unfamiliar with Kafka then do check out this Medium post for a good intro. …



Software Engineer, Architect and General Polyglot

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