Category: programming
-
Serialising Objects
With modern programming languages like C# and the advent of Reflections Serialising/Deserialising of Data is gotten easier. Before we dive into the process of saving an object as string , lets understand some important terminologies. JSON – has become a de facto standard for applications to send/receive data. JSON stands…
-

Game Of Bits
Bitwise operators can be powerful weapon part of your coding skills when wielded properly. I admire their simplicity when it comes to game development. Jotting down a bunch of use cases related to Game Development and the world of Unity Engine.
-

Decorator Pattern
The Decorator Pattern is a design pattern that allows behavior to be added to an individual object, dynamically, without affecting the behavior of other objects from the same class. This article tries to provide the simplest possible explanation for a Decorator Pattern.
-

Observer Pattern
The Observer Pattern is a software design pattern in which an object, called the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods. For the sake of simplicity we could visualise the subject as an observable that other observers look at for…
-

Strategy Pattern
Strategy Pattern allows selection of an Algorithm at Runtime instead of design time. Instead of implementing a single algorithm directly , it allows one to choose from a family of algorithms on need basis. Strategy Pattern is part of Behavioural Design Patterns. More on types of Patterns here . Lets understand…
-

Javascript Constructors
The constructor method is a special method for creating and initialising an object created within a class. When it comes to JS the syntax is slightly different as you can see in the example snippet below If one runs the above code through a transpiler like Babel for browser compatibility, the following code…