Categories
JavaScript Other

Stack: Making a brackets validator

Today we will make a simple brackets validator using Stack data structure. So let’s start! As an example let’s think (a+b) is an expression; In this expression, we need to verify some rules. If the open bracket exists in the expression then make sure to close bracket should exist after the open bracket. Same for […]

Categories
JavaScript

Pinia: A lightweight Vuex alternative

Note: This article assumes that you have a basic understanding of state management. A few days ago, I was creating a new Vue 3 project and as usual, I chose Vuex from the interactive project initializer. Also, I’ve been using TypeScript with Vue since Vue 2, so this one is no exception. As I started […]

Categories
Laravel JavaScript

Let’s configure our own WebSocket Server for Laravel Echo

I assume you have comfortable with Laravel Broadcasting. By default, Laravel has the following four broadcast drivers. Log Pusher Redis Null We will talk about Redis Driver today. Redis has the characterized channel-based messaging system, It’s called Publish and Subscribe or Pub/Sub. When an event is broadcast on our server, Laravel publishes that event in […]