Building Small Containers for Kubernetes

The first step to deploying any app to Kubernetes, is to bundle the app in a container. There are several official, and community-backed container images for various languages and distros, and most of these containers can be really large, or sometimes contain overheads your app may never need/use. Thanks to Docker, you can easily create container images in a few steps; specify a base image, add your app-specific changes, and build your container.

Building a Web App With Go, Gin and React

TL;DR: In this tutorial, I’ll show you how easy it is to build a web application with Go and the Gin framework and add authentication to it. Check out the Github repo for the code we’re going to write. Gin is a high-performance micro-framework that delivers a very minimalistic framework that carries with it only the most essential features, libraries, and functionalities needed to build web applications and microservices. It makes it simple to build a request handling pipeline from modular, reusable pieces.

The CouchDB Replicator Database - An Overview

TL;DR: In this article, I’ll give an overview of the replicator database in CouchDB, how to spin off a replication task in CouchDB CouchDB is a database that completely embraces the web. CouchDB stores your data as JSON documents, and allows you access these documents easily, from a web interface or its REST API. We won’t be going too deep into couchdb as it would be out of scope for this article - I’ll write one of those pretty soon.

Here's What's New In Go 1.10

Go 1.8 is one year old (Happy belated Birthday 🎊 🎉) Go 1.9 is already 6 months old! Go 1.10 is out ✌ The latest Go release, v1.10 arrived six months after V1.9. This release was stated in the change-logs and the Go blog. I’m gonna share some interesting changes I’ve found in Go 1.10 with you. New Features The Language Go 1.10 offers compiler tool chain and performance improvements, but no significant changes was made to the language’s specification.

React Native vs Ionic - A Quick Comparison

The main purpose of this article, is to highlight the important differences between Ionic and React Native. Developers utilize a variety of tools. There’s always an unending discussion and argument on which platform is best, as every developer has her own personal preferences. Hopefully this article would give you the information you’ll need to make a decision on which you’d want to settle for in your next mobile app project.

Getting Started with Go - Variables ↗

In the previous article - Golang - Getting Started on The Practical Dev, I wrote an intro to the Go programing language, and how to setup a development environment for your platform. In this part of the series, we’re going to talk about variables in Go, check it out HERE

Golang - Getting Started, The Practical Dev ↗

“Go will be the server language of the future.” — Tobias Lütke, Shopify Go was first created as an experiment, the goal of its creators was to come up with a language that would resolve bad practices of others while keeping the good things. Its first release was on March 2012. Go was designed to feel familiar and to stay as simple as possible, the entire language specification fits in just a few pages.

Terminal for Beginners!

Getting into Software Development seem overwhelming (actually it is) these days. One has to go through the hassle of getting familiar with different languages, to organizing codebases, to libraries, frameworks, the list goes on. Every Job description (at least the sane ones), requires additional skills to get the job. Example of such, Version Control (Git or Mecurial), tasks runners, build tools, package managers, etc. Most of these extra tools are being accessed/used from a command line interface.

