EGM_3344_Programming_Tips

EGM_3344_Programming_Tips - PROGRAMMING TIPS AND .M FILES...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
PROGRAMMING TIPS AND .M FILES EGM 3 344 Programming Tips Key concepts: Divide and conquer Be organized Modularity/Portability Break complicated tasks into more manageable chunks performed in separate functions. Benefits Simplifies the development and understanding (by others and you) of program logic Facilities debugging and testing of program components (each can be tested separately) Produces reliable code once debugged (never need to check it again) Makes repeated sections of code readily available for any problem (code becomes generic rather then problem specific, and you essentially create your own library of re-usable code – why keep reinventing the wheel!) Eliminates repeated sections of code that are hard to keep consistent when changes need to be made Leads to good code design and much easier code writing Flags: Look for tasks . . . where Selections and Repetitions occur that are repeated in different locations that could take different functions as input
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

EGM_3344_Programming_Tips - PROGRAMMING TIPS AND .M FILES...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online