[flexcoders] If im using the same code twice, should i re-use?

2007-03-25 Thread Yaison Alcantara
Hi coders, This is a newbie question, finding its way to The enlightenment of Best-Practices and Re-use. Consider this case: Custom Component A --+ mx:Script ![CDATA[ //...logic for comp A private function getRecords():void{ var

Re: [flexcoders] If im using the same code twice, should i re-use?

2007-03-25 Thread slangeberg
-*will it be ok to create a class that just handle the service? Not just ok, but great! *does it really worth considering we are using the code just 2 times? *why? Just wait till you need to modify anything about that service, like the URL. Who wants to track down multiple instances that