Posted by heinlattzaw on Tuesday, November 17, 2009
November 13 ရက္ေန႕က MCPA ကလုပ္ေပးတဲ့ Best Practices For Software Developement Seminor မွာ Speaker ေၿပာသြားတဲ့
အခ်က္ေလးတစ္ခုပါ။မလိုအပ္ပဲ resources ေတြကို မသံုးဖုိ႕နဲ႕ သံုးခဲ့ရင္လည္း တတ္ႏိုင္သမွ် အခ်ိန္နည္းေအာင္ coding မွာဂရုစိုက္စဥ္းစားဖုိ႕ပါ။
Instead of
Connection c=getConnection();
Call a method that doesn't use Connection c;
c.execute();
Do
Call a method that doesn't use Connection c;
Connection c=getConnection();
c.execute();