Tags

Immutability

Immutability

0 lessons
2 code snippets
5 question banks
1 system design
2 community items

immutability

Question Banks

5 items
Question Bank

JavaScript Object Reference and Key Coercion Traces

Six traces covering object-key stringification, reference vs literal equality, `Object.create` prototype chains, and shallow-copy aliasing with arrays.

JavaScript
quiz
references
immutability
js-language

430

2

Easy
Question Bank

JavaScript Immutability and References Quiz

Lock down objects with `Object.freeze`, build read-only properties with `Object.defineProperty`, and reason about why React leans on immutable updates.

JavaScript
quiz
immutability
references
interview-prep

968

5

Medium
Question Bank

JavaScript Immutable Object Key Removal: Two Approaches Quiz

Two seeded approaches to remove an object key without mutation (spread + delete, reduce + filter), plus two companions on destructure-and-drop and a deep-clone caveat.

JavaScript
quiz
references
immutability
js-spread-rest

1.1k

26

Easy
Question Bank
Premium

JavaScript Deep Object Comparison: Two Approaches Quiz

Diff the keys of two plain objects two ways (JSON.stringify shortcut and a recursive walker), plus two companions on circular references and a Map-based structural diff.

JavaScript
quiz
references
immutability
interview-prep

642

17

Hard
Question Bank
Premium

JavaScript Immutable Key Masking: Two Approaches Quiz

Mask the values of specified keys deeply, leaving the last three characters, two ways (recursive clone + mask and structuredClone + mask), plus two companions on path-based targeting and a JSON.stringify replacer variant.

JavaScript
quiz
references
immutability
interview-prep

385

11

Hard

System Design

1 article
System Design
Premium

Design Object Storage (S3)

Design an S3-style object storage service that stores trillions of immutable blobs ranging from 1 KB to 5 TB at eleven nines of durability and a fraction of the cost of triple replication. The interview centerpiece is the trio that makes this economical: erasure coding (typically 12 data shards plus 4 parity shards) instead of full replicas; a separate metadata service that maps object keys to chunk locations; and multi-part upload that lets a 5 TB object stream from many sources in parallel. We also cover the bucket/object namespace, lifecycle policies that move cold objects to colder tiers, immutability with versioning, pre-signed URLs for direct client transfer, and the move from eventual to strong read-after-write consistency that AWS shipped in 2020.

design-object-storage
case-study
infrastructure-storage
s3
object-storage
erasure-coding
metadata-service
multi-part-upload
immutability
system-design
advanced
premium

1.1k

35

Hard