Re: [Tutor] [OT] Best Practices for Scientific Computing

2014-12-29 Thread Danny Yoo
> When you have nearly identical or identical pieces of code, make functions > rather than cut and paste the same code. Call the function from various > places. It makes it easier to bug fix later We can make this more concrete. Let's say that we are writing a program to do all kinds of dice ro

Re: [Tutor] [OT] Best Practices for Scientific Computing

2014-12-29 Thread Joel Goldstick
On Mon, Dec 29, 2014 at 6:50 PM, Patti Scott < pscott...@yahoo.com.dmarc.invalid> wrote: > Could someone clarify "Modularize code rather than copying and pasting?" > > thanks > Sure -- When you have nearly identical or identical pieces of code, make functions rather than cut and paste the same c

Re: [Tutor] [OT] Best Practices for Scientific Computing

2014-12-29 Thread Patti Scott
Could someone clarify "Modularize code rather than copying and pasting?" thanks On Fri, 11/14/14, Albert-Jan Roskam wrote: Subject: [Tutor] [OT] Best Practices for Scientific Computing To: "Python Mailing List" Date: Friday, November 14, 2014, 12: