SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

CONCURRENCY / NOTES</>↗
Concurrency11 May 2025

How do I implement a custom blocking queue for special use cases?

To implement a custom blocking queue in Java for special use cases, you can extend the AbstractQueue or directly implement the BlockingQueue<T> interface available in the java.util.concurrent package. A blocking queue is a data structure that supports thread-safe operations and blocks threads attempting to enqueue or dequeue elements when the queue is full or empty, […]

Wayan · 5 min read
JSCH / NOTES</>↗
JSch10 May 2025

How do I create a reusable SSH connection pool with JSch in a multithreaded application?

Creating a reusable SSH connection pool using JSch in a multithreaded application involves managing connections efficiently and ensuring thread safety. JSch (Java Secure Channel) does not natively provide a connection pooling feature, so you have to implement it manually using a pooling library or write your own pooling logic. Below is the step-by-step guide to […]

Wayan · 4 min read
CONCURRENCY / NOTES</>↗
Concurrency10 May 2025

How do I build scalable parallel algorithms using ForkJoinTask?

Building scalable parallel algorithms using ForkJoinTask in Java involves employing the Fork/Join framework, provided by the java.util.concurrent package. The Fork/Join framework is designed for recursive divide-and-conquer tasks that can be efficiently split into smaller subtasks that are processed in parallel. Here’s how you can approach building scalable parallel algorithms using ForkJoinTask: Steps to Build Scalable […]

Wayan · 5 min read
SPRING CORE / NOTES</>↗
Spring Core10 May 2025

How do I scan packages for components automatically in Spring?

In Spring, component scanning is a feature that allows the framework to detect and register Beans (annotated with @Component, @Service, @Repository, @Controller, or any custom stereotype annotations) automatically during application startup. Here’s how you can enable and use this feature effectively: 1. Enable Component Scanning in a Java Configuration Class To enable automatic scanning, use […]

Wayan · 3 min read
CONCURRENCY / NOTES</>↗
Concurrency10 May 2025

How do I fine-tune thread pool behavior with ThreadPoolExecutor?

Fine-tuning thread pool behavior using ThreadPoolExecutor in Java is a powerful way to control thread execution and optimize performance according to your application’s needs. Here’s a detailed guide including key parameters and customization options: 1. ThreadPoolExecutor Overview The ThreadPoolExecutor class in the java.util.concurrent package provides a configurable thread pool implementation that lets you manage thread […]

Wayan · 4 min read
KOTLIN / NOTES</>↗
Kotlin09 May 2025

How do I use lambdas and anonymous functions in Kotlin?

In Kotlin, lambdas and anonymous functions are fundamental features used for functional programming. They allow you to write concise and flexible code. Here’s an overview on how to use them: 1. Lambda Expressions A lambda is an anonymous function defined using curly braces {}. It’s a short way to declare a function without explicitly naming […]

Wayan · 3 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.