The Version of Self
←Older revision | Revision as of 04:10, 25 March 2010 | ||
Line 17: | Line 17: | ||
This would be much more simplified, if you knew the proper version of yourself on ''the other side''. However that would mean to redesign the (private and proprietary) [[protocol]] to contain proper identification as a first sequence of its hand shake. Obviously I did similar mistake like [[PropertyFiles|our OSGi comrades]], and forget to include the version in the [[protocol]] at beginning. | This would be much more simplified, if you knew the proper version of yourself on ''the other side''. However that would mean to redesign the (private and proprietary) [[protocol]] to contain proper identification as a first sequence of its hand shake. Obviously I did similar mistake like [[PropertyFiles|our OSGi comrades]], and forget to include the version in the [[protocol]] at beginning. | ||
- | Retrofitting a [[protocol]] to include its version later (and doing it [[BackwardCompatibility|backward compatibly]]) is indeed not easy. That is why I delayed changes to my [[protocol]] as much as I could. But yesterday I could not wait any longer and had to do it: [http://hg.netbeans.org/main-silver/rev/a44286c8cc96 see the patch]. All the beauty is gone. When new protocol tries to talk to old server, it may even reconnect to it twice. The first attempt to connect can be refused due to mutual misunderstanding. Then the second attempt is made using the older [[protocol]]. | + | Retrofitting a [[protocol]] to include its version later (and doing it [[BackwardCompatibility|backward compatibly]]) is indeed not easy. That is why I delayed changes to my [[protocol]] as much as I could. But yesterday I could not wait any longer and had to do it: [http://hg.netbeans.org/main-silver/rev/a44286c8cc96 see the patch]. All the beauty is gone. When new protocol tries to talk to old server, it may even reconnect to it twice. The first attempt to connect can be refused due to mutual misunderstanding. Then the second attempt is made using the older [[protocol]] (which reminds me my [[Blogs:JaroslavTulach:Daily_Life:The_More_Languages|babylonian adventure with Europian languages]]). |
Ugly, but since now things shall be well set for a [[evolution|future growth]]. Both sides of the communication can now adjust their capabilities to their mutual skills and select a vocabulary they both understand (see [http://hg.netbeans.org/main-silver/rev/0a75cd5c132e an example]). | Ugly, but since now things shall be well set for a [[evolution|future growth]]. Both sides of the communication can now adjust their capabilities to their mutual skills and select a vocabulary they both understand (see [http://hg.netbeans.org/main-silver/rev/0a75cd5c132e an example]). |