ctrl + shift + ? for shortcuts
© 2025 Groups.io
Re: [TDD] What I hate about *Unit frameworks.
Maybe I'm just dense, but: what is it about this that is particular to TDD? Seems to me that monkey patching without tests is *fuck all* more dangerous than writing a test, making it pass in the
By Adam Sroka · #35320 ·
Re: [TDD] What I hate about *Unit frameworks.
Snort. This is a continuing issue for the Python developers as well. John Roth
By John Roth <JohnRoth1@...> · #35319 ·
Re: [TDD] Re: If you could get your colleagues to read just one book on TDD, which would it be?
Dennis, You should pair that with The Mikado Method (mikadomethod.org) - George -- ---------------------------------------------------------------------- * George Dinwiddie *
By George Dinwiddie · #35318 ·
Re: [TDD] What I hate about *Unit frameworks.
One of the "Aha!" Epiphanies of a programmer I was working with, was the realization that a unit test only needs to test a "unit". He had been setting up real-life data, when a little "fake" data
By Keith Ray <keith.ray@...> · #35316 ·
Re: [TDD] Re: If you could get your colleagues to read just one book on TDD, which would it be?
I believe that this is one of the most essential books, no matter if you have to deal with legacy code (everyone has eventually, anyway).
By Dennis Traub <dennis.traub@...> · #35317 ·
Re: [TDD] Re: If you could get your colleagues to read just one book on TDD, which would it be?
The following are some books I recommend to developers new to Agile software development. This book is new, pretty complete, and easy-to-read about adopting agile software development: The Agile
By Keith Ray <keith.ray@...> · #35315 ·
Re: [TDD] What I hate about *Unit frameworks.
Pretty easy to find out. Valgrind gives us the call-stack of the allocation that leaked, and most code is only executed by a few tests. (Google "microtest" to see why (and "Mike Wrote Tests").) Some
By Keith Ray <keith.ray@...> · #35314 ·
Re: [TDD] What I hate about *Unit frameworks.
I guess this could a "per language" thing... In perl, unless you run with -w (which you should), you never even get told about using uninitialized variables, and _every_ variable is initialized
By John Carter · #35313 ·
Re: [TDD] What I hate about *Unit frameworks.
Actually... it happened on every one. As soon as you touch the heap, you have changed the system state. If it's a GC'd language this isn't quite so problematic, but you still get other resource
By John Carter · #35312 ·
Re: [TDD] What I hate about *Unit frameworks.
I've seen more of the opposite problem. When previously isolated tests show up a bug when run together - because there was some state that should have been reset that wasn't. A few years back I spent
By Adrian Howard <adrianh@...> · #35311 ·
Re: [TDD] What I hate about *Unit frameworks.
I think it's called "monkey patch" for a reason ... Ron Jeffries www.XProgramming.com There's no word for accountability in Finnish. Accountability is something that is left when responsibility has
By Ron Jeffries · #35310 ·
Re: [TDD] What I hate about *Unit frameworks.
I've seen this in Python tests where developers monkey-patch things and forget to set them back or otherwise muck with global state. This has been the result of design issues. -- David blog:
By David Stanek · #35309 ·
Re: [TDD] What I hate about *Unit frameworks.
Hi everyone! John, usually I don't find the case "this test corrupts that test", and I wrote thousands of tests. Any example/case? Angel "Java" Lopez @ajlopez gh:ajlopez
By Angel Java Lopez · #35308 ·
Re: [TDD] What I hate about *Unit frameworks.
John C, While I agree with you, I don't see the point of your post. You can produce elegant code on Windows or on Unix. You work with what you've got is all. John D.
By Donaldson, John <john.m.donaldson@...> · #35307 ·
Re: [TDD] Re: If you could get your colleagues to read just one book on TDD, which would it be?
I found goos to be not so much a "how to write tests" book, but more of an illustration of how code can evolve when using TDD.  My main criticism with the book is that it is easy to lose the big
By Bob Graffagnino · #35306 ·
Re: [TDD] What I hate about *Unit frameworks.
Google's test framework for C++ allows for "death tests" where a separate process is spun up, executed to run a test, and stderr (I think) + result code examined. if the test doesn't cause that
By Keith Ray <keith.ray@...> · #35305 ·
What I hate about *Unit frameworks.
Most of them invest way too much effort to make up for the deficiencies of the Windows Operating system. The Component in a Computer tasked with managing concurrency, task separation, and ensuring
By John Carter · #35304 ·
Re: If you could get your colleagues to read just one book on TDD, which would it be?
Two books that I can recommend: Osherov, The Art of Unit testing jbrains, Responsible Design for Android - on going work, somewhat builds on GOOS
By robi.yagel · #35303 ·
Re: [TDD] If you could get your colleagues to read just one book on TDD, which would it be?
Hmmm... I know a number of good books on TDD. I've not read any of them all the way through. I think reading these books and mastering TDD are orthogonal. Mastering requires practicing, not reading.
By George Dinwiddie · #35302 ·
Re: [TDD] If you could get your colleagues to read just one book on TDD, which would it be?
TDD By Example +1, Refactoring +1 GOOS +2 Clean Code +1 Agile Software Development, Principles, Patterns, and Practices -- Abraos, Josu� http://twitter.com/josuesantos
By Josue Barbosa dos Santos · #35301 ·