[#D2/30] React30: Lifecycle Methods and Data Fetching

In the previous article, I wrote on setting up React, and some other basic features like Components, Props, and States. In this article, we’re going to look at React’s Lifecycle Methods and how to use them. When creating components, the only required spec is the render method. Sometimes we may want to add code that gets called at certain times inside our component’s lifetime. The Lifecycle methods in React allows us write additional code for this.

[#D1/30] React30: Getting Started, Basic Concepts

Today I’m kick starting my 30 day React Article streak on this blog. We are going to start off Knowing What React is, and what makes it thick, setting up our project, and YES create our first React App at the end of this series. What is React? Simply put, React is a JavaScript library for building user interfaces. It is seen as the View layer for Web Applicaitons.

How I Learned Golang

Go is a relatively new programming language, and nothing makes a developer go crazier than a new programming language, haha! As many new tech inventions, Go was created as an experiment. The goal of its creators was to come up with a language that would resolve bad practices of others while keeping the good things. It was first released in March 2012. Since then Go has attracted many developers from all fields and disciplines.

JavaScript Async/Await 101

Async and Await has been a blessing to most JavaScript Developers. Even while it was on the Stage 4 proposal for ES6, the feature has been warmtly welcomed. Node.js now Supports async/await since its version 7.6. What is async/await? If this is your first time seeing/hearing of this term, here’s it in plain English: - Its the newest way/pattern of writing asychronous code in JavaScript, asides Promises and callbacks. - Async/await compared to Promises, are non-blocking - Async/await makes aysnchronous code appear and behave like synchronous code.

RESTful APIs with Go

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. Go was created at Google in 2007 by Robert Grisemer, Rob Pike and Ken Thompson. Go is a compiled, statically typed language. > PS: This article is not an introduction to the Go programming language, its an intermediate one. For the purpose of this tutorial, we’ll be creating a RESTful API for a Phone Book app.

for...in vs for...of Loops in JavaScript

The for..in and for..of loops, gives us a clean and concise syntax to iterate on iterable items like arrays, strings, objects, and enumerables. Now the question is where to use which. Here’s a little reminder to get you you started. for..in Use this to iterate over the properties of an object: let person = { name: 'Francis', alias: 'codehakase', eyeColour: 'brown' }; for(let key in person) { console.log( `${key}=> ${person[key]}` ); } // name => Francis // alias => codehakase .

Build your first RESTful API with Node.js

Node.js is one intimidating JavaScript framework, especially for beginners. This article serves as a quick quide to Node.js, Express.js and MongoDB. We’ll building a simple REST API that’ll serve as a basic foundation for an application. For the purpose of this tutorial, you’ll be creating the base for a ToDo List application (yeah its kinda like the convention to start with ToDo list apps). You’ll use all CRUD (create, read, update and delete) actions on the API.

Making hakasebot - Twitter Bots 101

This was my first attempt making twitter bots. I made a very simple twitter bot for this blog, check the Source and also follow @_hakasebot. Setting Up The bot was created using the Twit package, which is a Twitter API client for Node.js. Twit needs to connect with my twitter account so first I created a new Twitter Application. After that, I took note of my application’s keys: * Consumer Key * Consumer Secret * Access Token * Access Token Secret

JavaScript Objects 101

In JavaScript, most things are objects, from core JavaScript features like strings and arrays to the browser APIs built on top of JavaScript. You can even create your own objects to encapsulate related functions and variables into efficient packages, and act as handy data containers. What Is An Object? In JavaScript terms, An Object is a collection of data, which consits of several variables and functions - which are called properties and methods.

Introduction to JavaScript Promises

JavaScript promises have become a popular way to handle the tangled mess that JavaScript’s asynchronous nature often creates for us. Synchronous code is eaiser to follow and debug, async is better for flexibiity. Promises are becomming a big part of the JavaScript world, with awesome APIs implemented with it. What is a Promise? A Promise is a proxy for a value not necessarily known when the promise is created. It allows you to associate handlers with an asynchronous action’s eventual success value or failure reason.

Object-Oriented PHP - An Easy Approach

For some PHP developers, the concept of object-orient programming, seems like a frightening concept. You might have browsed through repos on GitHub or read articles on how to implement a feature in a particular PHP project of yours, and the code is full of complicated syntax. I tell you, the concept of OOP is easy to grasp. Object-Oriented programming (OOP), is a style of programming which allows us developers and programmers group related tasks or actions into classes to produce effective code.

Introducing Adonis Js

TL;DR AdonisJs is a true MVC Framework for Node.js. It encapsulate all the boring parts of Web programming and offers you a nice & clean API to work with. AdonisJs makes it easy to write web applications with less code. In this article, i will show you how to get started with AdonisJs. Checkout the repo on Github. Node.js is one of the emerging technologies to write real-time applications using one of your favorite web languages: Javascript.