Hybrid
New Member
So, I was thinking about trying to test the render architecture I'm designing in my other proposal, and I realized that I would have to design a whole NUI interface to get anything done, and unit testing would be fairly difficult since the architecture involves a lot of hot-swapping of Nodes and automating that would take a ton of extra work.
I'm a bit of a linux poweruser, and I quite like the idea of seperating policy from mechanism, just wrapping all the tricky stuff in executables, and then work on top of those.
So I was thinking, why can't we do that here?
Here's my though process:
String <command-name>(String args[]);
Possibly with some of that annotation magic(I'm still not entirely sure how that works).
Here's some potential upsides:
I'm a bit of a linux poweruser, and I quite like the idea of seperating policy from mechanism, just wrapping all the tricky stuff in executables, and then work on top of those.
So I was thinking, why can't we do that here?
Here's my though process:
- Each module defines a ConsoleProvider with methods for each command it supports(we could use reflection here).
- The user can run the commands from the console in the same way, but prefixed with the module name.
- /render/ list "nodes"
- /render/ inspect <nodename>
- /render/ disable-node <nodename>
String <command-name>(String args[]);
Possibly with some of that annotation magic(I'm still not entirely sure how that works).
Here's some potential upsides:
- Testing is easier.
- Most Terasology programmers probably use Linux, so this should feel natural to them.
- The system can be extended to a basic scripting language.