Declaring functions in Kotlin is simple. We have a few different ways to do it. For example we can skip defining the return type if the function returns an expression and does not have a function body. Or, we can set function parameters to have […]
Declaring Variables in Kotlin With val, var and const
We have three different keywords to use to declare variables in Kotlin: Var– To declare mutable variables that can change value. Val– To declare read-only variables. Const– To declare constants. Val- Read-Only Variables in Kotlin Read-only or assign-once variables in Kotlin are variables which values […]
What is Kotlin?
Kotlin is a modern programming language that is free and open source. It got its’ name from the Kotlin island that is located near St. Petersburg. It originates from a company named JetBrains that are also developing a well-known development environment IntelliJ IDEA. Kotlin is […]
Caching Strategies Overview
Caching is a data storing technique for faster data retrieval. Faster in a sense that it is faster than getting data from its’ primary storage like a database. To achieve this we usually cache frequently requested or computed data.
Transactions and Their Types
Transaction is a set of operations that must all succeed or all fail. In case operations within a transaction fail, they are all reversed back to the state before the transaction. They play a huge role when dealing with the persistence layer (databases). Most importantly, […]
System Scalability and Strategies to Build a Scalable System
In very simple terms, system scalability is the system’s capability to handle a growing amount of work while still being able to perform effectively. This could be for example getting more requests to your system as the system gets more users or having the need […]
Front-end vs Back-end Web Development
In this article you will learn about the basic differences between front-end and back-end web development. The content is kept as simple as possible so that entry-level developers could understand the basic differences easily. Front-end Front-end is everything a user can see when they interact […]
Java Generic Method
In this blog post we’ll talk about java generic method: what is is, when to use it and how to write one yourself. Before diving into this topic you might want to first read the blog post about java generic class. Java Generic Method A […]
Java Generic Class
In this blog post we will cover what are java generics and what they are good for. Also, we will explain what is a java generic class and how to define it. Java Generics Generics were introduced to java in JDK 5. Its’ purpose is to enforce […]
Java Concurrency: Synchronized Method and Block
In this blog post you’ll read about what is thread synchronization in java and when to use synchronization. Also, we’ll cover some basic examples of how to write synchronized methods and blocks in java. What is Synchronization in Java? In a concurrent application, when multiple threads […]