[{"data":1,"prerenderedAt":233},["ShallowReactive",2],{"tag-labels":3,"site-header":4,"article-why-prompt-cache-hit-rate-is-zero-en":75},{},{"featuredPost":5,"navigations":29},{"id":6,"title":7,"title_id":8,"slug":9,"excerpt":10,"excerpt_id":11,"has_translation":12,"published_at":13,"reading_time":14,"hidden_from_listing":15,"tags":16,"thumbnail_image":21,"og_image":22,"series":23,"authors":28},110,"When You Pick a Framework Just to Look Different","Ketika Pilih Framework Cuma Biar Kelihatan Beda","ketika-pilih-framework-cuma-biar-kelihatan-beda","The last time you chose a new framework or library, was it because your problem needed that tool, or because it sounded cool and few people around you were using it? That question is uncomfortable. Technology decisions are often made for reasons that never appear in any technical document.","Terakhir kali kamu milih framework atau library baru, itu karena masalahmu butuh alat itu, atau karena alatnya kedengaran keren dan belum banyak yang pakai? Pertanyaan ini nggak enak dijawab. Soalnya keputusan teknologi sering diambil dengan alasan yang nggak pernah ditulis di dokumen teknis mana pun.",true,"2026-10-06T15:25:21.000Z",5,false,[17,18,19,20],"karier","framework","opini","pengalaman",null,"\u002Fog\u002Fketika-pilih-framework-cuma-biar-kelihatan-beda.png",{"id":24,"title":25,"title_id":26,"slug":27},9,"Articles","Artikel","all",[],[30,49,70],{"collection":31,"item":32},"series",{"__typename":31,"title":25,"title_id":26,"slug":27,"children_series":33},[34,38,42,46],{"title":35,"title_id":36,"slug":37},"Artificial Intelligence","Kecerdasan Artifisial","kecerdasan-artifisial",{"title":39,"title_id":40,"slug":41},"Programming Fundamentals","Konsep Dasar Pemrograman","konsep-dasar-pemrograman",{"title":43,"title_id":44,"slug":45},"Algorithms and Data Structures","Algoritma dan Struktur Data","algoritma-struktur-data",{"title":47,"title_id":47,"slug":48},"LLM Systems","llm-systems",{"collection":31,"item":50},{"__typename":31,"title":51,"title_id":51,"slug":52,"children_series":53},"Tutorial","tutorial",[54,58,62,66],{"title":55,"title_id":56,"slug":57},"Learning Python","Belajar Python","belajar-python",{"title":59,"title_id":60,"slug":61},"Learning Go","Belajar Golang","belajar-golang",{"title":63,"title_id":64,"slug":65},"Learning Java","Belajar Java","belajar-java",{"title":67,"title_id":68,"slug":69},"Learning Pascal","Belajar Pascal","belajar-pascal",{"collection":31,"item":71},{"__typename":31,"title":72,"title_id":72,"slug":73,"children_series":74},"Lab","lab",[],{"article":76,"renderedBody":103,"renderedTakeaway":104,"latestArticles":105,"toc":216},{"id":77,"title":78,"title_id":79,"slug":80,"excerpt":81,"excerpt_id":82,"has_translation":12,"published_at":83,"reading_time":84,"hidden_from_listing":12,"tags":85,"thumbnail_image":21,"og_image":89,"series":21,"authors":90,"seoTitle":97,"seoDescription":98,"body_locale":99,"available_locales":100,"body":102,"takeway":21,"prerequisite":21},166,"Why Is Your Prompt Cache Hit Rate Zero?","Kenapa Cache Hit Rate Prompt-nya Nol?","why-prompt-cache-hit-rate-is-zero","Twenty-four turns, 164,854 tokens, not one cache read, and a bill 21% above the same loop with caching off. The prefix was changing every turn, and the line that changed it was in the tools array.","Dua puluh empat giliran, 164.854 token, tidak satu pun dibaca dari cache, dan tagihannya 21% lebih mahal daripada loop yang sama tanpa cache. Prefix-nya berubah tiap giliran, dan biang keroknya ada di array tools.","2026-12-02T02:10:00.000Z",3,[86,87,88],"llm","cache","api","\u002Fog\u002Fwhy-prompt-cache-hit-rate-is-zero.png",[91],{"authors_id":92},{"id":93,"name":94,"slug":95,"role":96,"profile_picture":21},1,"Daffa Izzuddin","izzudd","Writer","Prompt cache hit rate 0%: why","A cache read needs a byte-identical prefix up to the breakpoint. Here the tools array changed on all 24 requests, so every turn paid a write instead of a read.","en",[99,101],"id","\nA cache read happens only when the request prefix, up to the cache breakpoint, is byte-identical to an earlier request. One changing character voids everything before the breakpoint: a timestamp inside a tool description, today's date in the system prompt, or a breakpoint parked on the block that grows every turn. This loop sent 164,854 tokens across 24 turns and read back zero.\n\n## What counts as a hit?\n\nThe provider stores the prefix up to the breakpoint. A read is cheap, a write costs more than an ordinary token, and a miss costs nothing extra — it just bills the whole prefix again. So the question is never \"is caching on\". It is \"is my prefix stable\", and one unstable byte makes the answer no for every request after it.\n\n## What does 0% look like in numbers?\n\n```plain\n$ make demo\nOne ticket at a time, caching on as it ships today:\n\n  T-1041                 turns=8   sent= 54,960  read=      0  hit=  0.0%  $0.1614\n  T-1042                 turns=8   sent= 54,960  read=      0  hit=  0.0%  $0.1614\n  T-1043                 turns=8   sent= 54,934  read=      0  hit=  0.0%  $0.1613\n\n  all three tickets      turns=24  sent=164,854  read=      0  hit=  0.0%  $0.4841\n  same run, cache off    turns=24  sent=164,854  read=      0  hit=  0.0%  $0.4017\n\n  cache reads cover 0.0% of the tokens sent, and the bill is 1.21x the no-cache bill.\n```\n\nThe bill is higher than running with no cache at all. That is the part teams notice last: the feature is not failing quietly, it is charging a premium for writes nobody reads.\n\n## Which line breaks the prefix?\n\n```plain\n$ make check\n  [RED  ] A. cache reads cover at least 75% of the tokens you send  (hit rate 0.0% of 164,854 tokens)\n  [RED  ] B. the run costs at most 45% of the same run with caching off  ($0.4841 vs $0.4017 (121%))\n  [RED  ] C. the static prefix is identical on two different days, and the date still reaches the model  (prefix identical=False, 2026-11-09 in last block=False)\n  [RED  ] D. each request is the previous one plus new blocks (nothing is rewritten)  (rewritten in 3 of 3 tickets)\n  [RED  ] E. the tools array is identical on every request  (24 distinct tools blocks across 24 requests)\n  [RED  ] F. the turn after the ten-minute pause still reads the static prefix  (T-1041: 0, T-1042: 0, T-1043: 0)\n  [RED  ] G. the loop prints its measured turns, hit rate and cost  (no `summary turns=… hit_rate=… cost_usd=…` line on stdout)\n```\n\nCheck E is the expensive one: 24 distinct tools blocks across 24 requests means the tool definitions were serialised fresh every turn, so the prefix never matched. Check D is the second: rewriting the transcript moves the breakpoint and buys nothing, because a rewritten prefix is a new prefix.\n\n## What actually fixes it?\n\nMake the tools array a constant. In the answer article that single change took the hit rate to 78.4%. Moving the clock out of the system prompt, and the breakpoint off the growing block, changed nothing on their own. With all three the loop reaches 90.9% at 34% of the no-cache bill. The eight measured stages are in [The Breakpoint Was on the Wrong Block](\u002Fp\u002Fbreakpoint-on-the-wrong-block).\n\n## How do you check your own loop?\n\nLog the tokens read from cache on every request. If reads stay at 0 while writes repeat, dump two consecutive requests and compare them from the first byte — the first offset that differs is your breakpoint problem. If reads are non-zero but small, the breakpoint sits on a block that changes, and the transcript is the usual suspect. The pause in check F is the same shape of problem: a five-minute write expires before the next turn arrives, so an idle loop pays for the prefix twice.\n\nThe lab is [inva-lab 0006](https:\u002F\u002Fgithub.com\u002Fizzudd\u002Finva-lab\u002Ftree\u002Fmain\u002F0006.prompt-caching), and the story behind the numbers is [A 6,000-Token Handbook and a 0% Cache Hit Rate](\u002Fp\u002Fcache-hit-rate-zero).\n\nCache the blocks that never change, put the breakpoint after them, and move anything with a clock to the block that comes last.\n","\u003Cp>A cache read happens only when the request prefix, up to the cache breakpoint, is byte-identical to an earlier request. One changing character voids everything before the breakpoint: a timestamp inside a tool description, today&#39;s date in the system prompt, or a breakpoint parked on the block that grows every turn. This loop sent 164,854 tokens across 24 turns and read back zero.\u003C\u002Fp>\n\u003Ch2 id=\"what-counts-as-a-hit\">What counts as a hit?\u003C\u002Fh2>\n\u003Cp>The provider stores the prefix up to the breakpoint. A read is cheap, a write costs more than an ordinary token, and a miss costs nothing extra — it just bills the whole prefix again. So the question is never &quot;is caching on&quot;. It is &quot;is my prefix stable&quot;, and one unstable byte makes the answer no for every request after it.\u003C\u002Fp>\n\u003Ch2 id=\"what-does-0-look-like-in-numbers\">What does 0% look like in numbers?\u003C\u002Fh2>\n\n\u003Cdiv class=\"code-block-wrapper code-output my-6 not-prose rounded-xl border-2 border-black dark:border-gray-600 shadow-neo overflow-hidden text-[#e1e4e8] transition-all\" data-output-block>\n  \u003Cdiv class=\"code-block-header flex items-center justify-between px-4 py-2.5 bg-[#1f2428] border-b-2 border-black dark:border-gray-600 font-mono text-xs font-bold text-gray-300 select-none\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003Cspan class=\"code-output-mark\" aria-hidden=\"true\">&gt;_\u003C\u002Fspan>\n      \u003Cspan class=\"ml-1 font-mono font-bold text-xs uppercase tracking-wider text-gray-300\">Output\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n    \u003Cbutton type=\"button\" class=\"copy-code-btn flex items-center gap-1.5 px-3 py-1 text-xs font-bold bg-[#2f363d] text-gray-200 border-2 border-black dark:border-gray-500 rounded-lg shadow-neo-sm hover:translate-x-0.5 hover:translate-y-0.5 hover:shadow-none hover:bg-gray-700 transition-all cursor-pointer\" data-code=\"%24%20make%20demo%0AOne%20ticket%20at%20a%20time%2C%20caching%20on%20as%20it%20ships%20today%3A%0A%0A%20%20T-1041%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20turns%3D8%20%20%20sent%3D%2054%2C960%20%20read%3D%20%20%20%20%20%200%20%20hit%3D%20%200.0%25%20%20%240.1614%0A%20%20T-1042%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20turns%3D8%20%20%20sent%3D%2054%2C960%20%20read%3D%20%20%20%20%20%200%20%20hit%3D%20%200.0%25%20%20%240.1614%0A%20%20T-1043%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20turns%3D8%20%20%20sent%3D%2054%2C934%20%20read%3D%20%20%20%20%20%200%20%20hit%3D%20%200.0%25%20%20%240.1613%0A%0A%20%20all%20three%20tickets%20%20%20%20%20%20turns%3D24%20%20sent%3D164%2C854%20%20read%3D%20%20%20%20%20%200%20%20hit%3D%20%200.0%25%20%20%240.4841%0A%20%20same%20run%2C%20cache%20off%20%20%20%20turns%3D24%20%20sent%3D164%2C854%20%20read%3D%20%20%20%20%20%200%20%20hit%3D%20%200.0%25%20%20%240.4017%0A%0A%20%20cache%20reads%20cover%200.0%25%20of%20the%20tokens%20sent%2C%20and%20the%20bill%20is%201.21x%20the%20no-cache%20bill.\" title=\"Copy\">\n      \u003Csvg class=\"w-3.5 h-3.5 copy-icon-svg\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n        \u003Cpath stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z\">\u003C\u002Fpath>\n      \u003C\u002Fsvg>\n      \u003Cspan class=\"copy-text\">Copy\u003C\u002Fspan>\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n  \u003Cdiv class=\"code-block-content p-4 overflow-x-auto text-sm font-mono leading-relaxed\">\n    \u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\">\u003Ccode>\u003Cspan class=\"code-output-cmd\">$ make demo\u003C\u002Fspan>\nOne ticket at a time, caching on as it ships today:\n\n  T-1041                 turns=8   sent= 54,960  read=      0  hit=  0.0%  $0.1614\n  T-1042                 turns=8   sent= 54,960  read=      0  hit=  0.0%  $0.1614\n  T-1043                 turns=8   sent= 54,934  read=      0  hit=  0.0%  $0.1613\n\n  all three tickets      turns=24  sent=164,854  read=      0  hit=  0.0%  $0.4841\n  same run, cache off    turns=24  sent=164,854  read=      0  hit=  0.0%  $0.4017\n\n  cache reads cover 0.0% of the tokens sent, and the bill is 1.21x the no-cache bill.\u003C\u002Fcode>\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\u003Cp>The bill is higher than running with no cache at all. That is the part teams notice last: the feature is not failing quietly, it is charging a premium for writes nobody reads.\u003C\u002Fp>\n\u003Ch2 id=\"which-line-breaks-the-prefix\">Which line breaks the prefix?\u003C\u002Fh2>\n\n\u003Cdiv class=\"code-block-wrapper code-output my-6 not-prose rounded-xl border-2 border-black dark:border-gray-600 shadow-neo overflow-hidden text-[#e1e4e8] transition-all\" data-output-block>\n  \u003Cdiv class=\"code-block-header flex items-center justify-between px-4 py-2.5 bg-[#1f2428] border-b-2 border-black dark:border-gray-600 font-mono text-xs font-bold text-gray-300 select-none\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003Cspan class=\"code-output-mark\" aria-hidden=\"true\">&gt;_\u003C\u002Fspan>\n      \u003Cspan class=\"ml-1 font-mono font-bold text-xs uppercase tracking-wider text-gray-300\">Output\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n    \u003Cbutton type=\"button\" class=\"copy-code-btn flex items-center gap-1.5 px-3 py-1 text-xs font-bold bg-[#2f363d] text-gray-200 border-2 border-black dark:border-gray-500 rounded-lg shadow-neo-sm hover:translate-x-0.5 hover:translate-y-0.5 hover:shadow-none hover:bg-gray-700 transition-all cursor-pointer\" data-code=\"%24%20make%20check%0A%20%20%5BRED%20%20%5D%20A.%20cache%20reads%20cover%20at%20least%2075%25%20of%20the%20tokens%20you%20send%20%20(hit%20rate%200.0%25%20of%20164%2C854%20tokens)%0A%20%20%5BRED%20%20%5D%20B.%20the%20run%20costs%20at%20most%2045%25%20of%20the%20same%20run%20with%20caching%20off%20%20(%240.4841%20vs%20%240.4017%20(121%25))%0A%20%20%5BRED%20%20%5D%20C.%20the%20static%20prefix%20is%20identical%20on%20two%20different%20days%2C%20and%20the%20date%20still%20reaches%20the%20model%20%20(prefix%20identical%3DFalse%2C%202026-11-09%20in%20last%20block%3DFalse)%0A%20%20%5BRED%20%20%5D%20D.%20each%20request%20is%20the%20previous%20one%20plus%20new%20blocks%20(nothing%20is%20rewritten)%20%20(rewritten%20in%203%20of%203%20tickets)%0A%20%20%5BRED%20%20%5D%20E.%20the%20tools%20array%20is%20identical%20on%20every%20request%20%20(24%20distinct%20tools%20blocks%20across%2024%20requests)%0A%20%20%5BRED%20%20%5D%20F.%20the%20turn%20after%20the%20ten-minute%20pause%20still%20reads%20the%20static%20prefix%20%20(T-1041%3A%200%2C%20T-1042%3A%200%2C%20T-1043%3A%200)%0A%20%20%5BRED%20%20%5D%20G.%20the%20loop%20prints%20its%20measured%20turns%2C%20hit%20rate%20and%20cost%20%20(no%20%60summary%20turns%3D%E2%80%A6%20hit_rate%3D%E2%80%A6%20cost_usd%3D%E2%80%A6%60%20line%20on%20stdout)\" title=\"Copy\">\n      \u003Csvg class=\"w-3.5 h-3.5 copy-icon-svg\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n        \u003Cpath stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z\">\u003C\u002Fpath>\n      \u003C\u002Fsvg>\n      \u003Cspan class=\"copy-text\">Copy\u003C\u002Fspan>\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n  \u003Cdiv class=\"code-block-content p-4 overflow-x-auto text-sm font-mono leading-relaxed\">\n    \u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\">\u003Ccode>\u003Cspan class=\"code-output-cmd\">$ make check\u003C\u002Fspan>\n  [RED  ] A. cache reads cover at least 75% of the tokens you send  (hit rate 0.0% of 164,854 tokens)\n  [RED  ] B. the run costs at most 45% of the same run with caching off  ($0.4841 vs $0.4017 (121%))\n  [RED  ] C. the static prefix is identical on two different days, and the date still reaches the model  (prefix identical=False, 2026-11-09 in last block=False)\n  [RED  ] D. each request is the previous one plus new blocks (nothing is rewritten)  (rewritten in 3 of 3 tickets)\n  [RED  ] E. the tools array is identical on every request  (24 distinct tools blocks across 24 requests)\n  [RED  ] F. the turn after the ten-minute pause still reads the static prefix  (T-1041: 0, T-1042: 0, T-1043: 0)\n  [RED  ] G. the loop prints its measured turns, hit rate and cost  (no `summary turns=… hit_rate=… cost_usd=…` line on stdout)\u003C\u002Fcode>\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\u003Cp>Check E is the expensive one: 24 distinct tools blocks across 24 requests means the tool definitions were serialised fresh every turn, so the prefix never matched. Check D is the second: rewriting the transcript moves the breakpoint and buys nothing, because a rewritten prefix is a new prefix.\u003C\u002Fp>\n\u003Ch2 id=\"what-actually-fixes-it\">What actually fixes it?\u003C\u002Fh2>\n\u003Cp>Make the tools array a constant. In the answer article that single change took the hit rate to 78.4%. Moving the clock out of the system prompt, and the breakpoint off the growing block, changed nothing on their own. With all three the loop reaches 90.9% at 34% of the no-cache bill. The eight measured stages are in \u003Ca href=\"\u002Fp\u002Fbreakpoint-on-the-wrong-block\">The Breakpoint Was on the Wrong Block\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2 id=\"how-do-you-check-your-own-loop\">How do you check your own loop?\u003C\u002Fh2>\n\u003Cp>Log the tokens read from cache on every request. If reads stay at 0 while writes repeat, dump two consecutive requests and compare them from the first byte — the first offset that differs is your breakpoint problem. If reads are non-zero but small, the breakpoint sits on a block that changes, and the transcript is the usual suspect. The pause in check F is the same shape of problem: a five-minute write expires before the next turn arrives, so an idle loop pays for the prefix twice.\u003C\u002Fp>\n\u003Cp>The lab is \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fizzudd\u002Finva-lab\u002Ftree\u002Fmain\u002F0006.prompt-caching\">inva-lab 0006\u003C\u002Fa>, and the story behind the numbers is \u003Ca href=\"\u002Fp\u002Fcache-hit-rate-zero\">A 6,000-Token Handbook and a 0% Cache Hit Rate\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>Cache the blocks that never change, put the breakpoint after them, and move anything with a clock to the block that comes last.\u003C\u002Fp>\n","",[106,124,139,158,179,199],{"id":107,"title":108,"title_id":109,"slug":110,"excerpt":111,"excerpt_id":112,"has_translation":12,"published_at":113,"reading_time":14,"hidden_from_listing":15,"tags":114,"thumbnail_image":21,"og_image":118,"series":119,"authors":121},152,"Every Write Comes Back as News","Tiap Write Balik ke Kamu sebagai Kabar Baru","every-write-comes-back-as-news","A supplier file says the mug is gone, the app drafts it, the store puts it back, forty times. Seven checks, and the eager webhook handler is only the second problem.","File supplier bilang mug-nya habis, app bikin draft, store mengembalikannya, 40 kali. Tujuh pemeriksaan, handler webhook yang sigap cuma masalah kedua.","2026-12-01T01:00:00.000Z",[115,116,117,73],"webhook","event-driven","distributed-systems","\u002Fog\u002Fevery-write-comes-back-as-news.png",{"id":120,"title":72,"title_id":72,"slug":73},29,[122],{"authors_id":123},{"id":93,"name":94,"slug":95,"role":96,"profile_picture":21},{"id":125,"title":126,"title_id":127,"slug":128,"excerpt":129,"excerpt_id":130,"has_translation":12,"published_at":113,"reading_time":131,"hidden_from_listing":15,"tags":132,"thumbnail_image":21,"og_image":134,"series":135,"authors":136},151,"The Status That Changed Itself","Status yang Mengubah Dirinya Sendiri","the-status-that-changed-itself","A product's status blinks between published and draft, nothing errors, and the guard you wrote first works right up until it doesn't. The loop was never an echo.","Status produk berkedip antara published dan draft, tidak ada yang error, dan penjaga pertamamu jalan sampai akhirnya tidak. Loop-nya bukan gema.",4,[115,116,117,133],"post-mortem","\u002Fog\u002Fthe-status-that-changed-itself.png",{"id":24,"title":25,"title_id":26,"slug":27},[137],{"authors_id":138},{"id":93,"name":94,"slug":95,"role":96,"profile_picture":21},{"id":140,"title":141,"title_id":142,"slug":143,"excerpt":144,"excerpt_id":145,"has_translation":12,"published_at":146,"reading_time":147,"hidden_from_listing":15,"tags":148,"thumbnail_image":21,"og_image":152,"series":153,"authors":155},164,"Python Capstone: Why a Blank CSV Field Cut the Class Average","Python Capstone: Kenapa Satu Kolom CSV Kosong Memotong Rata-rata Kelas","python-capstone-gradebook","A gradebook reads four students and writes a JSON report. The class average says 52.42, because two empty fields became zeros.","Buku nilai membaca empat siswa dan menulis laporan JSON. Rata-rata kelasnya bilang 52.42, karena dua kolom kosong berubah jadi nol.","2026-11-21T01:00:00.000Z",8,[149,150,151],"python","input-output","cli","\u002Fog\u002Fpython-capstone-gradebook.png",{"id":154,"title":55,"title_id":56,"slug":57},10,[156],{"authors_id":157},{"id":93,"name":94,"slug":95,"role":96,"profile_picture":21},{"id":159,"title":160,"title_id":161,"slug":162,"excerpt":163,"excerpt_id":164,"has_translation":12,"published_at":146,"reading_time":131,"hidden_from_listing":15,"tags":165,"thumbnail_image":21,"og_image":170,"series":171,"authors":176},48,"What a Linked List Actually Is","Tentang Struktur Data LinkedList","tentang-struktur-data-linked-list","A linked list is a linear chain of nodes, each holding data and a pointer to the next node. Here is what that chain looks like, what it costs next to an array, and the same minimal implementation in Java, Python, and JavaScript.","Linked list adalah rantai linear berisi node, dan setiap node menyimpan data plus pointer ke node berikutnya. Ini bentuk rantainya, ongkosnya dibanding array, dan implementasi paling sederhana dalam Java, Python, serta JavaScript.",[166,167,168,169],"struktur-data","linked-list","pointer","konsep","\u002Fog\u002Ftentang-struktur-data-linked-list.png",{"id":172,"title":173,"title_id":174,"slug":175},28,"Linear Data Structures","Struktur Data Linear","asd-struktur-linear",[177],{"authors_id":178},{"id":93,"name":94,"slug":95,"role":96,"profile_picture":21},{"id":180,"title":181,"title_id":182,"slug":183,"excerpt":184,"excerpt_id":185,"has_translation":12,"published_at":186,"reading_time":187,"hidden_from_listing":15,"tags":188,"thumbnail_image":21,"og_image":193,"series":194,"authors":196},163,"Pascal Capstone: Why Every Gradebook Score Came Back Zero","Capstone Pascal: Kenapa Semua Skor Buku Nilai Kembali Nol","pascal-gradebook-capstone","A gradebook reads three students from a file, prints three rows, and every score is 0. The procedure filled a copy of the array, because the parameter was missing `var`. Add the word and the report matches the file; the compiler had already warned about the call that filled nothing.","Sebuah buku nilai membaca tiga siswa dari berkas, mencetak tiga baris, dan setiap skornya 0. Prosedurnya mengisi salinan array, karena parameternya kehilangan `var`. Tambahkan kata itu dan laporannya cocok dengan berkasnya; kompilator sudah memperingatkan soal pemanggilan yang tidak mengisi apa pun.","2026-11-20T01:00:00.000Z",6,[189,190,191,192],"pascal","record","array","prosedur","\u002Fog\u002Fpascal-gradebook-capstone.png",{"id":195,"title":67,"title_id":68,"slug":69},14,[197],{"authors_id":198},{"id":93,"name":94,"slug":95,"role":96,"profile_picture":21},{"id":200,"title":201,"title_id":202,"slug":203,"excerpt":204,"excerpt_id":205,"has_translation":12,"published_at":186,"reading_time":187,"hidden_from_listing":15,"tags":206,"thumbnail_image":21,"og_image":207,"series":208,"authors":213},162,"Python File I\u002FO: Why the Second Read Came Back Empty","Python File I\u002FO: Kenapa Pembacaan Kedua Kembali Kosong","python-file-read-write","A notes script saves a line, prints it back, then counts zero. The file on disk is correct: `read()` left the pointer at the end, so the second call returned an empty string. Read once into a variable, or `seek(0)`, and the count matches the file.","Skrip catatan menyimpan satu baris, mencetaknya kembali, lalu menghitung nol. Berkas di disk sudah benar: `read()` meninggalkan pointer di ujung, jadi panggilan kedua mengembalikan string kosong. Baca sekali ke sebuah variabel, atau `seek(0)`, dan hitungannya cocok dengan berkas.",[149,150],"\u002Fog\u002Fpython-file-read-write.png",{"id":209,"title":210,"title_id":211,"slug":212},18,"Working with Python Scripts","Menggunakan Script Python","python-pemrograman-dengan-script",[214],{"authors_id":215},{"id":93,"name":94,"slug":95,"role":96,"profile_picture":21},[217,221,224,227,230],{"text":218,"depth":219,"id":220},"What counts as a hit?",2,"what-counts-as-a-hit",{"text":222,"depth":219,"id":223},"What does 0% look like in numbers?","what-does-0-look-like-in-numbers",{"text":225,"depth":219,"id":226},"Which line breaks the prefix?","which-line-breaks-the-prefix",{"text":228,"depth":219,"id":229},"What actually fixes it?","what-actually-fixes-it",{"text":231,"depth":219,"id":232},"How do you check your own loop?","how-do-you-check-your-own-loop",1796193146744]