Duplicate Template Fields

Definition:

  • The fields of two or more templates are identical or very similar

Code Example:

template MyRecordType t1 := {
field1 := "foo",
field2 := 1,
field3 := true
}


template MyRecordType t2 := {
field1 := "foo",
field2 := 1,
field3 := true
}

template MyRecordType t3 := {
field1 := "bar",
field2 := 1,
field3 := true
}

References:

Quality attributes

  • - Code Example

  • - Cause and Effect

  • - Frequency

  • - Refactoring