PubSub is great, but it does bring you to callback hell somewhat. For example, but the processing and analysis widget rely on event triggered on the database widget (like selecting a subject or session). But when changing the measurement while you're on the processing widget, I don't need to make changes to the processing widget, because they won't get drawn and won't affect each other anyway.
So provide a way to effectively decouple the two, so we only do work that we have to do. I've made a start, but it might be worthwhile to go even one step further and to keep an eye on how well its working.
PubSub is great, but it does bring you to callback hell somewhat. For example, but the processing and analysis widget rely on event triggered on the database widget (like selecting a subject or session). But when changing the measurement while you're on the processing widget, I don't need to make changes to the processing widget, because they won't get drawn and won't affect each other anyway.
So provide a way to effectively decouple the two, so we only do work that we have to do. I've made a start, but it might be worthwhile to go even one step further and to keep an eye on how well its working.