Three flavors of sorting Go slicesCompare three Go slice sorting methods: sort.Interface, sort.Slice with closures, and modern generic slices.Sort with type safety.Redowan Delowar·Mar 22·5 min readFollowGoData Structures
Nil comparisons and Go interfaceDebug tricky nil comparisons in Go interfaces. Understand dynamic types, type assertions, and use reflect for generic nil checking.Redowan Delowar·Mar 12·4 min readFollowGoData Structures
Go slice gotchasAvoid common Go slice mistakes: shared backing arrays, nil vs empty slices, append behavior, and slice copying pitfalls explained.Redowan Delowar·Feb 6·5 min readFollowGoData Structures
Topological sortImplement topological sorting in Go to order tasks by dependencies. Process directed acyclic graphs for build systems and scheduling.Redowan Delowar·Oct 13·4 min readFollowGoData Structures
Type assertion vs type switches in GoMaster Go type assertions with i.(T) syntax and type switches. Extract concrete types from interfaces safely with ok idiom examples.Redowan Delowar·Jan 31·5 min readFollowGoTILData Structures
Associative arrays in BashLearn how to use associative arrays in Bash to create key-value pairs, mimic dictionaries, and manage complex data structures in shell scripts.Redowan Delowar·May 3·4 min readFollowShellUnixTILData Structures
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.Redowan Delowar·Sep 2·3 min readFollowDatabaseSQLData Structures
Pre-allocated lists in PythonUnderstand CPython list memory allocation: how lists store pointer references, grow dynamically, and when pre-allocation with [None]*n helps.Redowan Delowar·Mar 27·3 min readFollowPythonPerformanceData Structures
Interfaces, mixins and building powerful custom data structures in PythonBuild custom data structures with Python's collection.abc mixins, abstract base classes, and interfaces for dict-like and set-like objects.Redowan Delowar·Jul 3·18 min readFollowPythonData Structures