Timeline for Doubly linked list class in C++
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 11, 2018 at 7:14 | comment | added | Toby Speight |
@JDługosz, that's something I do as well. It makes it easy to toggle those statements in and out, by adding another / in front (i.e. //**/ dump_vars(); ) when I'm not using it just now, but might need it again while debugging.
|
|
May 10, 2018 at 22:54 | comment | added | JDługosz |
I mark things inserted for my own monitoring of work-in-progress with a comment /**/ before the statement. So I might have a /**/ dump_vars(); that is not meant for the finished class.
|
|
May 9, 2018 at 13:39 | comment | added | Toby Speight | Test-Driven Development (by example) by Kent Beck; ISBN 978-0321146533. It's written from a Java perspective, but it's readily transferable. | |
May 9, 2018 at 12:06 | comment | added | Mike Borkland | Can you recommend any good resources on developing unit tests? | |
May 9, 2018 at 10:26 | comment | added | Toby Speight | Sorry for the rushed review - most of the salient points have been identified by other answers anyway. One thing I would recommend is some solid unit tests, which can exercise the corner cases more thoroughly than the given examples - I do like that you have a performance test, though. | |
May 9, 2018 at 10:16 | comment | added | Mike Borkland |
I agree. I will likely remove the function altogether. It was mostly there to help me with testing. Thanks for the info on std::cerr and the use of std::endl by library functions.
|
|
May 9, 2018 at 8:19 | history | answered | Toby Speight | CC BY-SA 4.0 |