From 8fc267d4bb5e6333a1b94c6f4db2b5dc2f6280e8 Mon Sep 17 00:00:00 2001 From: soc Date: Fri, 5 Jan 2024 20:43:55 +0100 Subject: [PATCH] Update equality-and-identity-part1.md --- _interfaces/base-uid.md | 12 +++++++----- _languages/equality-and-identity-part1.md | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/_interfaces/base-uid.md b/_interfaces/base-uid.md index 5b75f097..5022061b 100644 --- a/_interfaces/base-uid.md +++ b/_interfaces/base-uid.md @@ -6,14 +6,16 @@ markdeep: true ### Motivation -- Compact - Uses 20 characters for 120 bits +- Compact + Uses 20 characters for 120 bits. - Compatible - Can be used in URLs, form-fields and as HTML attributes + Can be used in URLs, form-fields and as HTML attributes. +- Convenient + The bitstring and the encoded string sort the same. - Database-friendly - Time-prefix improves database locality and performance + Time-prefix improves database locality and performance. - Efficient - Makes most out of the available bits + Makes most out of the available bits. ### Structure of a BaseUid diff --git a/_languages/equality-and-identity-part1.md b/_languages/equality-and-identity-part1.md index 302492c4..68343b59 100644 --- a/_languages/equality-and-identity-part1.md +++ b/_languages/equality-and-identity-part1.md @@ -14,7 +14,7 @@ on references, often called _reference equality_. Here are a few examples: #### Java - `==` implements reference equality on reference types. -- `Object.equals` and `Objects.equals` implement reference equality be default, but can be overridden to implement value equality on reference types. +- `Object.equals` and `Objects.equals` implement reference equality by default, but can be overridden to implement value equality on reference types. - `Arrays.deepEquals` implements value equality on arrays (`equals` does reference equality on arrays). - `==` implements value equality on primitive types. - Primitive types can be implicitly converted to special wrapper classes, which implement `equals` slightly differently.