RxJS & Angular: Declarative If / Else

RxJS & Angular: Declarative If / Else

RxJS & Angular: Declarative If / Else. Leveraging the RxJS Filter Operator. Use a consistent declarative programming paradigm, to potentially improve code clarity and readability. Using Angular, Akita, and the Angular In-Memory API. Notes on RxJS Filter Operator.

Notes on RxJS Filter Operator

Article Goal 🎯

Leveraging the RxJS Filter Operator. Use a consistent declarative programming paradigm,to potentially improve code clarity and readability.

Key Concepts 📝

  • Control Flow: is the order in which individual  statements,  instructions or  function calls of an imperative__program are  executed or evaluated
  • Choice: perform different computations or actions depending on whether a programmer-specified  boolean condition evaluates to true or false.
  • Declarative Programming: is a  programming paradigm — a style of building the structure and elements of computer programs — that expresses the logic of a  computation without describing its  control flow
  • Reactive Programming: is a  declarative  programming paradigm concerned with  data streams and the propagation of change — RxJS is a Library for Reactive Programming (Thus RxJS is a Declarative Paradigm)
  • RxJS Filter Operator: Filter items emitted by the source Observable by only emitting those that satisfy a specified predicate.

Explanation & Summary 🧪

Emphasis on explicit control flow is what differentiates imperative programming from declarative programming.

javascript angular technology learning

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Learning JavaScript: Working with Strings

Strings are the second most common data type used in JavaScript, and in many cases, since JavaScript is so widely used for web applications, it is the prominent data type.

Learning JavaScript: Statements, Arithmetic, and Math

In this article I will discuss how to perform arithmetic and more advanced mathematical operations in JavaScript. First, though, I need to discuss how statements are formed and used in JavaScript.

Learning JavaScript: Computing with Object Methods

JavaScript has a set of built-in methods you can use with your user-defined objects. In this article I’m going to discuss several of these methods and how you can use them in your JavaScript programs.

Learning JavaScript: Working with Objects — this, getters, and setters

JavaScript objects provide the reader with some special features that make object-based programmer more effective and more efficient. In this article I’m going to describe three of these features — the this keyword, getters, and setters. The this Keyword If there was ever a more confusing keyword in computer programming than thethiskeyword, I don’t know what it is.

Basics of Angular: Part-1

What is Angular? What it does? How we implement it in a project? So, here are some basics of angular to let you learn more about angular. Angular is a Typesc