Coding by design ... a new and laborious concept.
Posted by Cerolas 16 years ago
I'm not used to this, but I'm not complaining.
Working on the UI ... and for the first time I'm laying out a major system in a preplanned design (with UML) and then implementing each part ... I'm missing dual display, because I'm constantly flipping back and forth between my code and the design, and considering the way the objects are interconnected, coupled with my short attention span, I can't simply go down and knock out one class at a time, as each class is dependent on other classes behaving in specific ways, so I'm going step by step, making sure it all fits together the way I've laid it out.
The most frustrating part is the fact that it takes me days of rolling over 'what I want to do' in my mind before I find a structure of objects (pattern, design, whatever you want to call it) that is simple, elegant, and has little fat to trim. If I rush to code too quickly, I run into snags realizing that my plan is akward, so I spend another day thinking it over, ending up scrapping what little source I put down. It's repetitive, a little laborious, but once I have this handful of objects in place, I can put up a dummy program and test it. That's where things will start to get interesting again. I'm just happy that I'm making any forward motion.
http://i168.photobucket.com/albums/u165/c4cypher/XCGAelements.png
Posted by Leshana 16 years ago Report
Well yes
[ Reply ]
Posted by Cerolas 16 years ago Report
*laughs* I know that this stuff is would come off as a bit obvious, I'm half talking about it simply as an outlet. I'm working on this project primarily to force myself to implement good coding practices, to get into the habit, to get used to the work of putting together a bigger project. Things such as designing your object model before you implement it, commenting your code (this is a struggle for me) as you write it, just good coding practice does not come naturally to someone whose only real education on the subject of coding was an introductory course on VB6. This has been a 'work at home' hobby for me, and up until this point I've done little but cowboy coding the most rudimentary little apps. I'm trying to learn the obvious 'good coding practices', not as it's taught, the knowledge, so much of the habits of putting such practices into use as you work on a project.
I'm not trying to teach myself such things because I know in my gut, based off what I've researched read, and found out from brutal experience and past abandoned projects that didn't even really get off the drawing board that these things will save me greif, time and effort in the long run. The price for not learning them, putting them into use, especially considering that I'm doing this on my own time, as a hobby ... is an abandoned work, my ideas and creativity unrealized, bogged down in some mess that I find is too intractable to effectively re-factor or recover. There's always a risk of that, but I'm practically guaranteed of it if I don't do the necessary legwork, regardless of whether I'm in the habit of doing so, or whether or not I have any clue how to.
[ Reply ]