Skip to content
Learnearn.uk » A Level Computer Science Home » Efficient Code

Efficient Code

Intro

Writing  Efficient Code

Efficiency in coding is very important. It allows you to speed up your development time and makes your code easier to read, debug and maintain. There are a number of different ways in which you can make your code more efficient, including:

  • Use of loops for repeated actions
  • Use of data structures instead of separate variables
  • Use of compound data structures
  • Use of functions & procedures
  • Use of in-built features / external code libraries
  • Use of recursion
  • Use of object orientated coding.
  • Separation of data from the code

Loops

Structures

Functions

Libraries

Recursion

OOP

Separation