-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > > If you put all the methods for encoding/decoding various types in a > utility class then you can have calls to the utility class throughout the > code. That's just one dependency and you can change the utility class > whenever you want to affect global changes in encoding.
Yes, but the mere fact that the code is relying on the utility class for its type is a problem too. Its not a very clever abstraction. If you change the definition of a field, from say int to string, then you have to change all the getAsInt to getAsString. Thats the worst case. There are a lot of other, subtle annoyances too. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE5ILfbpXyM95IyRhURAst8AKCyocbfQNdbZvhA5Ix7/y24m9NLVACgjMsw wJCbcYJy0Qnx7rTeHVp37QE= =oBl+ -----END PGP SIGNATURE----- _______________________________________________ Freenet-dev mailing list Freenet-dev at lists.sourceforge.net http://lists.sourceforge.net/mailman/listinfo/freenet-dev
