Another deer!? 😱
Another deer!? 😱
CEO said that forgiving bills for this kind of a thing is a standard practice, but how come this was the customer support’s first reaction:
We normally discount these kinds of attacks to about 20% of the cost, which would make your new bill $20,900. I’ve currently reduced it to about 5%, which is $5,225.
If the customer support has authority to give 20%/5% discounts, this seems to me like the standard practice, and the CEO is probably just doing damage control because this became public.
Agree.
I’m just saying OP is loading stuff into a dictionary that perhaps function as a Domain Model. Then they pass this Domain Model to a Use Case, where it gets modified and saved to a database.
OP was asking for an architecture name or design pattern, and while it’s not a perfect match, it’s kinda like a Domain Model, although an anemic one.
None of this is a DDD requirement.
If you ignore the caching, the approach you’re describing loosely aligns with the concept of Domain-Driven Design (DDD). In DDD, the model is loaded before any business logic is executed, and then any changes made to the model are persisted back to the database.
How does the caching work? If the method is called again with the same parameters, does it load from the cache or fetch the data from the database into the cache again?
I’ve tried a few different packages before, including the ones you mentioned. However, in the end, I decided to build my own data structures. It was actually pretty fun to create them based on my own preferences, and I learned a lot about functional concepts along the way.
But to be honest, I rarely use them nowadays. The thing is, C# wasn’t really designed to be a functional language from the start. So while I could incorporate some functional concepts, the implementation never quite matched up to what you would find in a true functional language. Plus, the language can be pretty verbose, which kind of gets in the way.
This experience was a couple of years ago though, and I know that C# has improved a lot since then. So it’s definitely possible that my experience today would be different.
Oh, that “sincerely karen” is fun.