Coding to my (very limited) experience is all about making the code as compact and clear as possible, while keeping it fully functional.
In the piylatin lessons we are end up putting the positive result in the very first ‘if’ statement, wouldn’t it be quicker to put it in the ‘else’ statement? This would allow us to pass through the errors first, maybe while giving some feedback to the console which errors did NOT trigger the code to stop functioning and once all possible sources of error would’ve been checked you would result in the actual output.
The only counter argument I could think of is this resulting in a program becoming slower (not having any experience I would like to ask how significant this slowing is)
I would love your input!
Have a nice day, Florian