DCL

An elegant OOP with mixins + AOP for JavaScript.

Advices

For programmer’s convenience dcl provides following general advices:

  • countercounts how many times a certain method was called and how many times it failed (had thrown an exception)
  • flowclassic AOP flow helper, which keeps track if we were called in a process of executing of a certain method, and how many times it was recursed
  • memoizeanother classic AOP helper, which provides simple generic cache for read-only methods
  • timetimer, which uses console timing interface to measure an execution time of a method
  • tracetracer, which logs console beginning and ending of a method including its arguments, and a return value
Fork me on GitHub