I've got a friend that has recently become aware that his own disorganization makes his performance really go down, and asked me for help on how to be more organized. I have been organized and detail-oriented since I have memory, so I give advice here and then, but I've failed to put together a nice plan to start from scratch or follow methodically (how ironic).
I haven't been able to come up with other references or activities that could help in getting to be organized per se, rather than getting more organized at a specific activity (like, in our example, coding).
So, which other ways are good to learn to be organized?
EDIT: Most of the answers make me think that I have not been clear enough on my question. I am not asking on how to develop properly or how to structure the code, but rather how to transition from a "living the moment" type of personality to a planning, structured approach to the tasks that you need to work on. Software development is just the case here but should not be the focus of the answers.
I had rephrased the question to account for that, since it was brought to my attention that some examples I provided were misleading.