|
Originally posted by Rachel Swailes:
Using jdb and breaking from the back to the front I found a line of code that was not executing. And commenting it out seems to have done the trick! But why?
The commented out code was setting an object to null (because I didn't need it anymore.) So why did it throw me out and not just give an exception?
that commenting your code in good english is actually SO worth it in the long run!
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Rachel Swailes:
By comments helping I just mean that I've now realised how good it is to make little notes to yourself in the code. Like "Changed the filenames here so that I could identify all files moved in this session" or "Used a [] instead of a Vector because...". At least then when you're rushed for time you can look at the comments and not have to figure out what the code was supposed to do.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|