Published Oct 17, 2016

Clean Code - How to Write Amazing Functions

    Unlock the essentials of coding mastery with Cold Blocks as they delve into advanced debugging techniques, strategic unit testing for robust code design, and the art of writing clean, efficient functions. Gain valuable insights into refactoring with real-world examples, and enhance your code quality through effective naming and managing function arguments.
    Episode Highlights
    Coding Blocks logo

    Popular Clips

    Episode Highlights

    • Conditional Breakpoints

      Conditional breakpoints are a powerful tool for making debugging more efficient and targeted. Michael Outlaw explains how to set these breakpoints in Visual Studio, allowing developers to stop execution only when specific conditions are met. This technique helps avoid cluttering code with excessive logging and keeps the debugging process clean and focused 1.

      You can selectively turn them on and off without losing your code.

      --- Michael Outlaw

      Alan Underwood adds that combining conditional breakpoints with actions, such as logging messages, can significantly enhance debugging capabilities 2.

         

      Logging During Debugging

      Integrating logging within debugging sessions offers better insights without extensively changing the code. Michael Outlaw describes how to log messages directly from breakpoints, mimicking standard logging formats like Log4j. This method allows developers to inject debug code at runtime without committing it to the main codebase 3.

      It's debug code that you can inject at will at runtime that doesn't have to be committed.

      --- Michael Outlaw

      Joe Zack shares his experience with creating videos on coding problems, emphasizing the importance of clear and effective debugging practices 4.

    Related Episodes