Slice is a dynamic collection of elements with similar types of data.

Unlike arrays, that fixed size, slices can dynamically grow or shrink according to the requirements.

Read More

Golang maps

Map is an unordered collection of key-value pairs where each key is unique and implements hash-table data structure that offer fast lookups, adds and deletes.

They are also called associative arrays or dictionaries and has many areas of use.

Read More

Golang pointers

Programs store values in memory, and each memory block (or word) has an address, which is usually represented as a hexadecimal number.
Pointer is a special type that holds the address of a variable.

Read More

What’s new in PHP 7.4

PHP 7.4 was released on November 28, 2019 and it’s the last version before PHP 8. New features PHP 7.4 comes with a remarkable amount of new features. The following a list of all new features. Arrow functions Arrow functions, also called “short closures”, allow for less verbose one-liner functions. There are a few notes about…

Read More

Install Nginx + PHP + MySQL on Mac Os in 2020

This tutorial shows how to install Nginx + PHP + MySQL on Mac OS Catalina. It’s very straightforward process and doesn’t takes you more than 10 to 15 minutes. Install PHP First of all, ensure that brew brew is up-to-date and then install latest php 7.4 version. To locate your ini files type the following…

Read More

Java Data Types

Data types are very important in Java because it is a strongly typed language. All operations are type-checked by the compiler for type compatibility. Strong type checking helps prevent errors. All variables, expressions, and values have a type. Java contains two general categories of built-in data types: Object-oriented Primitive (non-object-oriented) Object-oriented types are defined by…

Read More

Docker-compose Tips and Tricks

Docker-compose is a very useful tool when you need to orchestrate multiple containers. Here are some useful tips and best practises. Build container Build and start containers in detached mode:

–no-deps – ignore the container dependency –no-cache – ignore the cache Container logs Control containers The following command will stop and the remove all…

Read More

MySQL Normalization

Database normalization is a process of organizing fields and tables which reduces dependancy of data and redundancy. There are 6 normal form. In most cases it’s only need 3 normal form to achieve normalization. What normal forms are? 1NF (First Normal Form) Rules Each table cell should contain a single value Each record needs to…

Read More