Re: avoid the redefinition of a function
On Wed, 12 Sep 2012 18:56:46 +0200
Jabba Laci <firstname.lastname@example.org> wrote:
> (5) install mc
> You can type just "5" as user input and step_5() is called
> automatically. If I use descriptive names like install_java() then
> selecting a menu point would be more difficult. And I don't want users
> to type "java", I want to stick to simple numbers.
Your users shouldn't be working this out in any case. Consider,
computer time is cheap. Programmer time is not cheap but it is short
lived. User time is forever. Don't be lazy. Parse the input and
prepare to present proper error messages just in case your users are
D'Arcy J.M. Cain <email@example.com> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
|All times are GMT. The time now is 07:59 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.