code programming

Debugging: Finding It Yourself

The half of programming nobody teaches. You take one working program, break it nine ways, and find every fault by elimination rather than by staring at it. Ends with the kind of bug that raises no error at all.

  • trending_upBeginner
  • schedule5h 21m
  • menu_book9 บทเรียน
  • publicEnglish
  • workspace_premiumBasic
Debugging: Finding It Yourself

บทสรุป

Every beginner course stops at "and now it works". Then the learner goes home, changes one line, and has no method for what happens next. This segment is the method. One small program — a bill splitter, about twenty lines — gets broken repeatedly and you get it back. You will read a traceback properly instead of scrolling past it. You will cut a file in half with `exit()` and cut it in half again until two lines are left. You will comment out everything except one function and drive it directly. You will print a value raw, then stripped, then lowered, so you can see the transformation instead of reasoning about it. Then the gauntlet: missing colon, wrong quote characters, stray whitespace, indentation, `=` where you wanted `==`, a result you never stored, two functions with the same name, an input asked for twice, a `TypeError` on text that was never converted, and text glued together where you meant to add numbers. Six of those tell you something is wrong. The rest do not say a word, and those are the ones that reach other people.

เนื้อหาคอร์ส · 3 โมดูล

lockปลดล็อกด้วยการเข้าถึง
  1. 01 Reading What It Already Told You
    3 บทเรียน·1h 9m

    A traceback is read from the bottom. The last line is a sentence. The line number above it is where Python gave up, which is not always where you went wrong. Read it, then act. Guessing before…

  2. 02 Elimination, Not Inspiration
    3 บทเรียน·1h 37m

    Real troubleshooting is elimination. You do not find the fault by thinking harder about the whole file; you find it by making the file smaller until there is nowhere left for it to hide.

  3. 03 The Gauntlet
    3 บทเรียน·2h 35m

    One fix, one run. A file with four changes in it and a fresh error tells you nothing about which change caused what.

คำถามที่ถูกถามบ่อย

ฉันจะเรียนรู้อะไรใน Debugging: Finding It Yourself
The half of programming nobody teaches. You take one working program, break it nine ways, and find every fault by elimination rather than by staring at it. Ends with the kind of bug that raises no error at all.
ฉันต้องมีประสบการณ์มาก่อนหรือไม่
ไม่ — Debugging: Finding It Yourself เริ่มต้นจากพื้นฐาน และเหมาะสำหรับผู้เริ่มต้น
Debugging: Finding It Yourself ใช้เวลานานเท่าไหร่
Debugging: Finding It Yourself มี 3 โมดูล และ 9 บทเรียน คุณเรียนรู้ได้ตามความเร็วของคุณเอง
ฉันจะเข้าถึงได้อย่างไร
Debugging: Finding It Yourself รวมอยู่กับสมาชิกแบบจ่ายเงินใด ๆ

เพิ่มเติมใน การเขียนโปรแกรม

Binary, Hex and Data Units
Beginner Binary, Hex and Data Units The topic that costs more marks than any other on the paper, taught by hand. Bits and bytes, binary and hex in all six directions, the 1000-versus-1024 trap, file sizes, transmission times, overflow, two's complement and character sets. Every module ends in a timed drill marked the way an examiner marks it.
First Program — Scratch for ages 5–9
Beginner First Program — Scratch for ages 5–9 Nine Scratch blocks, three sessions of about twenty-five minutes, and one small program a child of five to nine builds themselves. Written for the parent sitting beside them: what to click, what they will get stuck on, what to say when it goes wrong, and when to keep your hands off the mouse.
AI Without the Hype
Beginner AI Without the Hype โมเดลกำลังทำอะไรอยู่เมื่อตอบคำถามของคุณ เหตุใดจึงเกิดผลลัพธ์ที่ดูเหมือนการคิดขึ้นมา เหตุใดจึงสร้างการอ้างอิงที่ไม่มีอยู่ และกลไกต้นทุนที่เกือบไม่มีใครอธิบาย: แชตจะส่งการสนทนาทั้งหมดใหม่ในทุกครั้งที่กดส่ง คุณจะต้องคำนวณมันเองด้วย
Python From a White Sheet
Beginner Python From a White Sheet ลำดับที่แน่นอนที่นักเรียนเก้าคนได้เดินผ่านแล้ว จากไฟล์เปล่าไปจนถึงโปรแกรมที่ถามคำถาม ตรวจสอบคำตอบ และปฏิเสธข้อมูลไม่ดี ไม่มีประสบการณ์การเขียนโปรแกรมก่อนหน้านี้ ไม่มีคณิตศาสตร์ คุณจะทำให้มันพัง ซ้ำแล้วซ้ำเล่า โดยจงใจ
IGCSE และ GCSE Computer Science — ทฤษฎีที่ได้คะแนนจริงๆ
Intermediate IGCSE และ GCSE Computer Science — ทฤษฎีที่ได้คะแนนจริงๆ ส่วนทฤษฎีของข้อสอบ สอนให้คุณจำได้ผ่านห้องสอบ โครงสร้างหน่วยความจำและสิ่งที่เกิดขึ้นตอนเริ่มเปิดเครื่อง Compilers, interpreters และ assemblers รวมคำตอบที่ฟังดูถูกต้องแต่ได้ศูนย์คะแนน Databases จากสเปรดชีตขึ้นไปถึง keys และ normalisation DNS และเส้นทางเต็มจากการกดเข้าถึงการเห็นหน้าเว็บ Software ระบบและส่วนจริยธรรมและกฎหมายที่เป็นสิบคะแนนที่ง่ายที่สุดในข้อสอบ
Programming for the Exam — Python Answers That Score
Intermediate Programming for the Exam — Python Answers That Score The programming half of the paper, taught at exam pitch. Pseudocode translated both ways, because the mark scheme is written in a notation nobody practises. Trace tables done column by column, including the ones with a loop and a condition inside it. Linear and binary search, bubble and insertion sort, what each costs and the comparison questions boards love. Validation against verification, and the boundary test data everybody forgets. Procedures against functions, and a systematic method for finding your own error with four minutes left.