PHP: Traits

PHP

Traits facilitate code reuse in PHP by providing a simple way to define functionality and reuse those functionalities when we need it. Traits do not comply with the “is-a” nature of inheritance, so traits do not follow the true strict inheritance. As we can use multiple traits in a class, so it compensates for the lack of multiple inheritance nature of PHP.

Data Structure: Hash Table

Data Structures

Hash table data structure is used to store key-value data pairs. Main benefit of using a Hash Table is the performance improvements for set and get operation of data. In this article, we are discussing the implementation of Hash Table in JavaScript and TypeScript.

Laravel Framework

Laravel

Laravel framework facilitates faster development and increased productivity. As a batteries-included framework, Laravel includes many many built-in features, that save a lot of time.

Data Structure: Binary Search Tree(BST)

Binary Search Tree or BST is a special type of tree that is used for organizing data in a way that searching becomes easier. The rule is simple for BST- Everything on the left of the node is smaller than the selected node. Everything on the right of the node is larger than the selected node.

Data Structure: Stack

We use the Stack data structure to create a pile of data/information one after another and then process those from top to bottom. Items of a stack are accessed/processed on a Last-in-First-out basis. Stack support push and pop from the top. In this article, we are discussing in detail, the implementation of Stack in JavaScript and TypeScript.