A Guide to Writing Comments in Python

Reading Time: 4 minutes

What is a Comment?

python-logo

In simple terms, a comment is an entry added to the source code to allow a deeper understanding of the logic behind why the code was written the way it was. In Python, the ‘#’ or pound symbol is required before every comment. This symbol allows the Python interpreter or compiler to ignore the pursuant text. 

Why are Comments Needed?

When working in a large codebase, a developer may need to refer back to the information in comments weeks or months later to ensure that they understand the code’s original purpose. This information is necessary for the original idea’s formal logic aspect and is an essential criterion when working with other developers on an extensive project. 

Continue reading “A Guide to Writing Comments in Python”

How to Create a For Loop in Python

Reading Time: 7 minutes

What is a For Loop?

python-logo

A for loop in Python is utilized to make repeated use of a function or procedure, applying it each time to the result of the previous sequence. This repeating process is called iteration. The for loop checks each iteration until a condition is met. Typically these are used when we have to run a block of code duplicating it X number of times. Each time it iterates over a sequence, it re-executes the code.

Syntax of a For Loop

Continue reading “How to Create a For Loop in Python”

What Is a Python Function? A Tutorial

Reading Time: 7 minutes
python functions

What is a Python Function? 

In this tutorial, we discuss one of the most useful attributes of Python: the function. Python functions are considered “First Class” objects. A First Class object can be assigned to variables, stored in data structures, passed as arguments to other functions, or even return values from other functions. Other examples of First Class objects in Python are integers, strings, and dictionaries.

Continue reading “What Is a Python Function? A Tutorial”

Using Telepresence to Improve Microservice Development

Reading Time: 4 minutes

What is Telepresence?

Initially developed by Datawire, Telepresence is a new open-source tool supported by the CNCF (Cloud Native Computing Foundation). It allows developers to run local software while connected to a remote Kubernetes cluster. The application uses a two-way network proxy to simulate TCP connections, environmental variables, and other volumes of services as local processes. This link allows for remote work to be accomplished while seemingly local to the cluster via the proxied connection. 

Continue reading “Using Telepresence to Improve Microservice Development”

How to Install the Django Web Framework on Ubuntu 20.04

Reading Time: 5 minutes

What is Django?

Django is a Python-based web framework that is used for developing complex, database-driven websites. It also operated under an open-source license indicating it is free to use. Django is ultra-fast and encourages security, and it is exceptionally adaptable, which is the cause of its immense popularity.

Continue reading “How to Install the Django Web Framework on Ubuntu 20.04”

What is Containerization in DevOps?

Reading Time: 4 minutes

Containers are the future of application development and hosting. They enable DevOps, developers, and system administrators to build, test, deploy, and maintain applications quickly, securely, and efficiently. Tools built around the containerization concept provide simple solutions for basic web applications. These advanced granular configuration options provide the control many enterprise applications may need. 

Continue reading “What is Containerization in DevOps?”

How to Install and Configure Rancher K3s

Reading Time: 4 minutes

What is Rancher K3s?

K3s is an official Cloud Native Computing Foundation sandbox project that brings a lightweight, fully compliant Kubernetes distribution designed for lower resource production models like remote locations or on an IoT device. When used in conjunction with Rancher, K3s can easily be managed from within the Rancher orchestration platform.

Continue reading “How to Install and Configure Rancher K3s”

How to Install and Update Python to 3.9 in Ubuntu

Reading Time: 4 minutes

In this article, we will explore the newest methods to install or update to the latest version of Python on our Ubuntu system. 

What is Python?

python-logo

Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. It’s high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development and use as a scripting or glue language to connect existing components together. Python’s simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse.

https://www.python.org/doc/essays/blurb/
Continue reading “How to Install and Update Python to 3.9 in Ubuntu”

How to Install Kubernetes Using Kubeadm on Ubuntu 18

Reading Time: 11 minutes

What is Kubernetes?

k8s logo

In this article, we review what Kubernetes and Kubeadm are, how to install, create a cluster, and set up worker nodes using Kubeadm. If you are not yet familiar with Kubernetes, we recommend reading our article on the fundamental basics of Kubernetes.

Continue reading “How to Install Kubernetes Using Kubeadm on Ubuntu 18”

How to Install and Configure Minikube on Ubuntu

Reading Time: 14 minutes

Introduction

This article will demonstrate how to install and configure Minikube to set up a small Kubernetes cluster. We will then examine Kubernetes in more detail to apply that knowledge to a real-world example.

Continue reading “How to Install and Configure Minikube on Ubuntu”