Bo Andersen
I am a back-end web developer with a passion for open source technologies. I have been a PHP developer for many years, and also have experience with Java and Spring Framework. I currently work full time as a lead developer. Apart from that, I also spend time on making online courses, so be sure to check those out!
Posts by Bo Andersen
Adding Comments to Code
The code that you have seen so far, has been pretty easy to understand. But imagine that you write a complicated piece of code or just do something where it is not immediately apparent why. Perhaps it totally made sense to you when you wrote that code, but that might not make case when you… read more
Introduction to Python Data Types
So far, we have only been dealing with printing out and storing text. In Python, text is of the type str, short for string. In addition to text, Python supports several other data types such as bool, int, and float. The bool data type — short for boolean — is exactly like a light bulb,… read more
Working with Variables in Python
So far, we have only been telling Python explicitly what to print. When you code applications, games — or whatever the case might be — you need to have the ability to store and work with different types of data. We do so by using variables. Consider the following, for example. greeting = “Hello World!”… read more
Installing Python & Hello World
Welcome to this tutorial on Python! Whether you are a developer who just haven’t learned Python yet, or if you are completely new to programming, this tutorial is for you! We start at the absolute beginning, so if you are already familiar with programming, then you will find that this Python tutorial starts out pretty… read more
Creating a Component in a Project
It’s time to open up a project like the one that we created in a previous post. In this post, I want to add a global component to the project, but first I will start out by cleaning the project up a little and remove some of the default stuff that was included with the… read more
Component Naming Conventions
When registering components either locally or globally, you have a few options for how to name the tag name. In the examples from the previous posts, I have used kebab-case, which means all lowercased letters and words are separated by a dash. However, you can also use camelCase or PascalCase if you prefer. Consider the… read more
Global & Local Components
Now that we have created our first component, let’s talk a bit about global and local components. A global component is a component that can be used anywhere in an application, including within other components. On the other hand, a local component is a component that is not registered globally, and can therefore only be… read more
Enabling SSL with Custom Domain on Teachable using Cloudflare
Want to use a custom domain for your Teachable school, but also want to enable SSL/HTTPS? I feel you. Those green locks do look pretty great, and besides, Google seems to dig it as well. This post explains how to set it up by using Cloudflare. No worries, it is completely free! This post assumes that… read more
Vue.js: Why Components’ Data Properties Must Be Functions
I previously mentioned that with components, the data property must be a function and not an object as we are used to. I have opened up an example of a component which contains a button. <div id="app"> <counter></counter> </div> Vue.component(‘counter’, { template: ` <div> <button @click="counter++">{{ counter }}</button> </div> ` }); new Vue({ el: ‘#app’… read more
Introduction to Components
Now it’s time to look at components, which are one of the most powerful features of Vue.js. Components let you encapsulate reusable code that is self-contained. We will be using components extensively throughout the rest of the series, so this is an important concept. For the first couple of posts, we will still be working… read more