Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Dark Art of Debugging

The Dark Art of Debugging

A talk about developing the soft-skills required to be a good software debugger.

eojthebrave

May 22, 2015
Tweet

More Decks by eojthebrave

Other Decks in Technology

Transcript

  1. The Dark Art of Debugging php[tek] 2015 - Chicago Joe

    (@eojthebrave) Shindelar https://joind.in/event/view /3183
  2. 5 Minutes - GO! + Bugs are inevitable + Debugging

    is a science + Replicate, Isolate, Understand, Fix + Practice …
  3. Software: Is a set of written instructions provided for a

    computer to interpret and use to accomplish a task.
  4. Software: Is a set of written instructions provided for a

    computer to interpret and use to accomplish a task. Bugs: Are the defects that arise when those instructions are incorrectly translated.
  5. “There’s a space between zero and one, between the way

    the machine counts and thinks and the way we count and think. When you search for explanations for software’s bugs and delays and stubborn resistance to human desires, that space is where you’ll find them.” - Scott Rosenberg -Dreaming In Code
  6. This presentation is not about tools. But tools play an

    important roll in debugging. Learn your tools. Use your tools.
  7. Ready? Fire! Aim. Give yourself 10 minutes to jump in

    and dirty- debug. But STOP before you go crazy.
  8. It is a capital mistake to theorize before one has

    data. Insensibly one begins to twist facts to suit theories, instead of theories to suit facts. - Sherlock Holmes Quote -A Scandal in Bohemia
  9. Replicate + Keep a log + Get it to fail

    + Lay a trap + Stimulate. Don’t simulate
  10. Replicate + Keep a log + Get it to fail

    + Lay a trap + Stimulate. Don’t simulate + Automate the failure
  11. There is nothing more deceptive than an obvious fact. -

    Sherlock Holmes Quote - The Bascombe Valley Mystery
  12. Isolate + Avoid easter egging + Check the plug +

    Divide & conquer + Change one thing at time
  13. Isolate + Avoid easter egging + Check the plug +

    Divide & conquer + Change one thing at time + Stop thinking and look
  14. Goal: Explain what is causing the problem to occur. Include

    details about application state, time, and inputs.
  15. Nothing clears up a case so much as stating it

    to another person. - Sherlock Holmes Quote - Silver Blaze
  16. Understand + Brain games + Don’t assume anything. Ever +

    Practice tempered humility + Read the manual
  17. Understand + Brain games + Don’t assume anything. Ever +

    Practice tempered humility + Read the manual + Ask for help
  18. Eliminate all other factors, and the one which remains must

    be the truth. - Sherlock Holmes Quote - The Sign of Four
  19. “The greats weren't great because at birth they could paint.

    The greats were great cause they paint a lot.” - Macklemore
  20. The Dark Art of Debugging php[tek] 2015 - Chicago Joe

    (@eojthebrave) Shindelar https://joind.in/event/view /3183