Three points walk into a loop and come out identical. The list was never copied three times; the name was. A tuple makes that bug impossible.
Article archive
Browse every article on Invasikode — programming tutorials, AI exploration, and software architecture guides.
A de-duplication loop that works on clean data leaves four tags where there should be two. The bug is case, and the fix is a set.
A word counter dies the first time it meets a word twice. The fix is one line; what takes longer is knowing which of a dict's three lookups to reach for.
Satu service RAG yang merangkap parsing dan menjawab kueri bakal tumbang pas ada yang upload PDF 200 halaman. Obatnya dua jalur dan satu queue.
Satu agent dengan dua puluh tool gampang kacau. Begitu beberapa agent saling revisi, kamu butuh graf yang mendukung cycle dan angka yang membuatnya berhenti.
RAG yang cuma andalkan embedding balikin chunk yang mirip maknanya, bukan yang kamu butuh. Ini penyebabnya, dan dua lapis penambalnya.