Please turn JavaScript on

Code to Architecture

Subscribe to Code to Architecture’s news feed.

Click on “Follow” and decide if you want to get news from Code to Architecture via RSS, as email newsletter, via mobile or on your personal news page.

Subscription to Code to Architecture comes without risk as you can unsubscribe instantly at any time.

You can also filter the feed to your needs via topics and keywords so that you only receive the news from Code to Architecture which you are really interested in. Click on the blue “Filter” button below to get started.

Title: Code to Architecture

Publisher:  sandeepbhardwaj01
Message frequency:  0.14 / day

Message History

Date-time bugs are common in distributed systems:

wrong timezone assumptions DST edge-case failures inconsistent serialization formats mixing local and global time concepts

Java 8 java.time API solves most of these when modeled correctly.

Core Types and When to Use Them Instant: machine timestamp in UTC (event time, audit fields) LocalDate: date with...

Read full story

Java 8 introduced lambda expressions, fundamentally changing how we write backend code.

For Spring Boot developers, lambdas are everywhere:

Streams Collections CompletableFuture ExecutorService Optional Functional interfaces

This article explains:

Why lambdas were introduced How they solve real backend problems Practical examples Architectur...

Read full story
Introduction

Before Java 8, interfaces in Java were strictly abstract. They could only declare method signatures, not provide implementations.

This created a serious design limitation:

If you wanted to add a new method to an existing interface used across many implementations, you would break all implementing classes.

This was a major issue for the Ja...


Read full story

Two Pointers is one of the most effective techniques for turning brute-force array/string solutions into linear-time solutions.

If you build backend systems, this matters for the same reason it matters in interviews: you learn to manage state and constraints precisely, with minimal memory overhead and predictable performance.

Why Do We Need Tw...

Read full story

In most backend systems, a big part of business logic is data transformation:

filter invalid inputs enrich entities map entities to DTOs aggregate metrics prepare response models

Before Java 8, this was mostly implemented with mutation-heavy loops. Streams introduced a declarative model that improves readability and composition when used with discipline.

...

Read full story