In this article we’re going to have a look at how to mock http connections while running your tests on your golang application. Since we do not want to call the real API or crawl an actual site to make sure that our application works correctly, we want ... more
In this article I’ll have a look at Codefund , which is an online advertising platform specifically target at the tech sector. So if you’re looking to monetize your tech blog, the documentation of you open source project or similar, this might be a possibly ... more
In this article I’ll have a look at Codefund , which is an online advertising platform specifically targeted at the tech sector. So if you’re looking to monetize your tech blog, the documentation of you open source project or similar, this might be a ... more
This post is about different storage possibilities in your browser. There are cookies, and different kinds of storage that can be accessed through JavaScript APIs in your client side code. They’re used for authentication, tracking tools like Google Analytics ... more
This post is about different storage possibilities in your browser. There are cookies, and different kinds of storage that can be accessed through JavaScript APIs in your client side code. They’re used for authentication, tracking tools like Google Analytics ... more
Web Components are a way to encapsulate functionality into little self-contained parts that can be reused and adapted like you’re used to from frontend libraries like React, Vue, Angular or Ember. The special thing about Web components is that they work ... more
Web Components 101: Hello World Web Components are a way to encapsulate functionality into little self-contained parts that can be reused and adapted like you’re used to from frontend libraries like React, Vue, Angular or Ember. The special thing about ... more
We built a website that lists photography related laws by country and also in multiple languages. We started it as an independent project to enable the community to contribute to the site and to keep the content open source on a public repository, in ... more
Let’s check out how you can deploy your Nuxt.js app, including server side rendering, with Docker. You can also view this post as a video: The versions at the time of writing are: nuxt: 2.6 Docker 18.09.3 Nuxt.js installation For this tutorial I’ll create ... more
Let’s check out how you can deploy your Nuxt.js app, including server side rendering, with Docker. You can also view this post as a video: The versions at the time of writing are: nuxt: 2.6 Docker 18.09.3 Nuxt.js installation For this tutorial I’ll create ... more
Flutter is a cross platform and performant native mobile app framework by Google and can target Android and iOS at the moment. The language that comes with it is Dart, which originally made it into Chrome Canary as a possible JavaScript replacement or ... more
I’ve used a Lenovo IdeaPad 120s temporarily because of a slight emergency and even did some coding on it. To say the least, it’s been weeks of managing resources very carefully and learning why performance is still an important factor in computing in ... more
Vue.js is ever growing in popularity and even though it has a strong CLI that allows you to kick start projects, you can use other bundlers like the Parcel bundler. The Parcel bundler excells at simplicity and only requires and entry file like index.html ... more
Creating single page apps has become a more frequently requested task of web developers (like me) and deployment in containers, across zones and under monitoring, seems like a natural step. In this post we’re going to have a look at how to deploy a Vue.js ... more
Dokku is still my favourite deployment platform for my side projects. It’s an easy fix for tons of different stacks, jammed onto one server (that doesn’t have to deal with having the correct node or PHP version for anything). If you aren’t familiar with ... more
Gatsby is a static site generator with generic data sources. That’s also what makes it special. You can plug in a wide variety of data sources into Gatsby and it will generate static pages out of that. You can use anything from CSV or markdown files ... more
Golang has fantastic support for actions that are supposed to happen concurrently (at the same time) without blocking the thread, they are called goroutines and are used by simply putting go in front of a function. The functions prefixed with go will ... more
I’ve been using the Habitica Habit Tracker recently and it’s been a really good app to handle all sorts of history tracking. How much water do I drink? How many cigarettes do I smoke per day? Hint: recently very few. Fortunately Habitica also has an ... more
As a blogger or any other kind of publisher, you might be interested in if the user accessing your page right now is using an ad blocker or not. You might want to do that to display a box that encourages them to disable their ad blocker, because you’re ... more
Go is a great language by many accounts. When I first got started with Go, I didn’t have a lot of experience with programming languages that required a specific workspace or a lot of setup. Go requires you to set 2 or 3 variables, add stuff to your $PATH ... more
Creating a chatbot for Slack, the easy to setup group chat for teams was surprisingly easy. In this post we’re going to go over creating a chat bot that can reply to queries and take an action on simple keywords. We’re going to use a node module called ... more
govendor is a dependency manager for Go. Go get gets you pretty far when it comes to installing dependencies at first, but when you want to deploy your project or when you want to pin the right version of your dependency it’s not necessarily appropriate ... more
Typescript has become a popular tool to reduce errors when writing JavaScript. It was developed by Microsoft and gained a lot of popularity when Angular adopted it as a first level citizen. When Angular 2 was nearing completion, the only docs available ... more
Recently I was benchmarking a site and wondering why jQuery (no offense) was loaded on every page when I was very sure I did not include it in the custom written theme for that site. As it turns out Contact Form 7 requires jQuery. On every load. When ... more
Preact is a faster and smaller alternative to React and I have come to like it for building interactive components into WordPress themes and plugins. In this post we’ll go through how to write a Preact Component and how to inject it into an existing ... more
I’m trying our Parcel.js for one of my more recent endeavours and I must say I’m quite liking it so far. The zero-config approach doesn’t leave you with a lot of control, but at least you don’t have to adopt a boiler plate that you only use half the ... more
Dokku is advertising itself as a self hosted Platform as a service and it lives up to its promise. You can fairly easily deploy a range of applications like Ruby, Node.js, Go and so on. Basically everything beyond your standard PHP CMS like WordPress ... more
Everybody who’s reading this: Thank you! It probably means you have my blog in your feed reader and that you’re a follower. Most of my blog hits are from strangers that want a quick fix for a coding problem, so thank you for reading this, even though ... more
One of the most important things I tell newcomers to programming over and over is to start with the easiest puzzle pieces, over and over. It’s so vital to success that you can cut problems into sub-problems and then solve them and fit the solutions back ... more
Handlebars is a popular templating engine for JavaScript and in this post we’ll have a look at how to write a custom helper. On top of that, we’ll also look at pre-compiling a part of the template and returning the compiled HTML from the helper. We’ll ... more