data structures

Tag: data structures

12 posts
remoras diaries: part 1
stochastic scritches icon
stochastic scritches

remoras diaries: part 1

i need a place for notes that works the way i want (and need).

·
Jul 21
·
Visualizing Ukkonen's Suffix Tree Algorithm
Alessandro Bahgat icon
Alessandro Bahgat
abahgat.com

Visualizing Ukkonen's Suffix Tree Algorithm

I learned algorithms from textbooks and papers, building mental models from pseudocode and hand-drawn sketches. The hardest part was never reading the algorithm: it was seeing what it was actually doing to the data structure in memory. This post is the tool I wish I had back then.

·
Mar 9
·
Three flavors of sorting Go slicesThree flavors of sorting Go slices
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Three flavors of sorting Go slices

Compare three Go slice sorting methods: sort.Interface, sort.Slice with closures, and modern generic slices.Sort with type safety.

·
Mar 21 '25
·
Nil comparisons and Go interfaceNil comparisons and Go interface
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Nil comparisons and Go interface

Debug tricky nil comparisons in Go interfaces. Understand dynamic types, type assertions, and use reflect for generic nil checking.

·
Mar 11 '25
·
Go slice gotchasGo slice gotchas
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Go slice gotchas

Avoid common Go slice mistakes: shared backing arrays, nil vs empty slices, append behavior, and slice copying pitfalls explained.

·
Feb 5 '25
·
Anselm Eickhoff - Jazz Tools
Devtools FM icon
Devtools FM
devtools.fm

Anselm Eickhoff - Jazz Tools

Anselm Eickhoff presents Jazz Tools, reimagining client-server boundaries for local-first apps with collaborative data structures.

·
Dec 1 '24
·
Topological sortTopological sort
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Topological sort

Implement topological sorting in Go to order tasks by dependencies. Process directed acyclic graphs for build systems and scheduling.

·
Oct 12 '24
·
Type assertion vs type switches in GoType assertion vs type switches in Go
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Type assertion vs type switches in Go

Master Go type assertions with i.(T) syntax and type switches. Extract concrete types from interfaces safely with ok idiom examples.

·
Jan 30 '24
·
Associative arrays in BashAssociative arrays in Bash
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Associative arrays in Bash

Learn how to use associative arrays in Bash to create key-value pairs, mimic dictionaries, and manage complex data structures in shell scripts.

·
May 2 '23
·
Pick random values from an array in SQL(ite)Pick random values from an array in SQL(ite)
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Pick random values from an array in SQL(ite)

Emulate Python's random.choice in SQLite using JSON arrays and the random() function. Populate tables with realistic test data efficiently.

·
Sep 1 '22
·
Pre-allocated lists in PythonPre-allocated lists in Python
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Pre-allocated lists in Python

Understand CPython list memory allocation: how lists store pointer references, grow dynamically, and when pre-allocation with [None]*n helps.

·
Mar 26 '22
·
Interfaces, mixins and building powerful custom data structures in PythonInterfaces, mixins and building powerful custom data structures in Python
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Interfaces, mixins and building powerful custom data structures in Python

Build custom data structures with Python's collection.abc mixins, abstract base classes, and interfaces for dict-like and set-like objects.

·
Jul 2 '20
·