in a vacuum
Mar. 5th, 2007 02:21 pmI'm not a programmer; the closest qualification I have is that I'm a prolificly crap writer. So I, you know, type a lot.
I know I'm programming all wrong. I write, quickly and with no style, something that approximates what I need done. I cut and paste, and- because I can't visualize for shit- I run parts over and over until somehow I get them to do what I want. Sometimes this involves a couple thousand extraneous loops until I figure out why it's rendering on the order of minutes rather than fractions of a second. Then, when my hastily-cobbled-together jalopy is coughing along, I go back. I say "well, this piece over here is a lot like this piece, and if I move them both over there then maybe I can just call that. And so on- no line of code survives. Only after all that is done do I go through and comment.
I should, of course, be designing these modules in my head to be generic and re-usable. I should be commenting all throughout, not adding it after I'm done to clean it up.
And yet I struggle, in a vacuum, because that is preferable than inflicting my torturous stumbles and grade-school compositions on someone whose opinion I respect. There is as wide a gulf between me and good programming as there is between me and good writing.
I just can't get there from here, and it makes me want to cry.
I know I'm programming all wrong. I write, quickly and with no style, something that approximates what I need done. I cut and paste, and- because I can't visualize for shit- I run parts over and over until somehow I get them to do what I want. Sometimes this involves a couple thousand extraneous loops until I figure out why it's rendering on the order of minutes rather than fractions of a second. Then, when my hastily-cobbled-together jalopy is coughing along, I go back. I say "well, this piece over here is a lot like this piece, and if I move them both over there then maybe I can just call that. And so on- no line of code survives. Only after all that is done do I go through and comment.
I should, of course, be designing these modules in my head to be generic and re-usable. I should be commenting all throughout, not adding it after I'm done to clean it up.
And yet I struggle, in a vacuum, because that is preferable than inflicting my torturous stumbles and grade-school compositions on someone whose opinion I respect. There is as wide a gulf between me and good programming as there is between me and good writing.
I just can't get there from here, and it makes me want to cry.