@Edent not directly the same but in the ancient Finnish #Kalevala poems there is the story of #Sampo, a magical machine that creates money and wealth. Wars are then fought over it. Kind of like society nowadays, really…
Also a more direct, similar one to yours is the sci-fi story #Autofac by #PhilipKDick, which I really enjoyed.
#kalevala #sampo #autofac #philipkdick
Avoid creating dependencies inside constructors!
#dotnet #autofac #programming #coding #csharp #shorts
I both hate and love when I find a more efficient pattern for building things. I'm doing another site like fedran.com that has project pages (e.g., https://fedran.com/sand-and-blood/) which also has chapter pages.
The current pattern is that the project page, chapters, credits, etc use a page builder class that is injected via Autofac (ProjectPageBuilderService.Factory
) which lets me keep things a lot cleaner and lets me move it from between projects.
I also figured out an easier way to create the verbiage on those pages, mainly creating a /description.md
and then loading it and pulling the data off the YAML header instead of writing a Rust CLI to generate a JSON file which is then pulled out.
Still using the Rust CLI for Fedran though, because it does a lot including rolling up trigger warnings, page counts, and the cross-referencing needed for the metadata on that site.
#autofac #mfgamesnitride #rust
#maui #dotnet Someone is able to use #autofac in a #mauiblazor project to manage the bulk implementation of dependencies? This issue has not been created by me but it is a good example of my problem: https://stackoverflow.com/questions/73604106/how-to-use-autofac-with-net-maui
#mauiblazor #autofac #dotnet #maui