Developer Skill Sprints - Aspect Oriented Programming using DSharp with Nick Hodges

Posted by on in Blogs
Written by David I.

Nick Hodges, Embarcadero MVP and "Coding in Delphi" book author, recently presented his "Aspect Oriented Programming using DSharp". It was a great session with Nick and the community. You can watch the replay on the Embarcadero YouTube channel at https://www.youtube.com/watch?v=8iqcMHvG6Jw. Wikipedia an Aspect Oriented Programming (AOP) page that describes AOP in general for all programming languages. AOP is a way of injecting functionality into existing Delphi objects. In traditional object-oriented programming you would insert functionality somewhere in the object hierarchy so that objects down the tree have access to that functionality - for example adding logging methods to your objects. AOP allows you to "inject" methods into objects where you need the functionality.

In the developer skill sprint, Nick uses Stefan Glienke's DSharp implementation - the source code is available at https://bitbucket.org/sglienke/dsharp/src. The sample code used in Nick's skill sprint can be found at https://bit.ly/NickAOP. DSharp uses Object Pascal interfaces and attributes, so you'll need at least Delphi 2010 to use DSharp in your applications.

September 23 - Aspect-oriented Programming using DSharp

Nick Hodges - nick (at) nickhodges.com, @nickhodges
Coding in Delphi - https://leanpub.com/codingindelphi
Duration: 29 minutes and 40 seconds



https://www.youtube.com/watch?v=8iqcMHvG6Jw



Developer Skill Sprints are fast programming tips, tricks and techniques that you can use right now. Replays of previous Developer Skill Sprints are available on Embarcadero YouTube channel using the Developer Skill Sprints Playlist - https://www.youtube.com/playlist?list=PLwUPJvR9mZHhZTajVWsgaFPLtDA-t1Xwc

Get more Developer Skill Sprints videos, source code and resources at http://embt.co/SkillSprints. Get a free RAD Studio 30 day license at http://embt.co/RADDownload to try it yourself.

Take part in the conversation and ask questions using the comments section for this article.


About
Gold User, Rank: 18, Points: 191

Comments

Check out more tips and tricks in this development video: