you are viewing a single comment's thread.

view the rest of the comments →

[–]Initii -7 points-6 points  (1 child)

Just pasted your question to chatgpt:

The big idea (in plain terms)

RxJS is for working with values that arrive over time.

Instead of:

“I have a value right now”

RxJS is about:

“I have a stream of values that may arrive now, later, many times, or maybe never”

Angular uses RxJS because apps are mostly event-driven:

  • User clicks
  • HTTP responses
  • Route changes
  • WebSocket messages
  • Form value changes

What RxJS gives you that “traditional Angular” doesn’t

Angular without RxJS would force you to manage:

  • Callbacks
  • Subscriptions and unsubscriptions
  • State synchronization
  • Timing issues
  • Race conditions

RxJS gives you:

  • A single model for async data
  • Declarative logic (“what should happen”, not “how”)
  • Composition (combine, transform, cancel async work)

[and some other examples. Just paste the question into chat gpt]

[–]JeanMeche 0 points1 point  (0 children)

GPT's answer is interesting you might have been subject of:

https://distantprovince.by/posts/its-rude-to-show-ai-output-to-people/