@21Solutions wrote:
if I had lived in the theoretical world like your professor then I may have done it the second way as well.
but for all intents and purposes, the first way is much more performant than the second one, and I always opt for the side of performance with all other factors being equal.