The badge script printed the right name for the person who wrote it and the wrong name for everybody else. Slicing counts characters, and a name is words.
Artikel6 Oktober 2026
Ketika Pilih Framework Cuma Biar Kelihatan Beda
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.
Tulisan Terbaru
Lihat Semua →Koleksi dan StringPython Strings: the Badge That Only Worked for One Name
Koleksi dan StringPython Tuples: Why All Three Points Are the Same Point
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.
Koleksi dan StringPython Sets: the Duplicate That Keeps Coming Back
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.
Koleksi dan StringPython Dictionaries: the Key That Isn't There
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.
Iklan