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
Validate XML against an XSD that imports other XSDs
This post demonstrates how to validate XML against XSD that imports other XSDs. This is different from validating against multiple independent XSDs.
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
EJB3.x with JBoss AS 7: Session Beans and the Remote Clients
EJB3.x with JBoss AS 7: Session Beans and the Remote Clients
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
CRUD Operations with Rust Rocket SQLX with MySQL
This post shows how to use Rust Rocket SQLX for MySQL for basic CRUD (Create, Retrieve, Update, and Delete) operations. Prerequisites For Building the Rust Application Based on Rocket We used the following items for this post. Rust Stable –
IntelliJ Maven Malformed \uxxxx encoding
When working on Spring Boot projects – JPA, JDBC, or RESTful API, we sometimes encounter the error IntelliJ Maven Malformed \uxxxx encoding in Windows 10. The chances of this error popping up is very high when we work on multiple
Deploy MySQL in Kubernetes in Docker for Windows
This post will probably be for people who are new to Kubernetes but have worked with Docker. Also, this post oversimplifies some explanations of how things work to make the content more easily digestible. When we deploy MySQL in Kubernetes