Code Explainers
Code explainers tagged #immutability
php
<?php namespace App\Support;
Merging query params onto a URL in PHP
url-parsing
query-strings
immutability
Intermediate
8 steps
java
package com.example.payments.config; import jakarta.validation.constraints.Min; import jakarta.validation.constraints.NotBlank;
Type-safe config with Spring records
configuration
validation
records
Intermediate
6 steps
typescript
// A module-scoped Singleton: the single instance lives in this module's // closure and is never exposed directly. interface AppConfig {
A module-scoped Singleton in TypeScript
singleton
generics
encapsulation
Intermediate
7 steps