Programming

Composition in Java Example — step-by-step Programming tutorial on Progressive Robot

Composition in Java Example

Composition in java is the design technique to implement has-a relationship in classes. We can use [java inheritance](/community/tutorials/inheritance-java-example "Inheritance in Java Example") or Object composition in java for code reuse. Composition in Java ![composition in java, java composition, java composition example](images/composition-in-java-example-section-1.png) Java composition is achieved by using instance variables that refers to other objects. For […]

Read more
Thread Safety in Java Singleton Classes — step-by-step Programming tutorial on Progressive Robot

Thread Safety in Java Singleton Classes

Singleton is one of the most widely used creational design pattern to restrict the object creation by applications. In real world applications, resources like Database connections or Enterprise Information Systems (EIS) are limited and should be used wisely to avoid any resource crunch. To achieve this, we can implement Singleton design pattern to create a wrapper class around the resource and limit the number of object created at runtime to one.

Read more
What is += Addition Assignment Operator in Java? — step-by-step Programming tutorial on Progressive Robot

What is += Addition Assignment Operator in Java?

It's the Addition assignment operator. Let's understand the += operator in Java and learn to use it for our day to day programming. x += y in Java is the same as x = x + y. It is a compound assignment operator. Most commonly used for incrementing the value of a variable since x++ […]

Read more
Использование функций с переменным количеством аргументов в Go — step-by-step Programming tutorial on Progressive Robot

Использование функций с переменным количеством аргументов в Go

Функция с переменным количеством аргументов — это функция, которая принимает ноль, одно или больше значений в качестве одного аргумента. Хотя функции с переменным количеством аргументов встречаются редко, их можно использовать, чтобы сделать код более чистым и удобным для…

Read more
How To Create Web Notifications Using Laravel and Pusher Channels — step-by-step Programming tutorial on Progressive Robot

How To Create Web Notifications Using Laravel and Pusher Channels

Many web applications include an in-app notification system that will notify you instantly when someone carries out an action related to you or your account. On Facebook, you will be notified when someone likes your status, or when someone comments on your profile. This tutorial will guide you through replicating this functionality by creating a web-based notification system using [Laravel](https://laravel.com) and [Pusher](https://pusher.com).

Read more
Java Spliterator — step-by-step Programming tutorial on Progressive Robot

Java Spliterator

URL: https://www.progressiverobot.com/java-spliterator/ Java Spliterator is one of the four iterators – Enumeration, [Iterator](/community/tutorials/java-iterator), [ListIterator](/community/tutorials/java-listiterator) and Spliterator. Java Spliterator Like Iterator and ListIterator, Spliterator is a Java Iterator, which is used to iterate elements one-by-one from a [List](/community/tutorials/java-list) implemented object. Some important points about Java Spliterator are: Java Spliterator is an interface in [Java Collection](/community/tutorials/collections-in-java-tutorial) API. […]

Read more
How To Code in Go eBook — step-by-step Programming tutorial on Progressive Robot

How To Code in Go eBook

This book is designed to introduce you to writing programs with the Go programming language. You’ll learn how to write useful tools and applications that can run on remote servers, or local Windows, macOS, and Linux systems for development.

Read more
Defining Methods in Go — step-by-step Programming tutorial on Progressive Robot

Defining Methods in Go

Methods are Go functions that operate on instances of a specific type. Methods allow you to communicate not only what the data is, but also how that data should be used. Methods are the core concept that makes Go interfaces possible.

Read more
CHAT