---
title: "Discussion on \"Using Bitmasks for Category Indexing Inside a Reference ID\" | Hashnode"
description: "Discussion on \"Using Bitmasks for Category Indexing Inside a Reference ID\". The cleaner way to pack multiple categories into a fixed-length ID"
url: "https://hashnode.com/posts/using-bitmasks-for-category-indexing-inside-a-reference-id/69dd04edf57346bc1e107f93"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using Bitmasks for Category Indexing Inside a Reference ID](https://devtofree.hashnode.dev/using-bitmasks-for-category-indexing-inside-a-reference-id?utm_source=hashnode&utm_medium=feed)

The cleaner way to pack multiple categories into a fixed-length ID

Apr 13 · 6 min read · devtofree.hashnode.dev  
Read the article

-   [#system-design](https://hashnode.com/tag/system-design)
-   [#go](https://hashnode.com/tag/go)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#binary-search-algorithm](https://hashnode.com/tag/binary-search-algorithm)
-   [#indexing](https://hashnode.com/tag/indexing)

## Written by

[Leonie Christina](https://hashnode.com/@leoniechristinaa)

@leoniechristinaa · Jakarta, Indonesia

  
[View profile](https://hashnode.com/@leoniechristinaa)

Building systems by day, breaking them down into words by night.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
