Latest Stories

Memoization in JavaScriptOctober 18, 2018

Steps for caching function returns Create a memoizer function which accepts a function as a parameter returns another function with some logic Create an object (cache) to store function returns That function would have some arguments (or no argument at all). We can access those arguments by using the Object that comes with JS. Next we add the caching logic to the function that we want to return…

Keep Reading →

Algorithmic ComplexitySeptember 12, 2018

Algorithmic Complexity In previous post about algorithms ( Algorithms Intro ), we briefly discussed the notion of algorithms and saw couple of examples. In this post, let us dive in little deeper. Besides the modularity, user friendliness and security of an algorithm, we have to consider the performance of an algorithm. Let's discuss the ways to analyze this matter here to write better and faster…

Keep Reading →

Just enough TypeScript for Angular 6+August 26, 2018

Just enough TypeScript for Angular Angular Framework is written in TypeScript. All of the pre-generated scripts and code samples are also in TypeScript. So, it makes total sense to get little bit familiar with TypeScript before we dive in to the world of Angular. 1. What is TypeScript? TypeScript is a superset of Javascript , which means it is built on top of Javascript and fully supports…

Keep Reading →

Sets (Discrete Math)August 26, 2018

Sets Definitions Set - is an unordered collection of objects. Usually sets are denoted by capital letters. A set contains its elements . In the example above, the special character means that the lower case letter is an element of the set . If is not an element of , we write . When two sets contain the same elements, they are said to be equal. = {e}, = {e} means that or…

Keep Reading →

Rules of Inference (Discrete Math)August 26, 2018

Rules of Inference Inference - is a process of drawing conclusion based on the evidence and reasoning. It holds a certain level of probability relative to the premises. It could also be an educated guess. Premise - a (previous) propositional statement supporting a conclusion. Proof - is a valid argument that establishes the truth of a statement. Argument in logic is a sequence of…

Keep Reading →

Set Operations (Discrete Math)August 26, 2018

Set Operations Frequently we need to combine sets to produce new sets. For instance, say we have a set of animals that live under the water and another set of animals that live on the ground. We could make a new set of animals that can live both, under water and on the ground. Or a set of animals that cannot live in water. There are a few ways of combining sets. 1. Intersections Let's say that we…

Keep Reading →

AlgorithmsAugust 24, 2018

1. What is an Algorithm? Algorithm - is a well-defined set of instructions to solve a problem. In other words, an algorithm is a computational procedure that takes in an input , processes it and then spits out an output . There are certain properties an algorithm must have to be considered as valid. Input - an algorithm is provided with input or set of inputs Output - an algorithm produces…

Keep Reading →