Aggregate gathered number of units using MySQL’s With Rollup
How to List a Specific number of Random Rows in MySQL
Let’s say you have a list of 10 items you want to display but these items are randomly chosen items. In MySQL, you use the rand() function in the ORDER BY clause. This article demonstrates how to list a specific number of random rows my MySQL.
The Composite Design Pattern In Rust
This post shows how to use the Composite design pattern in Rust. Also, it offers a sample implementation with two levels of composition. For instance, we have a group of lists of products. The Composite Design Pattern Use Case Our
Java – Using Amazon Simple Queue Service (AWS SQS)
This post is about using Amazon Simple Queue Service (SQS) in Java with Eclipse and AWS Toolkit Plugin. It also demonstrates how to create queues, send messages to and receive messages from them.
The Iterator Design Pattern Example In Rust
This post shows how to use the Iterator design pattern in Rust without using the Iterator trait or any crate. Suppose we have a struct with multiple collections of various types that implement the same trait. The Iterator Design Pattern
The Composite Design Pattern In Simple Words
The Composite design pattern helps us deal with a type of object – individually or as a group. In other words, our codes should be able to process that object alone. Also, our codes can deal with a collection of
The Singleton Design Pattern In Simple Words
Be mindful when creating objects; sometimes, we only need one of a specific type. Creating a single object that lives throughout the lifetime of a program is a form of Singleton design pattern. As simple as the concept may be,
The Decorator Design Pattern In Simple Words
The Decorator design pattern is an alternative to subclassing that makes our codes flexible and maintainable. Furthermore, it allows us to wrap around existing objects and dynamically modify their behaviors (methods). When To Use This Pattern? When do we use
Selection Sort Algorithm Implementation in Java
This article demonstrates how to implement Selection Sort algorithm in Java.
The Facade Design Pattern In Simple Words
Do you have codes with an overwhelming number of service and DAO methods? Which group of method calls represent which use case? If that is one of the predicaments you are having with your codebase, it is probably wise to