Published Apr 6, 2014

Aspectacular with Vlad Hrybok

Explore the transformative power of Aspect Oriented Programming (AOP) with Vlad Hrybok, as he dives into programming best practices, design patterns, and his innovative Aspectacular framework, which enhances code efficiency, execution, and business logic by simplifying method interception and optimizing database handling.
Episode Highlights
Coding Blocks logo

Popular Clips

Episode Highlights

  • Framework Basics

    shares the origins and core principles of his Aspect Oriented Programming (AOP) framework, Aspectacular. He emphasizes its ability to enhance business logic by allowing developers to apply aspects without altering existing code structures. This flexibility is achieved through Aspectacular's proxy pattern, which enables developers to wrap inter-tier calls and add aspects like logging or exception handling as needed 1.

    I don't understand why not everyone is rewriting their business logic in dull tiers with that as we speak. Because I think there is no justification for not having it.

    ---

    Vlad's passion for AOP is evident as he describes the framework's potential to streamline processes and improve code efficiency 2.

       

    Custom Aspects

    Creating custom aspects with Aspectacular is straightforward, thanks to its user-friendly design. explains that developers can subclass the existing aspect class, which includes seven virtual methods representing different stages of a function call 3. These methods allow for precise control over when and how aspects are applied, enhancing both functionality and testing capabilities.

    The aspect of framework is coming with just more than a handful aspects out of the box.

    ---

    Built-in aspects, such as those for transaction management and authorization, further simplify development by providing ready-to-use solutions 4.

       

    Interception Pros & Cons

    Aspectacular offers explicit control over aspect application, distinguishing it from other frameworks like PostSharp. highlights the framework's ability to apply aspects at specific points, providing developers with greater predictability and control over execution paths 5. While this explicitness aids in debugging and testing, it also introduces performance considerations due to the overhead of expression tree parsing 6.

    It's really easy to add to existing applications, brownfield applications. I can go in there, I can add exactly what I want to.

    ---

    Despite these challenges, the interceptor pattern used by Aspectacular simplifies debugging and testing, making it a practical choice for many developers 7.

Related Episodes