So I declare a variable some where and initialize it. Now later on I need to use it to loop while its still positive so I need to decrement it. To me looping using a condition a
The latter way is reasonable. An alternative - if you don't have any break/continue statements - would be:
while (space > 0) { // Code space--; }