LATEST POSTS

All about classes in python

Classes are great when you’re working with concepts in the real world. They are by no means a necessary construct in Python, they’re mostly used for code simplification, readaibility and reusability. We’ll walk through some […]

Django: File uploads in forms

There are so many usecases where you’ll want to be able to upload a whole bunch of files to a website at once and yet, there isn’t really a well documented way to do it. […]

Building an app in Django: the login

I’ve spoken in depth about getting Django ready to use in this article, so I’m not going to go through the general setup commands in too much detail. Suffice to say, once you’ve got your […]

An in depth look at Django

In Django, we have a few concepts. We have projects, apps, views, models, templates and a few more bits and bobs. In this article, I want to go through  Django Project App Views.py Models.py Templates […]

A guide to using templates in django

In Django, we have a few concepts: URLs, Views and Templates (models too, but we’ll talk about them in a future article). You can think of the flow like this: User requests a particular web […]

Getting django setup and ready to use

I am not the biggest fan of sys admin kind of tasks – I really just want an environment that works so that I can get to work. So when it came to installing a […]

Saving data to MySQL in Golang

Of course, when we’re doing our data analysis reading from and writing to a database is super important. In this article, I am going to cover how we do that with MySQL. We’ll start at […]

The basics of threading in Python

If you’re a frequent reader of my website, you’ll know that I’ve been doing a lot with Golang recently.. like, a lot and it got me thinking about how easy concurrency is in Golang and […]

Golang: Getting started with dataframes

In this article, we’re going to look at the qframe library to bring CSV data into a dataframe for simple data wrangling. This file: Imports the relevant packages Defines the file we are going to […]

Golang: Go-routines and channels

Typically, if we ran a loop through a number of items, they happen serially (one after the other). But, something cool about Golang is the ability to run Go Routines. We have the main routine […]

Golang: the HTTP module for get requests

Making HTTP requests in Golang is pretty simple, I’ve included a code sample below. Within the main function we define two new variables (resp and err). The HTTP get function returns the response; which is […]

Golang: everything you need to know about maps

Maps are pretty similar to dictionaries in Python. In the below, I define a map called red_paints. In this map, I detail the name of the specific red colours for a few companies. When we […]

Golang: Writing test cases in Go

In this article, we’re going to look at how we write test cases in Golang. Here, I will create a file called acct_test.go; which can be run by simply typing go test into the terminal. […]

Golang: Getting to the Pointers

Golang uses memory management for our variables so updating values in our structs as we defined in the previous article, doesn’t necessarily work as we expected. Let’s say we have the below, this piece of […]

Golang: Getting started with structs

A struct is a data type in Golang, it can also be compared to a class in an object oriented programming language. A struct gives us the ability to set specific fields for a type […]

Golang: Reading and writing files

Reading and writing files is a key part of most applications. In Golang, it’s not quite as straightforward as with other languages like Python, but let’s go through it line by line to understand how […]

Golang: Getting started with If statements

If statements in Golang are pretty simple, so this is going to be a really short article. What I would like to do, is compare the same if statements in Python and Golang to give […]

Loading…

Something went wrong. Please refresh the page and/or try again.


Follow My Blog

Get new content delivered directly to your inbox.