Design question, hardcode or not

View: New views
1 Messages — Rating Filter:   Alert me  

Design question, hardcode or not

by Boris O. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I am working on some project which uses AIML to communicate with users.  One of the use cases is when user asks information about temperature in some room.  Number of rooms will change over time, (new rooms will be added), so my question is, should I hardcode names of rooms i AIML, or should I use star wildcard which will grab room name, and then check in Python room existance?  If I hardcode names of the rooms i AIML I have wider range of potential users inputs, and if I use star the range will be smaller.

Another question, can I check with AIML if some input captured by star is number?

Tnx