---
title: "#collections articles | Hashnode"
description: "Explore 27 articles tagged #collections on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/collections"
---

Tag

# #collections

27 posts · 1 followers

[Zero Heartbeat](https://hashnode.com/@clustron) · [1d ago](https://hashnode.com/posts/how-a-decompiler-recognizes-a-custom-collection-builder/6afc0c03acabd15db72dcfbd)

### [How a decompiler recognizes a custom collection builder](https://delta1labs.hashnode.dev/how-a-decompiler-recognizes-a-custom-collection-builder?utm_source=hashnode&utm_medium=feed)

Collection expressions were sold as syntax sugar, but the interesting part is that the sugar is extensible. Put \[CollectionBuilder\] on a type and \[1, 2, 3\] will build an instance of it. The catch, for

8 min read · [delta1labs.hashnode.dev](https://delta1labs.hashnode.dev/how-a-decompiler-recognizes-a-custom-collection-builder?utm_source=hashnode&utm_medium=feed)

[Gowtham Muthuvel](https://hashnode.com/@GowthamMuthuvel) · [Oct 27](https://hashnode.com/posts/java-comparator-a-minus-b-overflow-bug/6ae06f18fe43b5b6b39e8cc2)

### [Why (a, b) -> a - b Is a Bug in Java Comparators](https://gowthammuthuvel.hashnode.dev/java-comparator-a-minus-b-overflow-bug?utm_source=hashnode&utm_medium=feed)

a - b comparators overflow and silently mis-sort lists and heaps. Real Java output, the long/double cast traps, and the one-line fixes.

8 min read · [gowthammuthuvel.hashnode.dev](https://gowthammuthuvel.hashnode.dev/java-comparator-a-minus-b-overflow-bug?utm_source=hashnode&utm_medium=feed)

[Wade Thomas](https://hashnode.com/@wadethomastt) · [Aug 8](https://hashnode.com/posts/directus-collections-explained-fields-types-setup-directus-basics-part-1/6a77c036f9e10da5c2c60c13)

### [Directus Collections Explained (Fields, Types & Setup) — Directus Basics Part 1](https://blog.northernrangedigital.com/directus-collections-explained-fields-types-setup-directus-basics-part-1?utm_source=hashnode&utm_medium=feed)

A beginner's walkthrough of Directus collections — what they are, the two ways to create one, and a full breakdown of the core field types, built through a real "products" collection example.

4 min read · [blog.northernrangedigital.com](https://blog.northernrangedigital.com/directus-collections-explained-fields-types-setup-directus-basics-part-1?utm_source=hashnode&utm_medium=feed)

[Vikaskumar](https://hashnode.com/@vikaskumarpandey) · [Aug 5](https://hashnode.com/posts/salesforce-apex-deep-dive-apex-sets-explained-uniqueness-fast-lookups-and-deduplication-patterns/6a8170501b22671152b71188)

### [⚡Salesforce Apex Deep Dive: Apex Sets Explained: Uniqueness, Fast Lookups, and Deduplication Patterns](https://vikaskumarpandey.hashnode.dev/salesforce-apex-deep-dive-apex-sets-explained-uniqueness-fast-lookups-and-deduplication-patterns?utm_source=hashnode&utm_medium=feed)

A practical guide to Apex Sets — why they beat Lists for membership checks, the Id-deduplication pattern you'll use constantly, and fresher traps to avoid.

10 min read · [vikaskumarpandey.hashnode.dev](https://vikaskumarpandey.hashnode.dev/salesforce-apex-deep-dive-apex-sets-explained-uniqueness-fast-lookups-and-deduplication-patterns?utm_source=hashnode&utm_medium=feed)

[Vikaskumar](https://hashnode.com/@vikaskumarpandey) · [Aug 4](https://hashnode.com/posts/salesforce-apex-deep-dive-apex-lists-explained-ordered-collections-bulkification-and-fresher-traps-to-avoid/6a780ddc34ffd905bca3795f)

### [⚡Salesforce Apex Deep Dive: Apex Lists Explained: Ordered Collections, Bulkification, and Fresher Traps to Avoid](https://vikaskumarpandey.hashnode.dev/salesforce-apex-deep-dive-apex-lists-explained-ordered-collections-bulkification-and-fresher-traps-to-avoid?utm_source=hashnode&utm_medium=feed)

Everything you need on Apex Lists: syntax, common methods, the index-out-of-bounds trap, and why "never DML inside a loop" starts here.

10 min read · [vikaskumarpandey.hashnode.dev](https://vikaskumarpandey.hashnode.dev/salesforce-apex-deep-dive-apex-lists-explained-ordered-collections-bulkification-and-fresher-traps-to-avoid?utm_source=hashnode&utm_medium=feed)

[Coding Droplets](https://hashnode.com/@codingdroplets) · [Jun 17](https://hashnode.com/posts/csharp-collections-generics-interview-questions-senior-dotnet-2026/6a32a4e8355a0dcdb0cfd8c3)

### [C# Collections and Generics Interview Questions for Senior .NET Developers (2026)](https://codingdroplets.hashnode.dev/csharp-collections-generics-interview-questions-senior-dotnet-2026?utm_source=hashnode&utm_medium=feed)

Top C# collections and generics interview questions for senior .NET developers: List, Dictionary, HashSet, ConcurrentDictionary, and more.

15 min read · [codingdroplets.hashnode.dev](https://codingdroplets.hashnode.dev/csharp-collections-generics-interview-questions-senior-dotnet-2026?utm_source=hashnode&utm_medium=feed)

[Prity Kumari](https://hashnode.com/@pritycodes) · [Jun 12](https://hashnode.com/posts/java-list-interface-explained-arraylist-linkedlist-stack-vector/6a2c49cf92855d10c7e18764)

### [Java List Interface Explained: ArrayList, LinkedList, Stack & Vector](https://pritycodes.hashnode.dev/java-list-interface-explained-arraylist-linkedlist-stack-vector?utm_source=hashnode&utm_medium=feed)

Learn Java List Interface with simple analogies from a Mechanical Engineering student. ArrayList, LinkedList, Stack and Vector explained with clean Java code, key characteristics, and real DSA use cases for beginners.

5 min read · [pritycodes.hashnode.dev](https://pritycodes.hashnode.dev/java-list-interface-explained-arraylist-linkedlist-stack-vector?utm_source=hashnode&utm_medium=feed)

[Muhammad Yafi Alhakim](https://hashnode.com/@yafialhakim) · [Apr 7](https://hashnode.com/posts/collections-the-dynamic-containers/69d4dfe014dc82f287dd9803)

### [Collections: The "Dynamic Containers"](https://yafi.hashnode.dev/collections-the-dynamic-containers?utm_source=hashnode&utm_medium=feed)

In JavaScript, every Array or Object is dynamic. You can add or remove elements whenever you want. In Rust, we use Collections when we need that same flexibility. Think of Collections as Dynamic Toolboxes. While Primitives like arrays have a fixed s...

2 min read · [yafi.hashnode.dev](https://yafi.hashnode.dev/collections-the-dynamic-containers?utm_source=hashnode&utm_medium=feed)

[huda elhady](https://hashnode.com/@huda_elhady) · [Mar 23](https://hashnode.com/posts/swift-performance-stop-creating-intermediate-arrays-with-lazy/69c11cf0545ab963126fb6e6)

### [Swift Performance: Stop Creating Intermediate Arrays with .lazy](https://hudaios.hashnode.dev/swift-performance-stop-creating-intermediate-arrays-with-lazy?utm_source=hashnode&utm_medium=feed)

so what happens when we write this code struct User { let name: String let isActive: Bool let avatarURL: URL } func search(query: String, in users: \[User\]) -> \[UserRow\] { Array(

2 min read · [hudaios.hashnode.dev](https://hudaios.hashnode.dev/swift-performance-stop-creating-intermediate-arrays-with-lazy?utm_source=hashnode&utm_medium=feed)

[Abheeshta P](https://hashnode.com/@abheeshta) · [Nov 20, 2025](https://hashnode.com/posts/java-series-5-collections-and-exceptions/691f28be67ea0072859b810b)

### [Java Series #5: Collections & Exceptions](https://abheeshta-java.hashnode.dev/java-series-5-collections-and-exceptions?utm_source=hashnode&utm_medium=feed)

A Deep Dive into Java’s Core Utility & Error-Handling Tools

4 min read · [abheeshta-java.hashnode.dev](https://abheeshta-java.hashnode.dev/java-series-5-collections-and-exceptions?utm_source=hashnode&utm_medium=feed)
