When writing programs, my code tends to be very inelegant; I just have very little intuition for writing code that isn't longer than it needs to be.
Is there anything I could do to improve my thinking, so that when I write a program, the code isn't so ugly right off the bat? I already know about pseudocode, but my not-too-ugly pseudocode tends to get translated into very ugly actual code.