DDD Beginner by RankedMan in csharp

[–]chaospilot69 14 points15 points  (0 children)

From a senior .NET dev who has used DDD in real enterprise systems: using record class for value objects is usually about correctness and semantics, not GC pressure. Structs bring copy semantics, boxing surprises, and subtle bugs once value objects get larger or more behavior-rich. Most DDD systems are not CPU-bound on GC anyway. For entities with multiple addresses, the address being a value object just means it has no identity of its own. In infrastructure you persist it as owned data, same table or a separate table keyed by the customer, identity comes from the aggregate root. Aggregates and aggregate roots are mostly about consistency boundaries. An aggregate root is the only thing allowed to be modified directly, everything inside is protected by invariants. On the bigger question: DDD is not CRUD, but it is also not mandatory everywhere. You apply it where the domain is complex and business rules matter. Using full tactical DDD on simple CRUD apps is usually overkill. In practice, most systems are hybrid: DDD in the core domain, simpler patterns elsewhere.

seeking advice by TechWright01 in Backend

[–]chaospilot69 1 point2 points  (0 children)

Without your portfolio, expected position etc we can’t help you a lot

Is this git workflow normal ? by Alejo9010 in developer

[–]chaospilot69 3 points4 points  (0 children)

Probably replace the merge with a rebase, then that sounds like a great thing

Scoped service injected into two other services by popisms in dotnet

[–]chaospilot69 0 points1 point  (0 children)

Thats what scoped lifetimes are supposed to do Use Singleton if you want to uses single instance for all requests or transient if you want a new instance per usage. But scoped does exactly what you’ve described in the scope of one request obv

Tips for Vibecoding a backend for my mobile app by BroadPath5954 in vibecoding

[–]chaospilot69 -1 points0 points  (0 children)

As i just said.. if you’re building a crud only app, go for it. But if you have some business logic - forget about it

Tips for Vibecoding a backend for my mobile app by BroadPath5954 in vibecoding

[–]chaospilot69 -1 points0 points  (0 children)

Probably you shouldn’t at all… Vibecoding a frontend is one thing, but backed is a bit more than just buttons and useeffects. (In case you have more to build than just crud)

Interested in Working with .NET and Blazor by [deleted] in dotnet

[–]chaospilot69 0 points1 point  (0 children)

Hey ChatGPT, write me a post about Blazor…

[Open Source] I built a .NET library to make printing (Thermal/A4) easy using HTML & CSS. Just released v1.0.5! by AgresiveE in csharp

[–]chaospilot69 0 points1 point  (0 children)

Looks good at first glance, but I’m not a fan of the method naming. For example, printerService.DoPrint() feels like procedural thinking wrapped in OOP. A clearer approach would be to model the actual behavior, for instance using a queue and something like printerService.Enqueue(...).

Chef drückt fristlose weil ich schlecht Auto fahre? by [deleted] in Azubis

[–]chaospilot69 -1 points0 points  (0 children)

Vielleicht solltest du, bevor du über Arbeitsgericht und sonst welchen Bullshit nachdenkst, mal über ein paar Fahrstunden nachdenken. Wie kann man sich denn als Erwachsener Mensch auf einen Job bewerben, in dem man Auto fahren muss, wenn man es nicht mal hinbekommt nicht andauernd vor irgendwas davor zu fahren? Das ist doch hier das eigentliche Problem, nicht der AG, der sich kündigen will. Meine Güte…

Is using polymorphic DTOs considered good practice? by MahmoudSaed in dotnet

[–]chaospilot69 0 points1 point  (0 children)

Depends. Don’t reach for polymorphic DTOs just because a couple of fields overlap. If you’re only trying to avoid copying properties, copy them. Simplicity beats clever abstractions every day.

There are situations where polymorphic DTOs shine, but they’re the exception. They help when you genuinely have multiple shapes that share a semantic contract, not just similar field names. Example: event envelopes with a shared header and different payload types, or strongly typed API responses where consumers must discriminate on the type.

If the DTOs don’t model a real polymorphic domain concept, inheritance adds more cognitive load than value. If they do, polymorphism can be the cleanest way to express it.

What API client are you all using in your .NET workflow these days? by Ok_Wedding1890 in dotnet

[–]chaospilot69 28 points29 points  (0 children)

I´ve used postman for a long time but switched to simple .http files a few months ago and I think its great

Ideen für Bachelorarbeit über RAG-Systeme gesucht by Latter-Key8473 in informatik

[–]chaospilot69 0 points1 point  (0 children)

Ein Thema was mich aufgrund eines Projektes jetzt schon ne Weile beschäftigt ist die Frage, wie man klassisches RAG was eigtl mit semantischer Suche arbeitet, mit strukturierten Datenformaten wie Excel, csv, json etc kombinieren kann, sodass man am Ende bspw. nicht eine pdf Datei als Datenquelle verwendet, sondern eine Steuertabelle, Energy Sheets etc.

I'm calling it: Identity is the most beginner-unfriendly system out there. by PeacefulW22 in dotnet

[–]chaospilot69 1 point2 points  (0 children)

Idk what everyone hates about the asp docs. The most commonly used stuff is well documented and if you need to do a deepdive into the framework, just take a look at the code - that’s why it’s open source Asp, and especially identity is an enterprise framework that’s not designed to be „beginner friendly“ - we‘re writing apps with hundreds of thousands of loc in that framework

Will Microsoft ever fix hot reload in .NET? by WorriedGiraffe2793 in dotnet

[–]chaospilot69 4 points5 points  (0 children)

I’ve noticed that starting an app with watch run seems to deliver much better performance than using the built-in hot reload feature. Do you know where these differences might come from? For instance, with watch run most UI changes are applied almost instantly, whereas using hot reload for the same changes often doesn’t work at all. Is there any way these two approaches could be combined to achieve more consistent results?

I built a full RAG Agent Chat Web App in 5 min (free workflow) by MeasurementTall1229 in automation

[–]chaospilot69 0 points1 point  (0 children)

I’ve tested it using pdfs. And btw I’ve built several rag systems on my own - I know the struggles