Relative Content

Tag Archive for aspect-oriented

Progressbar patterns (Eclipse)

I’ve struggled quite a bit with Eclipse and progress-monitors to try to have good progressbars which report useful progress information to the user. Inevitably the code gets cluttered with lots of things like

Byte code weaving vs Lisp macros

I have been reading about the libraries people have written for languages like Java and C# that make use of byte code weaving to do things like intercept function calls, insert logging code, etc. I have also been reading up on Lisp/Clojure macros in an attempt to better understand how to utilize them. The more I read about macros, the more it seems like they provide the same kind of functionality as byte code weaving libraries. By functionality, I mean the ability to manipulate code at compile time.

Can AspectJ or AOP in general be used to test exception handling?

I’m reading a book’s chapter (“Controlled Exception Test” in “Testing Object-Oriented Testing”) about testing exception handling in a running system (not at unit level). The conclusion is that it is hard to automatically trigger an exception at a given layer in the system other then simulate a cause for an exception.

DDD: Alternative view of the Model?

I have a model class, let’s say it’s a Book. I need it to be displayed on the screen. I want to have an escaped version of it, so I do not need to escape fields manually.