Discover the new features and improvements of PostSharp 4.2 during the live webinar with Gael Fraiteur, President & Chief Architect at PostSharp Technologies, and see how we dogfooded the new features in a real-world project of ours: PostSharp Tools for Visual Studio. Get ready to see some real code that runs inside your Visual Studio!

Speaker:Gael Fraiteur, President & Chief Architect at PostSharp Technologies
Duration:45 minutes + Q&A session
Time:Central European TimePacific Time (US)
 
February 16, 2016
4:00PM - 5:00 PM CET
February 17, 2016
10:00AM - 11:00 AM PT

In this webinar, you will see:

  • How we dogfooded our threading models into PostSharp Tools for Visual Studio and what we did to make them more usable;
  • Amazing performance improvements in ready-made patterns;
  • Improvements in INotifyPropertyChanged;
  • Compute how many lines of code you save thanks to PostSharp with the brand new PostSharp Metrics feature.

Plus, you will have a chance to ask Gael any questions about the tool during an open-ended Q&A session.

Looking forward to seeing you online!

-Iveta

About the speaker, Gael Fraiteur

Gael Fraiteur

Gael has been passionately programming since childhood; building and selling his first commercial software at age 12. He is President and Chief Architect at PostSharp Technologies based in Prague, Czech Republic. Gael is a widely recognized expert in aspect-oriented programming and speaks at developer conferences in Europe and the United States.

 

Last week, Donald Belcham joined Gael Fraiteur on the PostSharp Live Webinar to talk about one of the largest challenges faced on Brownfield projects: adding project-wide functionality to a codebase.

Attendees learned:

  • Options for adding non-functional requirements
  • Areas of risk when adding non-functional requirements
  • Use of IL Weaving to add non-functional requirements
  • IL Weaving granularity

Watch the recording and learn the techniques and tools you can use to add functionality to brownfield codebases.

Q&A

Q: In a greenfield development scenario that is already using IoC, are there any advantages to using the existing container to implement AOP features vs. using IL weaving?

A: The primary benefit of IL weaving is the types of aspects you can create. With Interception you can only wrap public virtual methods. IL weaving allows you to add aspects to events, field variables, property getters/setters, methods, etc.

Q: I have a brownfield project that's 20 years old and was developed using ASP, VB6.0, Windows Services and JavaScript. How do I migrate it to green field?

A: A good place to start is the case study we wrote with the team at Mitchell International, who faced a similar scenario. It demonstrates how they used PostSharp to build several aspects to facilitate integration between their new and old applications. The project was daunting but by adding Activity Logging, Exception Handling, Performance Counters, Thread Dispatching and Data Sync functionality project-wide the team saved from having to write thousands of lines of code.

Q: I used PostSharp OnMethodBoundaryAspect and TransactionScope to replace transaction management in a very large brownfield data access project (SQL transactions). There was a lot of duplicate code removed and all done successfully now - it's much cleaner. The only issue was around code where a rollback transaction was forced (not rolled back implicitly as the result of an exception). Is there a more comprehensive example (beyond the basic TransactionScope enter, exit, dispose, complete) of how other people have gone about this?

A: You could have a static method InvalidateTransaction that would set a thread-static boolean field. In the OnEntry advice, check that field to decide whether the transaction should be committed or rolled back.

Q: How will Roslyn change the AOP landscape in .NET languages like C# and VB?

A: Good things would happen if the compilation pipeline could be made customizable. It could improve Intellisense and compiler support for aspects that introduce new interface implementations, methods, or even full types. Unfortunately, there's no indication this will happen any time soon. Except for these possibilities, Roslyn is not going to be a game changer.

Next week’s guest on the PostSharp Live Webinar is Donald Belcham, a senior software developer, independent contractor, trainer, speaker and PostSharp MVP.

On Thursday, August 29th (09:00 PT, 12:00 ET, 16:00 GMT) Donald will speak about one of the largest challenges faced on Brownfield projects: adding project-wide functionality to a codebase.

The difficulty comes from the tangled nature of Brownfield codebases. Finding all the locations where the functionality is needed is one thing. The bigger issue is, how do you add the new functionality without altering existing APIs or, worse, introducing defects?

This webinar will look at the techniques and tools that you can use to add functionality to less than inviting codebases.

Attendees will learn:

  • Options for adding non-functional requirements
  • Areas of risk when adding non-functional requirements
  • Use of IL Weaving to add non-functional requirements
  • IL Weaving granularity

If you’ve ever wanted to learn how to better tame brownfield codebases using AOP be sure to sign-up for the next PostSharp live webinar.

Seats are limited so reserve your spot today

See you there!

-Britt

p.s. – Donald and Kyle Baley’s excellent Brownfield Application Development in .NET book can be purchased with a 50% discount until August 24th, 12 midnight EST, using the code: pswkd5