Hacker News new | ask | show | jobs
by guybedo 29 days ago
AOP is an interesting pattern but i've mostly tried to stay away from it mostly because:

- code readability and maintainability takes a hit. If you don't know things are defined using AOP in files x,y,z you can read the code and miss a whole lot of things.

- AOP implemented at runtime is a mess when you're trying to debug things

So yeah, instead of having aop defined somewhere else to wrap a function call, i tend to prefer doing it explicitly transaction(function())