Archive for November 2006

Re: Re: Re: Patch — moved readInt() to BDecoder
I just committed this patch in revno 81. Peter Dimov wrote:Here is a modified patch of Atul's BDecoder refactoring. I modifed BinaryReader::readString() and use it instead of the new BinaryReader::indexOf(). (more...)
Kad Update
Hi all, I've been working on another kind of packets which contains the information of a peer. I've also corrected some errors from my last revision. To-Do: Make tests. Keep on studying the (more...)
Calitko crashing in signal/slot processing
Hello everybody, There is a bug in Calitko that crashes it randomly quite strangely in Qt’s implementation for the signals and slots mechanism. I suspect that this has something to do (more...)
Re: Re: Re: SourceComment: BItem hierarchy - Removing needless code…
Hi Atul, The chain of responsibility sounds interesting! I’ll check your patch. I think we’ll anyway need to know the type because the users of BDecoder like Torrent (file) or TrackerResponse will (more...)
SourceComment: BItem hierarchy - Chain Of Responsibility
Hi all Here is how the pattern would help in clean up BItem... BItem::type() and related stuff is not necessary All tests pass ;-) 1.  I also plan to give a close look (more...)
Re: Re: SourceComment: BItem hierarchy - Removing needless code…
Hi Peter I think depending on types is going against the OO grain. Then how could we design BItem? Here is one idea... 1. Push the parsing to BItem concrete classes ( So (more...)
Re: The unit in unit test
Hello everyone,  I have just joined the developer group. As suggested by Peter, I will also start with Unit Test to get familiar with the code.  I have set up the environment and (more...)
Re: The unit in unit test
Dear Bob, Yes  mate writing tests is indeed a great way to get familiar with code... Also trying to refactor / comment existing code would also help both ways ( the (more...)
Re: The unit in unit test
Dear Bo, Thank you for this post! I found it quite interesting because it revealed to me a totally different point of view about unit testing! I have never asked myself (more...)
Re: Re: Re: Re: Re: Item 42: Don’t give away your internals… ;-)
Hi Atul, I checked your references and now I feel I can provide an adequate reply ;-). To be honest, this was the first time I heard that having setters/getters is (more...)

« Previous PageNext Page »