Lab
My digital garden — the skills I actually have, the projects living rent-free in my head, and notes about myself. Rough by design, edited forever.
This is my lab — not a blog. A blog post is finished; these notes are not. I keep them the way I keep a workshop: things half-built on the bench, labels on the drawers, and a map on the wall so I can find my way back.
Four drawers:
- Skills — what I can actually do, and how deep it really goes.
- Ideas — projects that exist in my head, some of them already in code.
- Me — who is writing all of this.
- Arabic — a course I built to learn to read Arabic script, with a voice behind every letter.
Use the explorer on the left to walk the tree, the graph on the right to see how
notes connect. Every dotted link is a note; every #tag is a node too.
Everything in the garden
Push qilingan kalit tarixda qoladi: git show bilan topamiz, avval rotate qilamiz, kerak boʻlsa filter-repo bilan tozalaymiz va .gitignore tuzogʻini koʻramiz.
Express'dagi ikki endpoint'li API'ni Go'da 20 qatorda yozamiz: go mod, go run/go build, bitta binary, GOOS/GOARCH va FROM scratch'dagi cgo tuzogʻi.
We rewrite a two-endpoint Express API in 20 lines of Go: go mod, go run/go build, one binary, GOOS/GOARCH and the cgo trap in FROM scratch.
What a variable is, the difference between := and =, how x = x + 1 runs, and what a copy is: for people who have never written code.
AI kod yozadi, lekin natija uchun javobgar siz.
Why Go const is not JS const, where an untyped constant gets its type, why time.Sleep(2) = 2 ns and how a status added mid-iota breaks the database.
In Go, = and passing to a function copy a struct: the range trap, &user and *User, the struct-in-map error, slices vs arrays.
Dastur, kompilyator va terminal nima, Salom, dunyo dasturining har bir qatori va xato xabarini oʻqish: hech qachon kod yozmaganlar uchun.
defer tartibi va argument vaqti, sikldagi defer tuzogʻi, panic'ni recover bilan xatoga aylantirish va recover ushlay olmaydigan fatal error'lar.
The order of defer and when its arguments are evaluated, the defer-in-a-loop trap, turning a panic into an error with recover, and fatal errors recover cannot catch.
Порядок defer и момент вычисления аргументов, ловушка defer в цикле, превращение panic в ошибку через recover и fatal error, которые recover не ловит.
A pushed key stays in history: we find it with git show, rotate it first, clean history with filter-repo only if needed, and look at the .gitignore trap.
A Go server and Postgres in compose.yaml: connecting by service name, the password in .env, healthcheck, down vs down -v and the Postgres 18 volume trap.
compose.yaml'da Go server va Postgres: servis nomi orqali ulanish, .env'dagi parol, healthcheck, down va down -v farqi hamda Postgres 18 volume tuzogʻi.
Go-сервер и Postgres в compose.yaml: подключение по имени сервиса, пароль в .env, healthcheck, down и down -v, ловушка с томом в Postgres 18.
Go serverni multi-stage Dockerfile bilan 969 MB dan 8 MB ga tushirish, image va container farqi, port, volume va docker stop'dagi PID 1 tuzogʻi.
Shrink a Go server image from 969 MB to 8 MB with a multi-stage Dockerfile; image vs container, ports, volumes and the PID 1 trap in docker stop.
Как многоэтапный Dockerfile уменьшает образ Go-сервера с 969 МБ до 8 МБ, чем образ отличается от контейнера, порты, тома и ловушка PID 1 в docker stop.
Write a test, a table-driven test and subtests with go test, measure speed with b.Loop and -benchmem, and expose a benchmark that lied.
Algoritmlar va maʼlumot strukturalari Go'da, oʻlchab oʻrgatiladi: Big-O'ni taxmin qilmaymiz, benchmark bilan tekshiramiz.
Wrapping errors with %w, finding them in the chain with errors.Is and errors.AsType, errors.Join, and the Go 1.25 nil check fix.
for sikli: sanagich, boshlanish · savol · qadam, 1 dan 5 gacha yigʻindi, cheksiz sikl va Ctrl+C, break: hech qachon kod yozmaganlar uchun.
The for loop: a counter, start · question · step, the sum of 1 to 5, an infinite loop and Ctrl+C, break: for people who have never written code.
Цикл for: счётчик, начало · вопрос · шаг, сумма от 1 до 5, бесконечный цикл и Ctrl+C, break: для тех, кто никогда не писал код.
Measure the waiting time of cache, RAM, SSD, fsync, Wi-Fi and the internet in Go, and compare it with the famous latency numbers table.
A function returns several values and is a value itself; closures, variadic functions, and how to find the := shadowing bug.
Funksiya bir nechta qiymat qaytaradi va oʻzi ham qiymat; closure, variadic va := shadowing xatosini topish.
Type parameters and constraints, ~ and cmp.Ordered, generic methods in Go 1.27 and their limit, and three smells of needless generic code.
Type parameter va constraint, ~ va cmp.Ordered, Go 1.27 dagi generic metodlar va ularning cheklovi, ortiqcha generic kodning uchta hidi.
Git'ni buyruqlar roʻyxati sifatida emas, maʼlumot modeli sifatida oʻrganamiz: commit — bu snapshot, branch — bitta hash yozilgan fayl, hamma narsa `.git` ichidagi obyektlar.
Inside .git: a commit is a snapshot of the whole project, a branch is a 41-byte file, plus HEAD, fast-forward merge and git revert on a real repo.
.git ichiga kiramiz: commit — butun loyiha surati, branch — 41 baytlik fayl, HEAD, fast-forward merge va git revert real repo'da.
Заглядываем в .git: коммит — снимок всего проекта, ветка — файл в 41 байт, HEAD, fast-forward merge и git revert на живом репозитории.
Go through branch → pull request → review → merge on a local «server» and learn to write a clear, polite review comment and to answer one.
Branch → pull request → review → merge siklini lokal «server»da oʻtamiz va aniq, xushmuomala review izohi yozish hamda unga javob berishni oʻrganamiz.
Проходим цикл ветка → pull request → ревью → merge на локальном «сервере» и учимся писать ясный, вежливый комментарий ревью и отвечать на него.
The four forms of for, why range gives a copy, switch and fallthrough, the break trap, labels, and the loop bug Go 1.22 fixed.
Go binary'sini bundle analyzer kabi ochamiz: runtime narxi, linker tree-shaking va paket init, FROM scratch'dagi vaqt zonasi xatosi va time/tzdata.
Go tilini sintaksisdan runtime ichigacha oʻrgatadigan trek: asoslar, idiomatik dizayn, concurrency, runtime internals, performance va Go manba kodini oʻqish.
go.mod'dagi go qatorining uchta vazifasi (til versiyasi, GODEBUG, minimal Go), MVS, go.sum, internal/ va tool direktivasi.
for'ning toʻrt shakli, range nusxa berishi, switch va fallthrough, break tuzogʻi, label va Go 1.22 tuzatgan sikl xatosi.
Переписываем API с двумя эндпоинтами с Express на Go в 20 строк: go mod, go run/go build, один бинарник, GOOS/GOARCH и ловушка cgo во FROM scratch.
Ikki sonni taqqoslash, true va false, if / else bilan chegirma va else if bilan baho dasturi: hech qachon kod yozmaganlar uchun.
Comparing two numbers, true and false, a discount with if / else and a grade with else if: for people who have never written code.
Сравнение двух чисел, true и false, скидка через if / else и оценка через else if: для тех, кто никогда не писал код.
Go interface'lari: yashirin bajarilish, (tur, qiymat) juftligi, type assertion, type switch va typed nil xatosi hamda uni topadigan staticcheck.
Go interfaces: implicit implementation, the (type, value) pair, type assertion, type switch, the typed nil bug and the staticcheck check that finds it.
Read a 1 GiB file in 2.5 MiB of memory: io.Reader, io.Writer, io.EOF, your own Writer, io.Copy and gzip as a stream.
1 GiB faylni 2.5 MiB xotirada oʻqish: io.Reader, io.Writer, io.EOF, oʻz Writer'imiz, io.Copy va gzip bilan oqim (stream).
Чтение файла в 1 GiB в 2.5 MiB памяти: io.Reader, io.Writer, io.EOF, свой Writer, io.Copy и gzip как поток (stream).
iter.Seq va yield bilan oʻz iterator'ingizni yozish, break'dan keyingi panic qoidasi, tezlik va slices, maps, cmp paketlaridan toʻgʻri foydalanish.
Write your own iterator with iter.Seq and yield, learn the panic rule after break, measure the speed, and use slices, maps and cmp correctly.
Ishlayotgan Go serverni ps va ss bilan topish, kill va signallar, 137 = 128 + 9, SIGTERM'da toza toʻxtash, env va $PATH qanday ishlaydi.
Kod ostida nima bor: protsessor va xotira, operatsion tizim va tarmoq.
Go const nega JS const emas, untyped constant turini qayerdan oladi, nega time.Sleep(2) = 2 ns va iota roʻyxatiga qoʻshilgan holat bazani qanday buzadi.
Go'da string — baytlar: len, s[i] va == baytlar bilan ishlaydi. JS, Python va PHP bilan solishtiramiz, rune va oʻzbek apostrofi muammosini tuzatamiz.
A Go string is bytes: len, s[i] and == work on bytes. We compare with JS, Python and PHP, meet runes and fix the Uzbek apostrophe problem.
Строка в Go — это байты: len, s[i] и == работают с байтами. Сравниваем с JS, Python и PHP, разбираем руны и исправляем узбекские апострофы.
Kichik Go modelida token, context window va temperature'ni sinab, LLM javobi nega ishonchli, lekin notoʻgʻri boʻlishi mumkinligini koʻramiz.
Map bilan ishlash (comma ok, delete, nil map), range tartibi nega tasodifiy va map'ga bir vaqtda yozish nega recover ushlamaydigan fatal error.
Работа с map (comma ok, delete, nil map), почему порядок range случайный и почему одновременная запись в map — fatal error, который recover не ловит.
Working with maps (comma ok, delete, nil map), why range order is random, and why concurrent map writes are a fatal error that recover cannot catch.
SQL'dan PostgreSQL 19 ichigacha bitta yoʻl: query yozish, Go'dan bazaga ulanish, sxema loyihalash, index va planner, transaction va isolation, keyin storage engine'ni Go'da oʻzimiz quramiz va Postgres'ni production'da ushlab turamiz.
Methods and receivers, method sets and addressability: which call compiles, why String is not called, and which receiver to choose.
Metod va receiver, method set va addressability: qaysi chaqiruv kompilyatsiya boʻladi, String nega chaqirilmaydi va qaysi receiver tanlanadi.
ML'ni noldan, ochiq oʻrganamiz: nimani sinadik, nima buzildi, nima chalkash qoldi va nima nihoyat tushunarli boʻldi.
Chiziqli algebra, hosila va gradient, ehtimollik va statistika: faqat backend va ML'da haqiqatan kerak boʻladigan qismi.
Kesh, operativ xotira, SSD, fsync, Wi-Fi va internetning kutish vaqtini Go bilan oʻlchab, mashhur latency jadvali bilan solishtirish.
In Go an error is not thrown but returned as a value: if err != nil, an error silently lost in a bare call, errcheck, and defer instead of finally.
What a value's type is, the difference between int, float64 and string, what + does with each, and how to read a mismatched types error.
Go'da = va funksiyaga uzatish struct'ni nusxalaydi: range tuzogʻi, &user va *User, map'dagi struct xatosi, slice va massiv farqi.
Oʻzgaruvchi nima, := va = farqi, x = x + 1 qanday bajarilishi va nusxa olish: hech qachon kod yozmaganlar uchun.
The three jobs of the go line in go.mod (language version, GODEBUG, minimum Go), MVS, go.sum, internal/ and the tool directive.
Pointer (& va *), stek va heap, -gcflags=-m bilan kompilyator qarorini oʻqish, inline taʼsiri va &s[0] + append tuzogʻi.
Pointers (& and *), stack and heap, reading compiler decisions with -gcflags=-m, the effect of inlining, and the &s[0] + append trap.
Find a running Go server with ps and ss, kill and signals, 137 = 128 + 9, clean shutdown on SIGTERM, how env and $PATH work.
Slice ichida nima bor (pointer, len, cap), append qachon eski massivga yozadi, tuzoqni tuzatish va slice oʻsishini oʻzingiz oʻlchash.
What is inside a slice (pointer, len, cap), when append writes into the old array, how to fix the trap, and how to measure slice growth yourself.
Qiymatning turi nima, int, float64 va string farqi, + har birida nima qiladi va turlar mos emas xatosini qanday oʻqish.
Struct va composite literal, embedding, keyin padding va alignment: maydonlar tartibi struct oʻlchamini qanday oʻzgartiradi va bu qachon muhim.
Structs and composite literals, embedding, then padding and alignment: how field order changes a struct's size, and when it matters.
go test bilan test, jadval test va subtest yozish, b.Loop va -benchmem bilan tezlikni oʻlchash va yolgʻon gapirgan benchmark'ni fosh qilish.
Kichik buyruqlarni tik chiziq (pipe) bilan ulab, skriptsiz javob olish: grep filtrlaydi, wc -l sanaydi, xuddi JS'dagi filter().length.
Connect small commands with a pipe and get the answer without a script: grep filters, wc -l counts, like filter().length in JS.
Go'da xato throw qilinmaydi, u qaytariladigan qiymat: if err != nil, natijasiz chaqiruvda jim yoʻqolgan xato, errcheck va finally oʻrniga defer.
TS turlari oʻchadi, Go'niki runtime'gacha qoladi: \"2\" + 2 build xatosi, JSON'dagi \"2\", zero value, := va =, shadowing, range indeksi va string(65).
Bir xil +1: Python aniq, JS yaxlitlaydi, Go manfiy son beradi. int8 … int64, two's complement, overflow va konstanta nega rad etiladi.
The same +1: Python is exact, JS rounds, Go gives a negative number. int8 … int64, two's complement, overflow and why constants are rejected.
TS types are erased, Go keeps them until runtime: \"2\" + 2 won't build, \"2\" in JSON, zero values, := vs =, shadowing, the range index and string(65).
We run a small Go model to try tokens, the context window and temperature, and see why an LLM answer can be confident but wrong.
What a program, a compiler and a terminal are, every line of the Salom, dunyo program, and how to read an error: for people who never wrote code.
Open a Go binary like a bundle analyzer: the runtime's cost, linker tree-shaking and package init, the FROM scratch time-zone bug and time/tzdata.
Xatoni %w bilan oʻrash, errors.Is va errors.AsType bilan zanjirdan topish, errors.Join, hamda Go 1.25 dagi nil tekshiruvi tuzatishi.
В Go ошибку не бросают, а возвращают как значение: if err != nil, ошибка, молча потерянная в вызове без результата, errcheck и defer вместо finally.
Четыре формы for, почему range даёт копию, switch и fallthrough, ловушка с break, метки и ошибка цикла, исправленная в Go 1.22.
Параметры типа и ограничения, ~ и cmp.Ordered, generic-методы Go 1.27 и их ограничение, три признака лишнего generic-кода.
Запушенный ключ остаётся в истории: находим его через git show, сначала делаем rotate, при необходимости чистим filter-repo и разбираем ловушку .gitignore.
Открываем Go-бинарник как bundle analyzer: цена runtime, tree-shaking в linker и init пакетов, ошибка часового пояса во FROM scratch и time/tzdata.
Интерфейсы Go: неявная реализация, пара (тип, значение), type assertion, type switch, ошибка typed nil и staticcheck, который её находит.
Свой итератор на iter.Seq и yield, правило panic после break, скорость и правильная работа с пакетами slices, maps и cmp.
Почему const в Go — не const из JS, откуда нетипизированная константа берёт тип, почему time.Sleep(2) = 2 нс и как статус в середине iota ломает базу.
В Go = и передача в функцию копируют struct: ловушка range, &user и *User, ошибка со struct в map, разница слайса и массива.
Метод и receiver, method set и адресуемость: какой вызов компилируется, почему String не вызывается и какой receiver выбрать.
Пишем тест, табличный тест и подтесты с go test, измеряем скорость с b.Loop и -benchmem и разоблачаем бенчмарк, который лгал.
Три задачи строки go в go.mod (версия языка, GODEBUG, минимальная версия Go), MVS, go.sum, internal/ и директива tool.
Измеряем на Go время ожидания кэша, оперативной памяти, SSD, fsync, Wi-Fi и интернета и сравниваем с известной таблицей задержек.
Обёртывание ошибок через %w, поиск в цепочке через errors.Is и errors.AsType, errors.Join и исправление nil-проверки в Go 1.25.
Что такое переменная, чем := отличается от =, как выполняется x = x + 1 и что такое копия: для тех, кто никогда не писал код.
Как найти работающий Go-сервер через ps и ss, kill и сигналы, 137 = 128 + 9, корректная остановка по SIGTERM, как работают env и $PATH.
Что внутри слайса (указатель, len, cap), когда append пишет в старый массив, как обойти ловушку и как самому измерить рост слайса.
Структура и составной литерал, встраивание (embedding), затем padding и выравнивание: как порядок полей меняет размер структуры и когда это важно.
Соединяем маленькие команды вертикальной чертой (pipe) и получаем ответ без скрипта: grep фильтрует, wc -l считает, как filter().length в JS.
Типы TS стираются, а в Go доживают до рантайма: \"2\" + 2 не собирается, \"2\" в JSON, zero value, := и =, затенение, индекс в range и string(65).
Один и тот же +1: Python точен, JS округляет, Go даёт отрицательное число. int8 … int64, дополнительный код, переполнение и константы.
Указатели (& и *), стек и куча, как читать решения компилятора через -gcflags=-m, влияние встраивания и ловушка &s[0] + append.
Функция возвращает несколько значений и сама является значением; замыкания, вариативные функции и поиск ошибки затенения через :=.
Что такое тип значения, чем отличаются int, float64 и string, что делает + с каждым из них и как читать ошибку mismatched types.
Запускаем маленькую модель на Go: токен, context window и temperature. Разбираем, почему ответ LLM может быть уверенным, но неверным.
Что такое программа, компилятор и терминал, каждая строка программы Salom, dunyo и как читать ошибку: для тех, кто никогда не писал код.
Go'da backend'ning hammasi: HTTP va API dizaynidan authentication, test, observability, caching, queue'lar, deploy va scaling'gacha, har bir tushuncha bitta aniq, ishga tushadigan misol bilan.
Darslar qayerda chiqadi, savolni qayerga yozish, kod qayerda turadi va kanalni qanday qoʻllab-quvvatlash mumkin: Telegram, YouTube, gopher.uz, GitHub va donat. Kurslar bir-biri bilan qanday bogʻlangani ham shu yerda.
Oʻzbek tilida, Go'da, universitet darajasida: Go, algoritmlar, ma'lumotlar bazasi va backend bitta bogʻlangan yoʻl boʻlib, har bir dars ham video, ham oʻqiladigan sahifa.
Har bir video 9 bosqichdan oʻtadi: tadqiqot, ssenariy va kod, AI tanqidchi bilan munozara, fakt tekshiruvi, avtomatik test, ovoz, egasi koʻrib chiqishi, nashr va ochiq repo. Oddiy soʻzlar bilan.
What I'm working on this month. One page, updated when it stops being true.
Status — live: the first Go and Linux lessons are out. An Uzbek tech channel for people who think AI already took their future: a backend engineering course in Go, from zero to senior, plus news, LeetCode and mock interviews. No camera, no budget, every frame rendered from code.
One month live. 96 users, 71 bots, three paying customers and 156 000 so'm MRR, all without spending a so'm on ads, because most people found it through an AI. Also: a second server.
The three short vowels — a stroke above for a, a stroke below for i, a small wāw above for u — on every letter, with sound.
Stage 1 — the 28 letters, the shapes they share, how they change inside a word, and where in the mouth each sound is made.
How a letter changes at the start, middle and end of a word — and the six letters that never join to the one after them.
Alif, wāw and yāʾ stretch the short vowels into ā, ū and ī — two beats instead of one.
Stage 3 — from syllables to whole words, the article al-, the spellings that only show up at the end of a word, and a reading test made of words Uzbek borrowed.
A course I built for myself and my friends — from the first letter of the Arabic alphabet to reading words on your own, with a voice behind every letter, syllable and word.
How to read an unfamiliar Arabic word — split it into syllables, read each one, then say it whole.
Most Arabic letters come in families that share one skeleton and differ only by dots. Learn nine shapes and the dot rules, not 28 separate letters.
Tāʾ marbūṭa, alif maqṣūra, the seats of hamza and lām-alif — the spellings that trip up new readers.
The sukūn — a small circle meaning "no vowel here" — and the shadda, a small w that doubles its letter.
The doubled vowel marks at the end of a word, which add an n — -an, -in, -un.
Every letter of the Arabic alphabet — its name, its sound, its four shapes, and one everyday word to hear it in.
The article al- means “the”. Before half the alphabet it keeps its l (moon letters); before the other half the l melts into a doubled letter (sun letters).
Stage 2 — the small marks above and below the letters that supply the vowels, the pause and the doubling.
The makhārij — the points in the throat, tongue, lips and nose where each Arabic sound is made, with a map you can press.
The finish line — Arabic words that became Uzbek words, with no Latin and no sound. Read them, and recognise them.
Before any launch, the first real user found Botxona by asking ChatGPT where to deploy a bot. Her bot worked — it just couldn't find its database.
Status — live. An AI presentation generator for students in Uzbekistan. It isn't really the product: it's a cheap way to build an audience for Botxona and everything after it.
Status — live, in production testing. Telegram bot hosting for Uzbekistan: drop in a zip, it gets checked, it runs. Payment in so'm, the panel in Uzbek, and a free tier for people who don't write code.
What I'm reading and where I actually am in it — an SRE book, a security guide and a wiki. Moved out of the blog, because a reading list is never finished.
One nginx in front of every project on the box, generated from one YAML file. No app terminates its own TLS.
Status — shipped. The camera filter module behind dona.uz live-shopping streams — face-tracked beauty filters written natively in Kotlin and Swift, behind one JS component.
Depth — working, learned in production on dona.uz's backend, and the community I chair as Gopher Uzbekistan.
Projects that live in my head — some already in code, some still one sentence. Status field included so I can't lie to myself.
Status — designing. An Uzbek-native explainer engine: you ask a question and get back a narrated, animated lesson where the pointer moves with the words. The whole thing rests on one unsolved problem.
The short version of who I am — Abdurahmon Mamadiyorov, a software engineer from Tashkent who learns in public.
Depth — shipping (on myself). My whole machine is a declarative config, open-sourced as haywan-nix: Hyprland, Gruvbox, zsh, one folder per machine.
Paused at Phase 0. Open-source gamified learning — the part worth keeping is the data model.
Depth — shipping. The app I work on daily at dona.uz, plus the native side I had to learn to make camera filters run at 30fps.
Status — live, 200+ users from a single ad. A voice-pairing Telegram Mini App. The topic framing is a mask I made up; the real bets are a channel of my own and a server that finally does something.
A map of what I can actually build with — honest depth markers, not a résumé keyword list.
Business logic that lives in chat threads has as many versions as it has readers. One file per feature, one owner, and a rule that the spec changes before the code does.
Depth — shipping. Here it isn't a chat app, it's where the product lives. What the platform gives you and what it takes back.
I asked for a roast and got an accurate one. Kept here, unedited, to be re-read on a day when I am about to start something new.
Depth — shipping. The language I've spent the most production hours in, from Chrome extensions to Node services in a Rush monorepo.
Depth — daily. The setup matters more than the model: repo-local skills, state in files, its own user on the server, and a short list of things I don't hand over.
Status — shipped, open source. A way to put your Yandex Music playlist on a portfolio: no hosted service, no token anybody has to hand over, just a scheduled job in your own repo.
A living log of learning React Native as someone who already knows React.js. Every concept mapped from the web to the native world, plus how a real project is structured — with diagrams.
How this works
Each note is a plain MDX file under src/app/lab/, with lab: true in its
frontmatter. Folders become folders in the explorer, any link pointing at another
/lab/... note becomes an edge in the graph, and every tag becomes a node of its
own. Nothing is fetched at runtime — the whole garden is read off disk at build
time.
comments