blog

Design Patterns: Strategy

The Strategy design pattern belongs to Behavioral family. It helps us to change behavior at runtime. The definition from Gang of Four book is following. We use Strategy pattern when we need to hide the implementation of an algorithm. When we have many related classes which differ in their behavior providing a way to configure…

Read More

Design Patterns: Bridge

One more design pattern, which is lying under Structural Patterns family, is named Bridge. Let’s see the Bridge definition as expressed from GoF book. Let’s start analyzing abstraction to gain insight into Bridge pattern. When we talk about abstraction we mean that we want to hide the mechanism and the details of how something is…

Read More

Design Patterns: Composite

The Composite is another design pattern that belongs to Structural Patterns family. We use this pattern when we want to group components inside a larger component. In other words, we can built a hierarchy of objects. A definition by GoF: A basic structure of Composite pattern: Component Declares an interface for objects in the composition….

Read More

Design Patterns: Facade

Facade design pattern is known as a structural design pattern. Facade pattern is used to reduce complexity among classes. One way to achieve this goal is by providing a simplified interface to implement general facilities among objects. That means, we can use facade in order to describe and implement actions of objects. We can write…

Read More

Design Patterns: Decorator

Hi guys, one more design pattern and today I am going to continue with a Structural Pattern. In particular, I will introduce you to Decorator design pattern. Sometimes this pattern is also known as Wrapper. Decorator is a pattern that adds new features to an existing object without altering anything from the original object. When…

Read More

LibGDX: Scene2d – Actors Part 1

Scene2d is a higher level framework for creating games. It’s not mandatory to use it but sometimes it is very useful because code is more friendly and simpler. It is indicated for menu, buttons, checkboxes etc. but it’s useful for board games, character’s equipment and more. Scene2d is composed of 3 classes regarding Scene2d :…

Read More

Design Patterns: Dependency Injection

What Dependency Injection is. Let’s imagine an object that does a specific function. Now let’s imagine a second object that takes the first object as an argument. This object cannot function or can function partially without the first one. When this happens, it’s called Dependency Injenction. Dependency Injection is a design pattern and we want…

Read More

Design Patterns : Object Pooling

Object Pooling is a design pattern that belongs to creational design patterns. Creational design patterns are the ones that deal with object creation mechanism. This gives the program more flexibility in deciding which objects need to be created for a given use case. Design pattern object pooling gives us the ability to load  some instances…

Read More

How To Accomplish Your Ambitions

Every day is unique and has a value in someone’s life. Days which have passed cannot get back again. Moments which have already passed cannot get back and be recovered. Procrastination is a bad habit which captivates you from your creativity. If you are able to see the time as single moments then you will…

Read More

The OOP Concept

Object-oriented programming (OOP) is a way of writing code based on concept of objects. Every object has its own arguments and functions. If there is a need to code with OOP principles then we have to be in a continuous effort trying to describe everything into objects. Before we continue on to how we have…

Read More

PHP Thoughts

As a programmer I have been using PHP for over 4 consecutive years. Sometimes PHP tends to be an unappreciated programming language due to the exaggerated freedom it offers. That’s the sense I caught on from Anthony Ferrara’s speech on PHP[world] in 2015. It is really an amazing presentation by Anthony Ferrara. You can watch the…

Read More

Using UML Diagrams

There are many experienced developers who, despite writing code for many years, have never used tools such as UML Diagrams. I used to be one of these guys who had never used those diagrams, even though I was aware of their existence. These diagrams are a process which allows a developer to depict his code…

Read More

How Not To Let Overtime Affect Your Performance

Recently, I read a book titled The best software writing I by Joel Spolsky. This book presents some of the best writings about software from around the internet through the eyes of Joel Spolsky. One chapter, specifically, refers to the negative consequences of overworking. You can read the original article here EA-Spouse. From the very first…

Read More