02-07-2018, 10:02 AM
Maybe, but the UI is already aware of an end() ... ?
This since it posts the performance analysis after finished, it just isn't the end() defined within strategies
since that end() only have the ability to post stuff to the terminal.
The strategies would still be dumb and simple, this would just be strat.ui.end = function(){ alert('hello world'); } or whatever one wanted.
The complexity, just as it is now, would still be up to the user (which is a good thing since it's more flexible and becomes easier to test/write).
This since it posts the performance analysis after finished, it just isn't the end() defined within strategies
since that end() only have the ability to post stuff to the terminal.
The strategies would still be dumb and simple, this would just be strat.ui.end = function(){ alert('hello world'); } or whatever one wanted.
The complexity, just as it is now, would still be up to the user (which is a good thing since it's more flexible and becomes easier to test/write).