SOLID Principles and The Clean Architecture

Every software system provides two different values to the stakeholders: behaviour and structure. What is the behaviour we all know, but what is the structure?

A Taste of Kotlin and Functional Programming

Kotlin is a multi paradigm language. Kotlin allows implemention of different paradigms for writing programs, including Functional, Procedural and OOP.

Stop Spinning My Words! Codewars Solution

Write a function that takes in a string of one or more words, and returns the same string, but with all five or more letter words reversed.

The maximum sum value of ranges — Ultimate version – Codewars

Have you solved the simple version and the challenge version? The difference between this version and the challenge version is

The Binary Indexed Tree/Fenwick Tree

arrays operations are normally done at a linear time – 0(n). While in most casses is good enough, sometimes it can become very costly.

String Incrementer Codewars Kata Solution

Your job is to write a function which increments string, to create a new string. The solutions runing at linear time, but the optimized one is space efficient.

Maximum Subarray Sum Codewars Solution

The maximum sum subarray problem consists in finding the maximum sum of a contiguous subsequence in an array or list of integers

Growth of a Population Codewars’ Kata

How many years does the town need to see its population greater or equal to p = 1200 inhabitants?

isUnique? Determine if a string has all unique characters

Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structures?

Find All Short String Permutations in a Longer String

Given a short string A and a longer string B. Find all permutations of A that occur on B. Assuming that both strings contain only ASCII characters.

Number of People in the Bus – Codewars’ Kata

There is a bus moving in the city, and it takes and drop some people in each bus stop. You are provided with a list (or array) of integer pairs. Elements of each pair represent number of people get into bus (The first item) and number of people get off the bus (The second item) […]

Get the Middle Character – CodeWars’ Kata

You are going to be given a word. Your job is to return the middle character of the word. If the word’s length is odd, return the middle character. If the word’s length is even, return the middle 2 characters. Codewars Pseudocode Kotlin Implementation

Everybody is Dancing in the OAuth 2.0 Protocol

The OAuth 2.0 is a framework that allows third-party applications to obtain limited access to an HTTP service, on the resource owner behalf.

big-o-graph

Mastering the Big O Notation

Understanding algorithms is essential for making good decisions about which algorithms to use and how to make new algorithms that are correct and efficient.

The Protests Map Part V – Angular Material Components

The following post is the last post of the protests map series, the previous posts in this series were: Next, we will implement our layout using the Angular Material library. Angular Material is a library built and maintained by the Angular team, it provides common UI components and tools that help you customize your own […]

The Protests Map Part IV – User Module with Firebase Authentication

In the previous posts of this series, we had the software architecture post, the lower-level design post and the observable streaming post. The following post is an implementation of the Firebase authentication service, using the Angular official API – @angular/fire. Auth Factory Class Same as we did with the Firestore service, we will extract the […]

RxJS Observables and Behavior Subjects Streaming

Angular makes a wide use of the reactive programming library RxJS. This post implements RxJS behavior subjects and observables for monitoring real time updates.

Specifying App Modules and Their Responsibilities

Lower-level details of individual modules of an Angular & Firebase application integrated with Google Maps and Firebase Auth APIs.

The Protests Map Part I – Background And Architecture

Intoduction post for design and implementation of an Angular app integrated with Google Maps and uses Firestore as database, and Firebase as backend.

Hello world!

Welcome to my WordPress blog, in this blog I am writing about my software development experiments.