As far as I understand it, XP discourages assuming something is going to be
needed until you actually get to that point where it is needed. Also
according to my understanding, that includes abstracting code to be more
general for reuse, until there is duplication, and then it can be
refactored.
So, what about reuse across projects? That'd be duplication, but not within
the same project.
I've put about 30 hours into a part of this project I'm working on that I
really think could be reused, which is why I'm curious about this. Surely
reuse across projects can save a lot of time.
So how do you handle this, when you're working on a new project, and there's
a part that is very similar to something in another project? How do you know
when to abstract it for better reuse?
Hi, As far as I understand it, XP discourages assuming something is going to be needed until you actually get to that point where it is needed. Also according...
Hello, Brandon. On Thursday, April 9, 2009, at 6:03:47 AM, you ... Actually, unless the projects are being done by the same team, reuse is quite difficult to...
... When all the projects are in the same Grand Wazoo Build suite. That way you change one shared module, and they all rebuild and retest on the test server....
Hi, Brandon, ... Reuse was once touted as the "new wave" that would make software development much more efficient. In practice, that has not generally ...
Hi George, ... That's a huge challenge! I've seen attempts to broadcast information, repositories with search capabilities, and so on, but little success. Even...
Actually, reuse is incredibly easy to achieve and occurs all the time. We see this in the form of open source software, for example. We also see this in the...
... Reuse of reusable software is easy. That is what it means for software to be reusable; it is easy to reuse. On the other hand, making reusable software...
... That sounds interesting. I would predict though that it would rarely get backported to the previous project, since it already works as-is? That's not ...
... If there's benefit to ongoing work on the original project, then the chances are pretty good. The generalization process often makes the code easier to...
Surely someone has studied how reuse works in open source. One Ruby repository (rubyforge) has 7558 projects. I imagine the use of them follows a sharply...
... That's exactly what I'm thinking. What people are saying makes sense, but if everyone had that mindset, we wouldn't have frameworks such as Rails, nor any...
Hello, Brandon. On Thursday, April 9, 2009, at 6:10:15 PM, you ... There are plenty of things that are reused. If they are easy to reuse, it is likely that...
On Fri, Apr 10, 2009 at 7:32 AM, Ron Jeffries ... Sometimes it does make business sense, though. Rails is an example where the commercial product lent itself...
... The advantage of open-source is, of course, that it is unnecessary to make the framework perfect for every possible use. This reduces the cost. ... I have...
... I don't know that that is an advantage of open-source per se. Design decisions will affect the way that a framework can be (ab)used, and people will find a...
... Yes, to a first approximation. However ... I do think that much of good design just happens to be good for reuse. Small modules, not very interdependent...
... There are at least two sides to this: It used to be believed, and is still believed by some, that reuse was a goal in and of itself. In fact, it is the...
... This is also an interesting idea, but how would this emergent reuse work? I can see modifying that component for each project you need it to *only* fit the...
... I don't think that is conventional wisdom. Maybe in some circles. People who study software reuse distinguish between reusable software and software that...
... Good point, Brian. And probably the best way for an organization to let others within the same organization know about a particular reusable component is...
I'm glad to see that others also identify this as a very difficult thing to do. We have been struggling with this for a while and I feel that we have a decent...
... I ask organizations to consider an "internal open source" model for promoting reusable code across projects. When two teams notice they share some code in...
There should be someone/some group that says they want to reuse the code. You may have to advertise to let developers know the code exists. Get up and walk...
Hello, geoffrey_slinker. On Wednesday, April 29, 2009, at 7:29:31 ... If code is similar but not the same, I like to make it the same then remove the...