Stories
Slash Boxes
Comments
typodupeerror delete not in

Comments: 1 +-   Reuse Code or Code It Yourself? on Tuesday November 04 2008, @04:18PM eldavojohn

Submitted by eldavojohn on Tuesday November 04 2008, @04:18PM
programming
eldavojohn writes "I began coding for a project that had simple requirements for my employer--web services and a test application for them. But requirements crept (as they always do) and strange requests keep coming up. Initially I had decided to use the Spring Framework with Hibernate. And I re-used a lot of libraries that made things simple and quick for me. Strange requests are starting to roll in that involve capabilities beyond those of the frameworks. Now, I used to be told that good programmers write code and great programmers reuse code. It's starting to look like I would have saved myself a whole lot of time if I had written the database transaction using JDBC instead of Hibernate. Because now that I'm married to this object model framework some of this stuff doesn't look doable. So what is better for the large part of software projects out there? Reuse code or code from scratch? What elements or identifications of a problem dictate one option over the other?"
submission

This discussion was created for logged-in users only, but now has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • You should have used iBatis instead of Hibernate, though I understand why you chose Hibernate or any other ORM framework. It was a poor design decision if you knew the program would be extended at some point. If you didn't know, you need to tell your project manager ASAP of the risks to the timeline associated with these new requirements. You might be surprised how quickly they disappear.

    Bottom-line is first and foremost the code(read: design) should be easy to modify.

The good life was so elusive It really got me down I had to regain some confidence So I got into camouflage