2 ms·
By simply experimenting without understanding you run a good chance of producing code that is only correct by accident or code that is technically correct but w
by dagw 10y ago
By simply experimenting without understanding you run a good chance of producing code that is only correct by accident or code that is technically correct but wildly inefficient. Also by first taking the time to build up a mental model of what is going on might spend longer fixing the first and second bug (which tend to be the easy ones), but you'll spend dramatically less time fixing 12th and 13th bug (which tend to be the really tricky ones).