Posts
RxJS - Part 1 - Introduction
Introduction to RxJS Reactive programming is nothing new in programming world. It has been used over 40 years ago or even before that. It started to bloom recently along with micro-services and functional programming. Idea is that we have something that represents a value over time which might constantly change. Most of the time when working with reactive programming we will be dealing with asynchronous programming. Even before Angular 2.0 was released Google or precisely Angular team decided to adopt and use RxJS internally in their framework. Since then it has grown rapidly in popularity.
Introduction to Angular CLI
Introduction In this post we will get familiar Angular CLI. We will go through some examples and see what kind of things we can do with it and how it can make our life easier and save us some time.
Generators in JavaScript - Introduction
Introduction to generators A generator function is a special kind of function that was introduced in ES2015 (ES6). In JavaScript once we start a function it has to run to its completion. However, generator functions enable us to create functions that another code can reenter multiple times. Furthermore, nothing from outside of the generation function can make it exit/pause. Generator function pauses itself when it runs into a yield expression. Once a execution reaches yield expression, generator can not continue execution on its own. Something from outside has to continueits execution.
JavaScript Iterators
Introduction When we talk about iterators there are two main protocols to be aware of: iterables and iterators. Iterables are data structures that can be iterated. Such example is array, since we can loop through every element of array.
JavaScript Symbols
JavaScript Symbols - Introduction Symbol is a primitive data type in JavaScript. Symbols represent a way to define object keys that will never get in conflict with other keys. Since they are one of the primitive data types they are immutable.
Decorators with TypeScript
Introduction JavaScript decorators are a special kind of declaration. Decorators can be attached to both class declaration and class method declaration. Furthermore, they can be attached to accessor and property declaration. Finally, they can also be attached to parameter declaration.
Tuples in TypeScript
Tuples in TypeScript With tuples we can define what type of data (variable type) can be stored in every position ( or few starting positions ) inside of an array. Once you define the tuple you can then use it to declare variables.
Intersection types in TypeScript
Intersection types Purpose of this post is to get a basic understanding of intersection types and realize pros and cons of intersection types. Last time we talked about union types: let x: string | number; Variable x can be either string or a number. Consequently, you can use type guarding technique to exclude one of the types.
TypeScript - Union types, type guards and type aliases
Union types We can use union types in TypeScript to combine multiple types into one type: let text: string | string[]; Variable text can now be either string or string array which can be pretty handy in some particular cases.