[asterisk-users] Asterisk 1.8 and DeadAGI

Steve Edwards asterisk.org at sedwards.com
Wed Apr 4 10:02:53 CDT 2012


On Wed, 4 Apr 2012, SamyGo wrote:

> NOOP is just for fun no benefit aside from printing something for you 
> info on CLI.

It's not fun, it's misleading. Especially if English is not your primary 
language.

The name is not obvious. The Wikipedia entry for 'noop' says a 'no 
operation' instruction should be 'nop,' not 'noop.'

Even the 'help' description is contradictory. It says 'this application 
does nothing' and then it describes what it does.

There's a perfectly obvious application specifically designed for console 
output. It's named 'verbose' and it has more features.

A 'best practice' would be to use the obvious application with the 
intended action instead of the obtuse application with the convenient 
side-effect.

A 'noop' does have it's place as a 'place holder' for another application 
or to make a syntactically valid place for a label. If that's your intent, 
use it.

Otherwise, 'raise the bar' in your dialplan coding skills and do the right 
thing. Type the extra 3 characters and make your intent clear. Isn't that 
one of the 'hallmarks' of a skilled programmer?

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list