The first step is to be aware that you aren't writing succinct, manageable code - so you are already making progress :)
I'd recommend these books, mixed with some searching around for best practices for whatever specific framework/language/toolkit you are writing code with.