Re: [buildcheapeeg] BWView improvements

From: Doug Sutherland (wearable_at_earthlink.net)
Date: 2002-03-01 12:18:34


Jim,

Your desire to have command-line control is a perfect example
of why we need abstract interfaces. You want command line,
others want GUI, and I want to do some alternative interfaces
like infrared remote and voice control. So let's pick one
function: you have brightness control in your program. If we
separate WHAT gets done from HOW it gets done, everyone can
be happy.

setBrightness(int level)
// code that actually changes the brightness

You create a comand-line parser that calls this (B #).
Someone else creates a GUI that calls this (click).
I create an infrared listener that calls this (vol up button)
I create a voice-control listener that calls this ("brighter")
Any number of other methods can be added.

Namaste,
Doug



This archive was generated by hypermail 2.1.4 : 2002-07-27 12:28:39 BST