Published Nov 7, 2016

Clean Code - Comments Are Lies

Delve into the world of clean coding with Allen, Michael, and Joe as they unravel the deceptions of misleading comments, explore the intricacies of aspect-oriented programming, and highlight the impact of Resharper on code formatting, all while emphasizing the importance of community feedback and effective documentation.
Episode Highlights
Coding Blocks logo

Popular Clips

Episode Highlights

  • AOP Basics

    Aspect-oriented programming (AOP) offers a unique approach to handling cross-cutting concerns in software development. Joe Zack explains how AOP can simplify tasks like null checking, logging, and exception handling by isolating these concerns into separate aspects. This method allows the core business logic to remain clean and focused, enhancing code maintainability and readability 1. Alan Underwood and Joe also highlight a presentation by the creator of PostSharp, who demonstrated advanced uses of AOP, such as enforcing design patterns and generating compile-time errors for non-compliance 2.

    You could use aspects to enforce design patterns so that if you see that something isn't being done, then you could either wrap it into the correct design pattern.

    --- Joe Zack

    These insights reveal the potential of AOP to not only reduce boilerplate code but also to ensure adherence to best practices.

       

    Personal Insights

    The hosts share their personal experiences with various programming paradigms, including AOP. Joe recounts his struggles with object-oriented programming and the shift to composition, emphasizing the importance of flexibility in choosing the right tool for the job 3. He also discusses meeting influential figures in the AOP community, such as the author of AOP in .NET, and how these encounters have shaped his understanding and application of AOP 4.

    Sometimes, you know, we got to stop that. Like, we can't, we can't say it's going to be all or nothing in one thing.

    --- Joe Zack

    These experiences underscore the value of being open to different programming approaches and learning from industry experts.

Related Episodes