Quick bits and pieces that could save you a lifetime!

AuthGuards in React

January 12, 2019

What is an AuthGuard? An AuthGuard in Angular is there to make sure that certain conditions are met for your route to render, and if not, you'd redirect to another route such as . React-Router v…

Javascript ES6 Generator Functions

January 12, 2019

What does the “yield” keyword do? What is the use of the yield keyword? What does it do? Yield and Generator functions Generator functions are great in the sense that they allow for exiting and re…

Easily implement Quick Sort using Swift Filter

January 12, 2019

Quicksort is one of the most famous algorithms in history. It was invented way back in 1959 by Tony Hoare, at a time when recursion was still a fairly nebulous concept. Goal: Sort an array from low to…

Convert JSON to Swift Objects

January 11, 2019

Parsing JSON in swift has always been a nightmare having to deal with Dictionaries and pulling keys from that dictionary. Swift 4+ makes it easier by having the protocol for JSON deserialization…

Map, filter & reduce in Javascript

January 11, 2019

Functional programming focuses heavily on lists and list operations. Within these operations 3 functions are very popular and re-used in almost every programming language. Map (extract user UIDs…

How to deserialize JSON using GSON (Java)

January 11, 2019

GSON helps deserializing JSON objects easily to POJO. Install Java to JSON JSON to Java Sample JSON Create Model Deserialize

Chaining Promises in Javascript

January 09, 2019

We all know about the callback-hell phenomena in Javascript. Usually in backend processes we are retrieving and comparing data from multiple sources, and our chain of callbacks get deeper and deeper…

Search by