Inspecting Filesystem Using SPL

The Standard PHP Library (SPL) is a collection of interfaces and classes that are meant to solve common problems. SPL had been introduced in 2005 with PHP 5.0.0. SPL doesn’t require any additional libraries; it comes by default with the PHP installation. In this post, I’ll be showing you some iterators that are used to …

Late Static Binding Explained

PHP 5.3 came out with a fantastic OO feature called Late Static Binding, a fancy term for a simple concept. If you take a look at some of the modern PHP frameworks/libraries you’ll see that static method is used a lot in their classes. In this post, I’ll be showing you the differences between self …

JWT with Laravel

A few weeks ago, I wanted to use JSON Web Token into one of my Laravel projects. After a bit of research, I found some composer packages, but I was thinking why do I need a package for such a simple thing? To be honest, I’m not a big fan of using composer packages for …

It’s complicated

During my career as a web developer, I encountered many conservative developers, these kinds of developers are trying to avoid some new technologies from being used due to their definition of the complication term. Some of these developers are playing a significant role in the company, such as team leader, CTO, or even a CEO. …

Immutable vs Mutable Objects in Python

Everything in Python is an object, even integers, booleans, floats, strings etc… Objects can be divided in two major sections: immutable and mutable, but what are the differences between these two fancy terms? In this post I’m going to show you the differences between immutable and mutable by diving into Python objects and knowing them …

All about strings in Python3

Strings are one of the most important data types in any programming language, no application can be done without dealing with strings. Python provides a bunch of string methods for different usages, in this post I’m going to describe the most important string methods in Python, but before I do this, let’s see the basic …

How Docker works: Part 1

Lots of people don’t know what is behind Docker, and for many of them it’s not even something necessary to grasp, but I believe understanding the underpinning make things more transparent. In order to understand how Docker works, we must go through some foundational concepts, and these concepts are the bones of Docker. So, let’s …