Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Routine with sequential cohesion
//Example of routine with sequential cohesion
function randomRoutineName($birthDate) {
// Calculate the age from the birth date
$currentAge = // Stuff to get current age from birth date
// Calculate the retirement time from the current age
$retirementTime = // Stuff to get retirement time from current age
// This routine is sequential cohesion because the last operation need to use the result of the previous operation to calculate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.