This post demonstrates how to use individual error message for each field validated in JSF. Previously, we used “combined” error messages displayed in only one location on the page
Kotlin – Using Lists
This post shows how to create and use Lists in Kotlin. It will also briefly touch on mutable and immutable lists.
How to use the PHP Countable Interface
Background This article demonstrates how to implement and use the Countable interface in PHP. The Countable interface is normally used in conjunction with other interfaces (i.e., Iterator, ArrayAccess, etc.) to create data structures like PHP SPL Library’s SplDoublyLinkedList and SplStack.
Set all bean Properties with values from .properties file
This post demonstrates how to set all the bean properties with values from .properties file using Spring Boot. We are not going to set them one at a time. We want to set them all at the same time using the following Spring annot
The Proxy Design Pattern In Simple Words
We should not modify existing tested codes if we can help ourselves. Instead, we could create new codes to wrap around them that provide additional features. Then, present the new codes to the client code as the original codes. That
Design Patterns Are The Ultimate Toolkit For Programmers
Design patterns are the ultimate toolkit for programmers. Furthermore, we use them to create maintainable software. This post goes through the design patterns and provides sample Java codes. The Need For Design Patterns Design patterns are known solutions to common
The Prototype Design Pattern In Simple Words
The Prototype design pattern creates an object that serves as a template when we need copies of it. Then, we slightly modify these copies at runtime by giving them new properties and behaviors. Unlike other design patterns, our usage of
Rust – Generate EPCIS 1.2 XML With Sample Codes
Processing a considerable number of large XML files may require a lot of memory and processing power. With Rust, we can create applications that process huge XML files with a relatively small memory footprint yet are still performant. This post
(Bad Practice) Wait Until All Threads Complete Execution in Java
This post shows an example of a bad practice I saw in one of my Java projects seven years ago. It also has a naive implementation of concurrency in Java, wherein it waits for all threads to complete. Moreover, it
Migrate from MySQL to PostgreSQL Using Pgloader Docker Container
This post shows how to migrate a database from MySQL to a PostgreSQL instance running on Windows using the pgloader (running as a Docker container) to perform the migration from MySQL to PostgreSQL. From within the container, we use docker.for.win.localhost