Reusable Program Components (OCR A-Level Computer Science): Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Definition of reusable program components
Definition of reusable program components
Pre-built code designed to be used multiple times without modification
Three examples of reusable components
Three examples of reusable components
Functions, classes/objects, libraries/modules/frameworks
Why reusable components improve efficiency
Why reusable components improve efficiency
Save time by using pre-existing solutions instead of writing from scratch
How reusable components aid maintainability
How reusable components aid maintainability
Updates or fixes applied once benefit all areas where it's used
Benefit: Faster development with reusable components
Benefit: Faster development with reusable components
Reduces time spent on coding and testing
Benefit: Improved code quality from reusable components
Benefit: Improved code quality from reusable components
Tested & optimized components reduce bugs and improve reliability
Benefit: Cost efficiency of reusable components
Benefit: Cost efficiency of reusable components
Reduces costs by minimising redundant coding efforts
Modular design in creating reusable components
Modular design in creating reusable components
Break program into independent modules performing specific tasks
Parameterisation in creating reusable components
Parameterisation in creating reusable components
Use parameters to make components flexible to different inputs
Drawback: Initial development time
Drawback: Initial development time
Takes more time initially due to thorough design and testing needs
Drawback: Complexity of reusable components
Drawback: Complexity of reusable components
Highly reusable components can become complex and hard to understand
Common mistake: Overengineering
Common mistake: Overengineering
Making components too generic/flexible leads to unnecessary complexity
