On 20 Jun., 23:27, Bruno Postle <[email protected]> wrote: > http://www.joelonsoftware.com/articles/fog0000000069.html
Okay, point taken. Just one comment. In big letters, it says: 'It’s harder to read code than to write it.' This issue is crucial. Hugin isn't some commercial project where a bunch of people are paid to maintain the code. There are some few people who know some of the code well enough to do something with it. If they move on or are temporarily unavailable, anyone trying to even merely fix a bug is stuck if the code isn't structured cleanly and documented properly. Of course I might as well start a campaign asking everyone to please comment and document their code beyond what I see often enough, and to refacture their bit, but how likely am I to succeed in that? If someone comes along and wants to help (like me), how am I to go on about it? 'read the code' is a tall order and it will deter all but the most determined potential contributors. > Functioning systems are something else, you need a really good > reason to throw away a machine that has evolved in-place. Designing > complicated systems is hard, most attempts to do it fail miserably. This is true. But a 'reincarnation' is not a redesign from scratch, since some of the old design can be taken over. Coming top-down with a clear idea of the overall structure (like, you want to start out with something working very similarly to the previous incarnation) but putting it all onto a clean foundation (by going down to a different, newly specified 'bottom') is easier than an entirely new design. Modifying an existing structure has to be done in increments. Every part of the system that is modified is sort of held back by all the other parts which aren't yet modified - you could call this inertia. A common escape route from this problem is to put another layer on top of what's there which allows the new design concept to rule with it's own paradigms, and the old concept is encapsulated by the entities of the new layer. The performance pernalty is made good by Moore's law. This works, but eventually it becomes very hard to maintain. One problem in this situation is that some parts of the project will still use the old paths, so you can't get rid of them until all code has been made to adopt the new ways. And if you're not sure how the underlying code does what it does, you can't replace it, so you hang on to it (it works, after all) and it becomes a black box noone dares touch - somewhere down there (or, out there in an undocumented library). Eventually, the black box fails. Usually the black box code reflects the constraints of the time of it's inception. It's probably something silly along the lines of 'noone will ever need to allocate more than X MB' or '32 bits are perfectly enough for this'. Now disaster strikes and you have to dig deep, and you may not even succeed in mending the old code - often bugs are subtle and only occur in corner cases, and you may plain not find it - it may even be the brilliant bug fix that made it work on Windows 95 which has made it all the way to the present but finally fails. Ah, well, I suppose I better stop waffling. I don't want to throw away the working system. I want to see another one built next to it, just like it, only better. (In fact, I'd like to see a settlement of smaller buildings, all independent but put together nicely in a landscaped garden ;-) While it's being built, the old one is still around. Once the new one's standing, if it's truly better than the old one, people will start moving to it. If it fails, the old one is still there. Kay -- You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group. A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hugin-ptx
