== Your on the fly control system should not use toggles Here's a request to programmers: if you are building a system with some form of dynamic control and adjustment commands, like Bind 9 and its _rndc_ program for controlling the daemon's behavior on the fly, your interface should not include 'toggles', commands or options that invert the current state of a setting. In _rndc_, an example is '_rndc querylog_'; this turns DNS query logging on if it is off, and turns it off if it is on. (In fact this extends to startup options too.) A toggle is a terrible interface because it is a mechanism, not an outcome, and people don't care about the former and do care about the latter. There are basically no situations in which sysadmins want to change the state of query logging without caring what the previous and new states are; instead, sysadmins either want to turn it on or to turn it off. By providing only a mechanism, you force people to either assume what the current state is or to explicitly check it before (and perhaps after) they use your interface. So please don't do that. Don't build interfaces like '_rndc querylog_'; make interfaces that are '_rndc querylog on_' and '_rndc querylog off_'. Your users will thank you for it. (Toggles work in GUIs because you can see their state as well as change them, and you see their state *before* you change them.) A related sin is interfaces that increase or decrease a setting (such as verbosity or debug level), instead of setting it directly. While there are some uses for these, they should be the secondary way that you change the setting in question, not the primary way; you should always provide a way to directly set the setting's value, and expect it to be used most of the time. Again, usually people know the value that they want. It is rare that increasing or decreasing the level is the actual outcome people want, instead of just the mechanism for getting it. (The exception is when you are not certain what debug level will start producing the messages you want without also producing too much detail. There it makes sense to increase the debug level step by step until you hit the right point. But frankly, with modern shells with command line editing you can do this almost as well with a 'set to level X' interface.) Also, a personal note: sysadmins will kill you if the only way to disable debugging is to repeatedly run '_cmd decrease-debugging_' until it stops entirely. Well, really we'll kill your program and restart it, but we'll sure wish that we could say very grumpy things to you.