Tagged articles
4 articles
Page 1 of 1
JavaScript
JavaScript
Apr 27, 2025 · Frontend Development

Mastering JavaScript Object Copying: Shallow vs Deep Techniques

Understanding how JavaScript handles object references is crucial, as improper copying can cause unexpected side effects; this guide explains the differences between shallow and deep copies, demonstrates various methods—including Object.assign, spread operator, JSON serialization, lodash, and the native structuredClone API—and offers practical tips for choosing the right strategy.

JavaScriptObject Copyperformance
0 likes · 10 min read
Mastering JavaScript Object Copying: Shallow vs Deep Techniques
Java Architect Essentials
Java Architect Essentials
Jan 8, 2024 · Backend Development

Using MapStruct for Efficient Java Bean Copying and Mapping

This article explains why manual property copying in Java is inefficient, compares several runtime bean‑copy utilities, and demonstrates how MapStruct provides a compile‑time, type‑safe, high‑performance solution for shallow and deep object mapping, including handling of collections and ignored fields.

JavaObject Copybean-mapping
0 likes · 13 min read
Using MapStruct for Efficient Java Bean Copying and Mapping