30 karma · joined September 20, 2011
Agile Thoughts podcast: https://agilenoir.biz/series/agile-thoughts/ SciFi Thoughts podcast: https://LancerKind.com/series/SciFi-Thoughts 敏捷理念播客:https://agilenoir.biz/series/敏捷理念/
episode 176 Software Engineer gets the Keys to the City and State
episode 177 How Discovering Moon Debris made a Software Engineer Famous
And it's free for a few weeks.
Don't you think it's a misuse if ALL of your development is using spikes?
Don't you think that this use of Spikes is a crutch to avoid something you are unmotivated do and haven't invested time to learn?
I'll have to do a show on "spike and stabilize." This strategy of "late" refactoring and micro testing is something we are forced to do when encountering untested legacy code. So this as part of the "tool kit" to be a master and difficult for someone who is proficient.
My perception is that Spike and Stabilize, always takes longer than TDD because:
1) I have to spend time "re-discovering" what the code is supposed to do in order to write the test.
2) If I need to use the debugger or print statements to learn what the code is doing,
these temporary diagnostics aren't automatable and the value achieved
can't be checked into source code.
3) I have to work harder at bad design decisions that occur when not thinking about unit testing.
4) I find APIs aren't as intuitively crafted because TDD forces you to define your interface
to get started (a simple version which evolves as needed) rather than
the steps of: "write code, get it working, go back and refactor and test"
5) The costs increase with Spike and Stabilize with the time delta between
the moment the code is written to the moment tests are added.
6) Plus Spike and Stabilizes allows people to be pressured into doing the
wrong thing: ship it now, worry about test automation later.
If you're disciplined, this won't matter because you can simply say no.
If you're not, test debt increases. TDD removes this possible risk.
Thank you for the suggestion on explicitly adding the TDD "mantra" of red/green/refactor. In episode 22, TDD with a Stack Overflow Master Developer, it explores TDD versus Spike and Stabilize Later in a dramatic presentation: https://agilenoir.biz/podcast/022-tdd-with-a-stack-overflow-...
This story of a developer going through the challenges of getting his team to do TDD starts with episode 14: https://agilenoir.biz/series/agile-thoughts/Thank you for the name, "spike and stabilize." It sounds better than "Test Later Strategy" but I fear it obscures the risky and uncertain future.
And these containers can run on a bare metal Linux box, so unlike VMs Docker removes abstractions and overhead.
Docker simplifies software development and deployment so you don’t need a lot of additional configuration tools for infrastructure as code.
001 Build a solid pyramid 002 Microtests at the base of the pyramid 003 Macrotests at the top of the pyramid 004 The Pyramid's secret floor 005 Subcutaneous Tests 006 Riddles from the Sphinx and Answers within the Pyramid 007 Size Matters 008 The Conductor: Continuous Integration
https://agilenoir.biz/series/agile-thoughts/
009 Introducing the Test Driven Development series 010 Agile and TDD Neglect 011 The Old Way isn't Sustainable 012 An Example of doing TDD 013 Developer Intent and the Bible 014 Why Devs don’t TDD 015 The TDD FUD Spreader 016 Driving under the Influence of FUD 017 The Architect Disses TDD 018 TDD gets no Love from the PO 019 A QA Professional Questions Micro Tests and TDD 020 TDD Undoer
@walligaotr Have you found mockist useful?
To do so otherwise creates more risk. I feel the bottom up approach leaves me exposed to discover bad news later in the game and I have to go back and refactor or toss a bunch of code.
Testing pixel presentation is a problem. Today, Automated macro tests can’t describe in a program how the UI should look before the UI is built. The UI is simply too dynamic and subject to the whims of fashion. But writing tests first for the UI and smoke testing that the UI elements are there and basically function is doable.
Most devs struggle keeping their micro testable code seprate from presentation code. TDD is a great way to incur this requirement. Otherwise it needs to be tested in a slow macro UI test. If you’re not familiar with the three tiers of the Test Automation pyramid, give Agile Thoughts episodes 1 through 4 a listen. It takes you through each stage of the pyramid and describes how macro (cutaneous and subcutaneous) and micro complement each other. https://agilenoir.biz/series/agile-thoughts/
I actually enjoy writing well crafted code that does test and production functionality. Still, I admire your spirit. Just don’t join my team. ;-)
Integration testing is valuable. It just isn’t scalable to the whole code base (because, as you said, it’s slow), that’s why macro tests should be targeted to the parts that can’t be micro tested (10-15%), leaving the bulk of the code to be tested with blazing fast micro tests. Agile Thoughts podcast goes over this during a series on the Testing Pramid, episodes 1 through 8. https://agilenoir.biz/series/agile-thoughts/