PtokaX forum

Stuff => Offtopic => Topic started by: [NL]Pur on 20 March, 2004, 15:24:31

Title: AOP - Aspect oriented programming
Post by: [NL]Pur on 20 March, 2004, 15:24:31
I've recently about  the existence of 'Aspect oriented programming',

Since there lots of programmers here,,

Could someone explain to me what it exactly is. Is this a technique extending OOP or the new standard of the future ?
Title:
Post by: [NL]Pur on 22 March, 2004, 23:49:04
so nobody heard of this before ? :(
Title:
Post by: NotRabidWombat on 22 March, 2004, 23:57:13
It is the next level up above OOP. It allows you to abstract the global design of your software and modify collections (member function, properties, etc) as if they were data.

An excellent example is logging. Logging helps developers trace and debug code. BUT a logging object must be included in every other object. This adds a lot of tedious coding and creates heavy maintance (what if you want to change your logging OR what if you make a mistake).
So AOP lets you say: put this line of code at the beginning and end of every public member function. Enter this into your weaver with your source and viola, you have added the intertwined code.

I think there are some prototype languages for Java called HyperJ and AspectJ.

-NotRabidWombat