search for: givepoint

Displaying 1 result from an estimated 1 matches for "givepoint".

2009 May 22
2
using console is a proper way in produciton?
Hello. I''ve planned to use script/console to support mainloop for my rails application. I need some infinite loop for doing my logic. For example, I want to give a point every second to users. to do this task I think I simply code like this: loop { GivePoint(); sleep 1 } on script/console and handle taks in the GivePoint method. Can this way work fine on commercial application? In fact, script/console looks like sort of helpers to test, so it may heavy to perform business logic in real world. Am I right? Somebody advice on me. Thanks.