javascript - Aspect programming using Backbone -


i looking detailed example code aspect oriented programming implemented using backbone.advice mixin.

i have looked @ following links not intutive , finding difficult integrate backbone mv* application.

https://github.com/rhysbrettbowen/backbone.advice 

also can tell me whether using advice can access original parameters passed method around advice gets applied.

edit: answering questions here in original thread

q: looking for? trait based composition , conflict resolution method modifiers before, after, around or real aspect-oriented programming?

a: have few views which inherited common view, view contents own implementation render, apply advice i.e. after every render custom stuff etc.

i looking detailed example code ...

unfortunately i'm not able point somewhere on that. might able provide rest.

... ... aspect oriented programming implemented using backbone.advice mixin.

having source code, "backbone.advice" not provide functionality aspect-oriented programming.

but - first sentence @ backbone.advice states - provide "functional mixins backbone based on advice angus croll". provides own mechanics of how solve composition conflicts if 1 going use mixins traits.

q: looking for? trait based composition , conflict resolution method modifiers before, after, around or real aspect-oriented programming?

q: trying achieve?

also can tell me whether using advice can access original parameters passed method around advice gets applied.

looking source code of backbone.advice again ...

https://github.com/rhysbrettbowen/backbone.advice/blob/master/advice.js#l36 https://github.com/rhysbrettbowen/backbone.advice/blob/master/advice.js#l48 https://github.com/rhysbrettbowen/backbone.advice/blob/master/advice.js#l64

... answer "definitely yes".


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -