Serhii Trofimets (@fima__) header
Serhii Trofimets (@fima__) profile picture

Human

Ukraine, Dnipro
Joined December 2013
Photo by Serhii Trofimets (@fima__)Photo by Serhii Trofimets (@fima__)Photo by Serhii Trofimets (@fima__)Photo by Serhii Trofimets (@fima__)Photo by Serhii Trofimets (@fima__)Photo by Serhii Trofimets (@fima__)Photo by Serhii Trofimets (@fima__)Photo by Serhii Trofimets (@fima__)Photo by Serhii Trofimets (@fima__)Photo by Serhii Trofimets (@fima__)
the price of empty words...
25
very nice "ceasefire" few blocks from me. peaceful drones flew literally over my house and then fell nearby. it was very exiting and inspiring.
21
“ceasefire” in Sumy… 😢 the price of empty words.
A horrific Russian ballistic missile strike on Sumy.Russian missiles hit an ordinary city street, ordinary life – residential buildings, educational institutions, cars on the street… And that’s on the day when people go to church – Palm Sunday, the feast of the Lord's Entry into Jerusalem. According to preliminary information, dozens of civilians were killed and wounded. Only filthy scum can act like this – taking the lives of ordinary people. My condolences to the families and loved ones. A rescue operation is underway. All necessary services are working at the scene. The world must respond firmly. The United States, Europe, everyone in the world who wants this war and these killings to end. Russia wants exactly this kind of terror and is dragging this war out. Without pressure on Russia, peace is impossible. Talks have never stopped ballistic missiles and aerial bombs. What’s needed is an attitude toward Russia that a terrorist deserves. I thank everyone who stands with Ukraine and helps us defend life.
30
Hi @allenholub In one of your vids you talk against estimations in agile. instead you suggest to use projections. can you please explain “how to” more or give a reference to study the approach?
1
100
Hi @unclebobmartin How do you see future of Clean Architecture in the world of prompt-coding?
Imagine a prompt formalism that is a combination of BDD (Given/When/Then statements) and DbC (Design by Contract). The former describes behavior. The latter describes constraints. The two should completely overload each other, and the solution space. The programmer should be able to iteratively add to and refine that formalism while the AI builds and modifies the test suite and the code. The programmer should be able to review both the test suite and the code as it is being refined. Each change to the prompt should create highlighted changes to the tests and the code. Execution of those tests should be automatic; and failures should be noted, but not fixed, by the AI.
1
4
4,212
well, children’s playground is not energy infrastructure, so russians didn’t violate “ceasefire”, do they?.. sincere condolences, my heart is shattered. again.
This is the Russian "ceasefire." While the Russians lie to @POTUS about wanting peace, they are killing children. Ballistics strike. Children killed in Kryvyi Rih. @SteveWitkoff must be happy.
41
and yes, I'm actually using such approach on realworld projects at my job.
1
16
tonight's "ceasefire" closest hit was at high rising condo 400m from my home. i have 12min boring video with 17 explosions out of 20+, but won't post it. the picture from local public tells enough. at least 4 were killed by russians in Dnipro tonight. the price of empty words.
1
1
88
"immediate ceasefire" became even more intensive after second round of negotiations. i can literally hear and see it from my window (video). on the picture (not my) is clearly visible what is actually targeted by the ceasefire (the picture is already everywhere in local publics).
1
1
39
"immediate ceasefire on all energy and infrastructure"
22
Recently watched fascinating discussion regarding Web UI frameworks. From 36:30 @unclebobmartin and @DanShappir are discussing how to choose a framework and how them tend to impose certain mental model on you. As a victim of JS world balagan can’t stop myself from commenting) 🧵
1
3
7
7,832
“How to choose framework without enough information on early stages of development”. Uncle Bob suggests to start writing app core and so defer the decision. Dan from the other side made fair point, that in JS reality we usually start with Figma (so UI).
1
303
Shalom @unclebobmartin. Usually you draw border between usecase interactor and entities. Should one mock them for usecases? Imagine you have one entity fn used across different usecases. How would you test it? Will you test it via usecase's interface? Will you test it separately?
1
660
Shalom @unclebobmartin! In CA book you say that controllers should get input and convert it for a UseCase. But input interface often depends on frameworks. Should framework dependency be inverted? Or should controller rather do some kind of framework input integration?
1
2
890
Shalom @unclebobmartin imagine you have Fish data structure and set of functions for it. how would you name the namespace for the entity functions? ns - fish, ds - fishData fish.make(), fish.grow(fishData) ns - fishEntity, ds - fish fishEntity.make(), fishEntity.grow(fish)
1
1,623
Shalom @unclebobmartin. Imagine some Entity function with heavy logic that is used by many UseCases. Would you spy it in UC tests or use the real one? Why? Spying helps to hide implementation details from UC. But also it may lead to heavy mocking and loosing system integrity.
2
3
1,289
Wow, what a bold claims! “here’s the truth”, “broken practice” etc. Very catchy words, but there’s nothing more to them. Not liking/understanding some software development practice doesn’t make you expert in truth and in the practice’s application to make such claims.
Here's the truth about TDD (Test Driven Development). It's a broken practice. It's always been broken. It's broken by the definition of it. Its biggest merit is the encouragement of testing but that's about where it ends. TDD implies writing tests before writing the code. So, what's broken about this, Artem? You write tests to describe the intention behind the system—how you expect it to behave. TDD heavily implies that you should know how the system behaves before even implementing it. You should know what you're doing. Most of the time you don't. All the developers I know don't know that ahead of time. I don't know that ahead of time. In fact, I can spend days experimenting, writing an MVP, until I even begin to grasp what parts of my system should be and what I expect from them. I don't see TDD as a viable approach in fast-evolving systems, like the web. It may make significantly more sense when writing systematic software where very little changes from project to project. That's the complete opposite of what you write on the web. The negative aspect of TDD is that I've seen teams discouraged if they fail to follow it. And so they give up on the whole idea of testing since TDD is so universally associated with it. Instead of encouraging people to test and showing them that testing software can be fun, the practice locks them in pedantic constraints that no engineer can follow. I don't follow TDD. It doesn't mean I don't write tests. I write a lot of tests. What I do is Prototype-Iterate-Test development. Prototype. I give my ideas some room and let them breathe without caring too much about testing at first. I experiment, move things, break things, put myself in my user's shoes and design the API, behaviors, and expectations. As I said, this can take some time. Iterate. I take that time to make sure my system makes sense and satisfies the requirements toward it (which, by themselves, may evolve and change why I do this). Test. Finally, I write the tests. It's become an inseparable part of my workflow. I cannot imagine not writing tests. There are exceptions, of course. If I'm writing a simple I/O function, it doesn't need a day of work to understand what it does because that's all it will ever do. I may write some unit tests for it from the start. But the majority of my (and I'm sure yours too) work are not simple functions. It's complex logic that takes time to get right. If I follow TDD faithfully, I will be wasting my time writing tests that I will, eventually, throw away. Those are not useful and they'd help me not to gain confidence in what I'm building. Don't be discouraged. Adopt the practices that work for you (even if it's TDD, as long as you are not lying to yourself!). The important thing is that testing matters. It always did. Developers have been testing software since the 80s, I believe. You should too! I will do my best to show you that testing can be accessible and fun.
85
When explosions from ballistic missile hits woke you up and you have to choose between moving to safety or keep sleeping and desire to sleep wins, because “oh, that’s not so close this time”, is this “desensitization to danger” or just PTSD?)
38
Shalom @unclebobmartin. From what I've seen/read you suggest to do input data validation in Use cases. But sometimes Use cases need the same validation. How would you share it? Would it be some low level Validate Use case? Or should I create validator on entity level?
1
1
2
3,317
Shalom @unclebobmartin. Three Usecases are working with the same Entity. First gets it from DAL and presents. Second updates it. Third saves it to a persistent storage. How would you share the Entity between them? Would you have separate "local DAL" for storing it aka "state"?
3
2
2,772
(This represents a very common client-side flow: first we show some form with editable data to user. He changes data. He saves (or discard) changed data)
91
Shalom @unclebobmartin. A UseCase can fail with “offline” error. Controller should reexecute the UC when network is back online. How Controller should know that an error was specifically “offline”? Can it ask Presenter? Or should UC both present and throw “offline” error?
1
1
3,095