Point Namecheap Domain To EC2 Using AWS Route53

This post demonstrates how to use a Namecheap domain in AWS and point it to an EC2 instance via Route53. We will verify the setup by accessing an Apache Webserver in the EC2 instance via www.origdoc.com. Basic Requirements Before anything,

How To Declare And Use Variables In Rust

Variables in Rust are similar to variables in other high-level programming languages, and how we declare and use them is pretty straightforward. There are several types of variables, and their declaration may differ from each other. Types Of Variables In

Can we use a Layered Architecture Pattern in Rust?

Can we use a layered architecture pattern in a Rust codebase? Like using controller, service, and persistent layers? Yes, we can, but we may need to implement it slightly differently than in most programming languages like Java, C#, etc. How

Panic and Result – Handle Errors in Rust

Errors are a part of Software, and Rust has features to terminate an application using the panic macro and handle failures gracefully with the Result enum. These Rust’s features are similar to the concept of exception handling in other programming

Using #[non_exhaustive] for Non-exhaustive Rust Structs

Non-exhaustive structs will future-proof our codes. We use Struct expressions to instantiate structs and they’re JSON-like expression in appearance with all fields present. When we update a struct with a new field,  all expressions must be updated to include that field.

Getting Familiar With Java TreeSet With Examples

The Java TreeSet is a good choice when our codes, for example, do a lot of frequent read-and-write operations. It is a derivation of a Set, which means it still deals with unique items. Also, it has additional features like

Spring MVC PathVariable Annotation

Sometimes we want to send values to our web application as the path of the URL (or URI) path. For example, /tenants/123 where value 123 represents a tenant Id. To independently access the value in Spring MVC, we use the