It would be great if we as devs got to play with limitless memory and never had to care about working with it judiciously. Unfortunately, that isn’t true, and hence, we have to behave like a renter to the OS—rent the memory for a while, use the memory, and then hand it back.
Value types are faster to work with since they operate out of the stacks and copying a value is cheap since it happens in a constant time. Values also help us achieve predictable behaviour and isolation whereas, on the other hand Reference types give shared access to Memory locations and dynamic storage. Since reference types […]
Reactive programming has been in the picture for more than 20 years now, but it did not really start to gain momentum until the introduction of reactive extensions in 2009. Reactive extensions or Rx are available for several languages, and they look and behave the same for the most part across all these languages. Development […]
Generic code enables you to write flexible, reusable functions and types that can work with any type, subject to requirements that you define. You can write code that avoids duplication and expresses its intent in a clear, abstracted manner. (ref: Apple Documentation) Generic functions are more about defining rules rather then a specific implementation. In this […]
You might have heard that Marble Diagrams are indispensable when it comes to learning Rx. If you have worked with any Reactive programming or if you want to switch to reactive programming for any specific language be in RxJava, RxSwift, RxJS etc., chances are that you have or will encounter Marble diagrams.