Lets look at how a Strategy pattern works. If you google the definition for strategy pattern, this is what you'll get. "In computer programming, the strategy pattern (also known as the policy pattern) is a behavioural software design pattern that enables an algorithm's behavior to be selected at runtime.". Don't worry if this doesn't make much sense, we'll look at an example which will clear your mind.
In this article we'll look at a simple PHP Factory Design Pattern. Factory pattern is perhaps the most common pattern used. Factory pattern is nothing more than what the name says. Its a factory example: car factory, pizza factory, ice cream factory, gadgets factory you name it.
People spend years in getting their IDE (code editor) workflow to perfection. This takes a lot of fine tuning to the theme you like and all the different plugins etc. After investing so much of time tweaking your settings, of course, you would want to reuse the settings when you have a new machine. In this article we'll look at how to save all your settings in Github Gist
In this article we will be looking at how to create an Elastic IP in AWS and allocating it to an existing EC2 instance. We will also look at re-allocating and releasing IPs.
I recently setup a laravel application and i wanted to use Laravel Forge and Github to deploy to AWS. I also wanted to create a simple CI (continous integration) workflow usng Github actions. In this article we'll look at how to do this step by step.
Composer has become an essential part of programmers life these days. The first thing any programmer needs to do before getting a project up and running is to run composer imstall. In this article, we'll take a look at how to install composer globally on Mac OS.
For years i have been using Sublime text which is one of the best IDE's out there for programmers to write code. Although majority of the people use it for writing code, for me its been a great tool for general text editing as well as writing code.