Why do we need signals in angular? We already have BehaviorSubject which seems to provide the same functionality. let’s understand how Signals are better then BehaviorSubject as a reactive building block in angular.
Continue reading “Why Signals”Category: Tutorial
RxJS Observables vs Signals (counter)
Signals are easily accessible in every level of an angular app while RxJs observables require level of complexity to share data between components.
In this article,e we will see a simple application example with two approaches. signals and RxJS observables.
Continue reading “RxJS Observables vs Signals (counter)”Introduction to Signals
Since the angular introduction in 2016, observables and RxJS have been the major ways of managing states and sharing data in angular applications. despite the observables and RxJS having huge capabilities and well-crafted design patterns, it has a steep learning curve.
Continue reading “Introduction to Signals”RxJS: Building Blocks
RxJS is written in typescript and there is an interface for every building block of RxJS. the building blocks of RxJS are:
- Observable
- Observer
- Operator
- Subject
- Scheduler
Side Note: I recommend you to read my previous articles: RxJS: What and Why.
Continue reading “RxJS: Building Blocks”RxJS: What and Why
RxJS offers a powerful functional approach for dealing with events and with integration points into a growing number of frameworks, libraries and utilities. But learning RxJS and reactive programming can be difficult, there are a lot of new concepts, big API service and a fundamental shift and mindset from imperative to declarative style.
Continue reading “RxJS: What and Why”Next.js Basics
Next.js is a framework that builds up on react. it has more features than react, it focuses on more things than React and it gives us clear guides and rules on how we should write our code and structure our files.
Continue reading “Next.js Basics”Node Server in Detail – part 1
NodeJs is a powerful technology that we can use to create end-to-end applications with one language which is JavaScript and these applications can handle millions of users without blocking. we can build any application we can think of such as web applications, desktop applications, and hardware (embedded systems).
Continue reading “Node Server in Detail – part 1”Internet and Networking Protocols Overview
In this article, I will cover the basics of How the internet works by covering the history of the web and the networking protocols that make it work and are important for us as web developers to know and understand.
Continue reading “Internet and Networking Protocols Overview”Promises Deep Dive
Before promises, we handled asynchronous code with callbacks which were hard to handle well. besides being an unreadable code (pyramid of doom), trying to handle multiple callbacks to run after an asynchronous operation ended or handle a completed process later in the code was hard to handle. There was a need for a better coding approach for handling asynchronous events.
Continue reading “Promises Deep Dive”Composition Over Inheritance
Before we start to understand the limitations of inheritance and how you can solve them with composition it will be good to point out that prototypal inheritance is for object-oriented programming paradigms as closures are for functional programming paradigms and that inheritance is when you design your types around what they are while the composition is when you design your types around what they do.
Continue reading “Composition Over Inheritance”