Tagged articles
5 articles
Page 1 of 1
Top Architect
Top Architect
Apr 26, 2026 · Backend Development

Why the Service Layer Should Not Return a Result Object in Java

The article explains why returning a Result wrapper from the Service layer couples business and presentation logic, reduces reusability, complicates testing and transaction handling, and suggests keeping services pure by returning domain objects and handling errors via exceptions.

Exception HandlingService Layerarchitecture
0 likes · 12 min read
Why the Service Layer Should Not Return a Result Object in Java
DeepHub IMBA
DeepHub IMBA
Mar 21, 2026 · Backend Development

9 Python libraries that dramatically improve production‑code quality

This article introduces nine third‑party Python libraries—glom, boltons, beartype, result, whenever, pyinstrument, dirty‑equals, stamina, and pyfunctional—that address recurring pain points such as nested data access, missing stdlib features, runtime type safety, error handling, timezone bugs, performance profiling, testing assertions, retry logic, and data pipelines, showing concrete code examples and practical benefits.

Pythonbeartypedirty-equals
0 likes · 15 min read
9 Python libraries that dramatically improve production‑code quality
AndroidPub
AndroidPub
Jul 17, 2025 · Fundamentals

Mastering Kotlin’s runCatching: A Cleaner Alternative to try‑catch

This article explores Kotlin’s runCatching function, compares it with traditional try‑catch‑finally, demonstrates its usage with practical code examples, explains the Result type and its methods, and provides best‑practice guidelines for resource management and when to prefer runCatching over classic exception handling.

Exception HandlingKotlinfunctional programming
0 likes · 14 min read
Mastering Kotlin’s runCatching: A Cleaner Alternative to try‑catch
Java Backend Technology
Java Backend Technology
Jul 12, 2024 · Backend Development

Designing a Clean API Response Wrapper in Java Spring

This article explains how to standardize API responses in a micro‑service architecture by defining a JSON result format with code, message, and data fields, using HTTP‑like status code ranges, and automatically wrapping controller outputs with a custom @ResponseResult annotation and Spring's ResponseBodyAdvice.

APIResponse wrapperannotations
0 likes · 8 min read
Designing a Clean API Response Wrapper in Java Spring