My 25 Laws of Test Driven Development - Dennis Doomen - NDC Porto 2023

  Рет қаралды 3,965

NDC Conferences

NDC Conferences

Күн бұрын

Пікірлер: 7
@Tango-tt6dx
@Tango-tt6dx 8 ай бұрын
Based on my current knowledge and believes about enterprise application development, this talk reflects 100 percent how I practically develop software. Its a very pragmatic view on software developing and simultaneously does not contradict any of the concepts and principles of "traditionally taught" software development.
@paulciorogar
@paulciorogar 8 ай бұрын
"if you test bigger you don't need mocks" this guy writes shells around a database with just a few data parameters. He never had to write 1.5k + lines of code just for the setup of a test. Then you wish you could split stuff and do mocks. Because hundreds of lines like new Point(x, y, z) is really fun to change when new requirements come.
@Tango-tt6dx
@Tango-tt6dx 8 ай бұрын
I got a diffrent take from the talk. Don't test too small only for the sake of having small units. Choice your test scope for reasons of requirements and value. And hopefully your project design facilates this kind of scoping.
@Timelog88
@Timelog88 8 ай бұрын
" He never had to write 1.5k + lines of code just for the setup of a test." I also never had to do that 🤔Are you sure you're doing it right? When you are not mocking it really just means you write the fakes yourself, for example by making a configurable shell or wrapper around the dependency. Doing that should NEVER lead to having to write 1.5k lines of code for a setup.
@paulciorogar
@paulciorogar 8 ай бұрын
@@Timelog88 In this particular case there is no dependency is just data, a lot of data, that represents a 2D face, or a piece of the face, of a 3D real object. The code was old not covered by tests and not modular. I could not test parts of it using mocks so I had to create fake data that represents a miniature model to test specific algos. In some cases it would be easy to mock parts that extract specific data out of this model and work with smaller data sets. Or mock checks of real dimensions and the list goes on. Testing algorithms with mocks and fake data at a smaller granularity is easier than creating real size fake data. Not to mention the amount of fakes you have to create if you are trying to test at a too high level. So a unit to test can be described as testing only one functionality but I would add that it is also about the amount of data that you need to fake in order to test it. If the amount of data is a lot you are not at the right level and need to break it intro smaller units with less data constrains for testing. I want to test that a banana is yellow but I can't make just a fake banana I need to create a fake gorilla holding the banana and a fake jungle.
@vrjb100
@vrjb100 8 ай бұрын
A software architect with 20 years of experience , has 0 years of recent programming experience with the latest version of the language. They are totally useless.
@gJonii
@gJonii 8 ай бұрын
You wouldn't hire an architect to write production code, so knowing the latest version of language seems mostly irrelevant to the task of planning the broad strokes structure on what to build.
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 194 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 39 МЛН
TDD Revisited - Ian Cooper - NDC Porto 2023
1:13:26
NDC Conferences
Рет қаралды 17 М.
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 234 М.
How to fall in love with TDD - Gui Ferreira - NDC London 2024
45:51
NDC Conferences
Рет қаралды 8 М.
TDD Is The Best Design Technique
19:26
Continuous Delivery
Рет қаралды 52 М.
The Magic of Property Testing
11:58
Developer Voices
Рет қаралды 7 М.