232:
Only self-proclaimed Arduino forum "experts" write INITIAL cods using arrays, loops etc.
Most mortals, me included, do the initial version the way you did it.
That helps to visualize the patterns and LATER helps to condense the code.
It is called "software development".
IMHO that is called learning a language.