News for hackers. Stuff that matters.

minimeme

Re:Avoiding the soft delete anti-pattern on Sunday May 12, 2024 @03:34PM (#40336901)
But what about data overwrites? This is basically the same as deleting data, since information will be destroyed. Using soft delete is a somewhat naive solution if there is no mechanism for restoring overwritten data.
Re:The One Billion Row Challenge – .NET Edition on Monday January 08, 2024 @05:09PM (#38918934)
This was maybe a problem on the early days of .NET Core, but from .NET 6 or so they have reimplemented (almost) all the stuff from the old .NET Framework and that in turn enabled relatively easy porting of third party libraries, so most of them are ported as of today (atleast more or less maintained ones).
Re:The One Billion Row Challenge – .NET Edition on Sunday January 07, 2024 @12:53PM (#38903349)
Can confirm, dotnet works great on Linux. We have a lot of dotnet production systems running on Linux and Docker for many years now with zero issues. Also recommend Rider in Linux for development, even our Windows folks prefer it over VS nowadays.
Re:The Big TDD Misunderstanding on Sunday November 19, 2023 @05:59AM (#38331460)
How do you refactor code, if you have a poor test coverage? Also for me actually the most importan benefit is the instant feedback I get, when I write the unit tests before the implemenation. I can move faster with more confidents.
Re:I have complicated feelings about TDD on Thursday August 18, 2022 @02:48PM (#32513419)
That's my experience also! It's all about faster feedback and confidence the tests provide.
Re:Event Sourcing Is Hard (2019) on Tuesday November 30, 2021 @10:49AM (#29393426)
And I must add, use the right tool for the job, there are many cases where ES is not a good fit. Also, if you choose to use ES in your project, you don't have to use ES for everything in that project. Same thing actually applies to asynchronous processing. If something in the system doesn't scale synchronously, that doesn't mean you now should do everything asynchronously.
Re:Event Sourcing Is Hard (2019) on Tuesday November 30, 2021 @10:23AM (#29393078)
No, I'm not a consultant. Maybe lead developer is the most accurate title for me:) By what criteria the biggest system do you mean? They certainly weren't toy projects, these are real systems in active use solving real world problems for thousands of users. The ES part of these systems is mainly implemented in .NET using excellent Marten DB as ES store on top of PostgreSQL. I would say that ES changes drastically how you model things and see business. It forces you to identify and define meaningful events. These are often actually something that also non programmers understand so it also improves creatly communication with your clients(or in DDD terms domain experts:)) as a by-product. Scaling also has not been a real issue, these systems can handle thousands of operations per second without exotic hardware and setups, all this mostly synchronously.
Re:Event Sourcing Is Hard (2019) on Tuesday November 30, 2021 @07:49AM (#29391546)
Event sourcing can be a very powerful pattern if used correctly. You don't need to combine ES with Eventual Consistency. ES can be implemented in a totally synchronous manner and it works very elegantly capturing nicely all the busines events you need. You get a very detailed audit for free and you don't loose importan business data. You can travel back in time, construct different views of data (projections) etc. Most of the complications arise when you bring in Eventual Consistency, but you absolutely don't have to.