Archive for 28. November 2006

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...)
The unit in unit test
Hallo everyone, After reading some code, I started to do some unit test now, so that I can become familiar with the code. Because I have worked in C for a long (more...)
Private classes and feature envy
Hi Atul, I read again about Feature Envy. A short overview is available at http://sis36.berkeley.edu/projects/streek/agile/bad-smells-in-code.html#FeatureEnvy. Unfortunately I don’t have the Refactoring book from Martin Fowler, et al, which (more...)
Re: SourceComment: BItem hierarchy - Removing needless code…
Hi Atul, you are perfectly right about this refactoring! If we go a step further we can get rid of type() altogether and use the RTTI instead. For example: if (more...)
Re: Re: Patch — moved readInt() to BDecoder
Here is a modified patch of Atul's BDecoder refactoring. I modifed BinaryReader::readString() and use it instead of the new BinaryReader::indexOf(). Additionally, BDecoder::readString() was refactored to use tryReadInt(). All tests (more...)
SourceComment: BItem hierarchy - Removing needless code…
Dear all While reading BDecoder code, I came upon this class. I think we are storing redundant type info here.... Here is a patch that removes a lot of code Let me know.. Btw, (more...)
Re: Re: Re: Re: Re: Re: Re: Re: Item 42: Don’t give away your internals… ;-)
Hi Atul, I think I see now what is causing the confusion! The handle example actually returns a copy of the handle. Nevertheless the handle is actually a pointer to an (more...)
Re: Re: Re: Re: Re: Re: Re: Item 42: Don’t give away your internals… ;-)
Dear Peter I will read Item 42 again and compare notes with what you suggest...  Btw, I was referring to the first example ( socket::handle_ ) and our code and not (more...)
TDD: Work it out and get addicted ;-)
Dear all http://www.objectmentor.com/resources/articles/xpepisode.htm       When I first read this I was immediately hooked... This is rocking great stuff... I booked a conf room and presented this gem of a work to (more...)

Next Page »