idiom:
A programming idiom is a way to overcome a programming language limitation and/or to write commonly-used code with a purpose that is separated from a literal meaning of the code. Also, an idiom is a preferred way to write code, when there is more than one obvious way to do it.