Function
Meaning in software engineering, with examples
In software engineering, function means: A named block of code that does one job. It can take input values, and it often returns a result to the code that called it.
In Turkish: fonksiyon, işlev
How it is used
You write, define, call and test functions. In object-oriented code, a function that belongs to a class is usually called a 'method'. Reviewers often say 'This function does too much; can we split it?'
Example sentences
This function is 200 lines long. Let's split it into smaller ones.
The function returns null if the user isn't found.
Common collocations
- call a function
- define a function
- helper function
- the function returns
- pure function
Related terms
This word in other fields
The same English word can have a different meaning in another field:
More terms: Programming Concepts
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
