If a student creates a function that only has one single line of instruction, so for example:
total = total + 1;
Would this be considered a student-developed abstraction, as well as something that manages complexity? The way many of my students end up describing their reasoning for it being an abstraction is something along the lines of, “I can call my function, rather than writing out all of the code within it each time.” Since this is only one line of code, it doesn’t seem like it would count as an abstraction, nor would that reasoning count as managing complexity.
I could see if they described the complexity of their code and stated that they were using the function to help as an organizational strategy, but using it as stated above doesn’t seem point-worthy (for either lines 7 or 8) to me.
Can someone weigh in on their opinion?