Solved
How long should variable names be?
OP
In stage 3, is fuel_remaining_after_burn_kg too long?
In stage 3, is fuel_remaining_after_burn_kg too long?
Comments 4
Log in to join the discussion.
Log in Create accountLong is fine if it's clear, but there's a balance.
fuel_left_kgsays the same thing in fewer characters. Good test: can someone guess what it holds without reading the rest of the code?fuel_left_kgit is. Units in the name are useful though, right?Very. Mixing kg and tonnes is how real missions get into trouble.
The task says no one- or two-letter names, so anything readable passes. Readability is the real goal.