ALEMIL

Welcome to a blog about application and game development

23 guidelines for writing readable code

23 guidelines for writing readable code 2018-09-12 20:18:13
Est. read time: 26 minutes, 14 seconds

Reading someone else's code can be quite confusing. Hours can go on issues that should have been fixed in minutes. In this article, I would like to share some advice on how to write code that will be easier to understand and maintain.

Comments  


Test-driven development: Introduction

Test-driven development: Introduction 2018-05-20 07:59:19
Est. read time: 3 minutes, 51 seconds

Test-driven development is a concept of writing application code after writing tests. It requires from a developer to first define what is the expected outcome before starting the implementation.

Comments  


Bitmask - why, how and when

Bitmask - why, how and when 2018-03-19 22:03:00
Est. read time: 3 minutes, 34 seconds

Bitmasks are a very useful way to compress multiple boolean flags in a single variable. It can reduce memory usage and operations on bits are basically as fast as they can get. In practice, any time you want to have multiple flags describing something in your application, a bitmask could be the right tool for the job.

Comments  


Entity Component System

Entity Component System 2018-02-17 15:13:25
Est. read time: 16 minutes, 9 seconds

ECS (Entity Component System) is a great architectural pattern that is perfect for building medium to big games, that offers some advantages over traditional OOP (Object Oriented Programming). In short, when using ECS, every game object consists of Entity - unique ID, multiple Components that hold data, and Systems that operate on and manipulate components. This separation allows for much easier implementation of independent features than big objects built with inheritance.

Comments