Refactoring to "Chain of Responsibility" Pattern: The "Necklace Kata"
Refactoring to "Chain of Responsibility" Pattern: The "Necklace Kata"
A classroom of open-minded people, eagerly learning and practicing "Refactoring Legacy Code Guided By Approval Tests" at @amsterdam 2025. Thanks to all participants for joining and sharing your unique perspectives. Also a big thank you for all the great feedback.
#refactoring #legacycode #tdd #approvaltests #softwaredesign
I'm speaking at this year's #Devopsdays Amsterdam, happening next week June 18-20. I'll be hosting my workshop "Refactoring Legacy Code Guided By Approval Tests". So come join this fun event with me, and network with like minded people about #DevOps and more. And to make things even better, use the voucher #FRIENDS_OF_SPEAKERS when buying your ticket for a 20% discount on the regular 2-day ticket.
https://devopsdays.org/events/2025-amsterdam/welcome/
Hope to see you there.
Approval Testing и почему оно важно | Dart
Approval Tests и почему оно важно | Dart 🎯 Approval Tests представляют собой альтернативный подход к традиционным утверждениям при тестировании программного обеспечения. Они особенно полезны при работе со сложными объектами, такими как длинные строки, коллекции или объекты с большим количеством свойств. Захватывая результат вывода и сравнивая его с утвержденной версией, утверждающие тесты упрощают процесс проверки того, что ваш код ведет себя так, как ожидается. В этой статье мы познакомимся с Dart-реализацией Approval Tests и продемонстрируем их использование на примере.
https://habr.com/ru/articles/816469/
#approvals #dart #flutter #approvaltests #approval_test #unit_tests
"This is legacy code that is in production: it is what it is. Unless I'm intentionally trying to change its behavior, its current behavior is correct."
https://qualitycoding.org/wrangle-legacy-code-combination-approvals/ #code #legacycode #approvaltests
#ApprovalTests in #Swift makes it easy to write powerful parameterized tests. Verify a sequence of inputs, but transform the values through the function you want. https://qualitycoding.org/parameterized-tests-approvaltests-swift/
A full classroom of the nicest people, learning and practicing "Refactoring Legacy Code Guided By Approval Tests" at DDD Europe 2023. Thanks to all participants for the vibrant atmosphere. I'm very humbled by your nice feedback.
@qcoding@techhub.social Hi Jon! I know, of course :) I just never saw anyone in my vicinity use these. And since your advice help up really well over the years, I am indeed wondering if I'm missing out on something!
So questions I have to fellow app devs would be:
- when did you figure that they solve a problem you have?
- which kind of tests did you transform into #ApprovalTests? Why these, why not others?
@qcoding been looking at #ApprovalTests today. My tests are examining a function that takes array of entries on a timeline, and makes some changes to the timeline.
In my tests I have a programmatic definition already of what the result should be, have been using XCTAssertEqual, but failures are hard to parse. My ideal would be to have visual comparison benefits of ApprovalTests on failure, without having to move to file-based definitions of the expected output. Is there anything like this?
https://github.com/approvals/ApprovalTests.Swift
Is anyone here using #ApprovalTests in #Swift / #Xcode?
I don't quite get it and would like to learn more.