Reusable Program Components (OCR A-Level Computer Science): Flashcards

📚Flashcards
Reusable Program Components
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

12 cards from this deck

Show

Definition of reusable program components

Pre-built code designed to be used multiple times without modification

Three examples of reusable components

Functions, classes/objects, libraries/modules/frameworks

Why reusable components improve efficiency

Save time by using pre-existing solutions instead of writing from scratch

How reusable components aid maintainability

Updates or fixes applied once benefit all areas where it's used

Benefit: Faster development with reusable components

Reduces time spent on coding and testing

Benefit: Improved code quality from reusable components

Tested & optimized components reduce bugs and improve reliability

Benefit: Cost efficiency of reusable components

Reduces costs by minimising redundant coding efforts

Modular design in creating reusable components

Break program into independent modules performing specific tasks

Parameterisation in creating reusable components

Use parameters to make components flexible to different inputs

Drawback: Initial development time

Takes more time initially due to thorough design and testing needs

Drawback: Complexity of reusable components

Highly reusable components can become complex and hard to understand

Common mistake: Overengineering

Making components too generic/flexible leads to unnecessary complexity

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.