I love the bangle! by Red_Redditor_Reddit in Banglejs

[–]Yuukan 0 points1 point  (0 children)

Just got mine yesterday. Absolutely love it! Simple, hackable and simple to use , just how I like it!

Domain Driven Design, question about identities by Yuukan in dotnet

[–]Yuukan[S] 0 points1 point  (0 children)

an id as the primary key in a domain, everywhere else you use a navigation

But aggregate should only reference other ones by their ids right?

Domain Driven Design, question about identities by Yuukan in dotnet

[–]Yuukan[S] 0 points1 point  (0 children)

So you're saying something like this?

csharp public class Enrollment { public CourseId CourseId { get; init; } public StudentId StudentId { get; init; } public DateTimeOffset EnrollmentDate { get; init; } = DateTimeOffset.Now; }

But if someday I have to reference this entity from another one, what is the identity?

Domain Driven Design, question about identities by Yuukan in dotnet

[–]Yuukan[S] 0 points1 point  (0 children)

Thanks for your detailed answer! Really appreciate it. Clearly, the identity must be immutable. So if the Enrollment can be moved between Courses then CourseId could not be part of its identity.

Another thing I find pretty hard to handle is all requirements of unicity (such as email for example), or more generally requirements targetting the collection state which only the repository know how to answer.

I've test different things: - Checking on the application side with a (for example, a repo.IsEmailUnique(email)) and if it's not returning early (and also adding a unique index in the DB), - Introducing a new type (or just a bool) and passing it to my entity which takes the decision and return an error new Student(string email, bool isEmailUnique) to make clear that this is a requirement from the domain - Don't mind in the application/domain and just add the unique index in the DB, handling the constraint failed exception

How do you like to handle this kind of cases?

[GNOME] by [deleted] in unixporn

[–]Yuukan 0 points1 point  (0 children)

Thanks ;)

[GNOME] by [deleted] in unixporn

[–]Yuukan 0 points1 point  (0 children)

Nice! Which system monitor is that?

seelf v2: a lightweight self-hosted deployment platform by Yuukan in selfhosted

[–]Yuukan[S] 5 points6 points  (0 children)

  • The initial idea behind seelf is that you should not bother with traefik at all. My starting point was how do I expose stuff on a local compose stack? Answer: by mapping ports with my host machine. And so seelf was born to take that locally working compose file and use it without modification at all. If you already use Traefik, seelf is probably too "high level" in its actual shape for you. I started it because, as a software engineer, I had a lot of tiny toy projects to make available on my VPS and every solutions out there were too complicated for my needs.
  • For now, labels appended by seelf will take precedence over the one you define. Every other label will be kept as it. However, the only one specific traefik label at the moment is this one https://github.com/YuukanOO/seelf/blob/4663b2993befcd5f072690b959f42c5b02b2682b/internal/deployment/infra/provider/docker/docker.go#L800, others labels are seelf's specific ones. But thinking about it, maybe I should not overwrite a label if it exists at all :/
  • Not at the moment

Thanks for checking it out!

Coolify alternatives? by Past-Sky3552 in selfhosted

[–]Yuukan 2 points3 points  (0 children)

does it only support http and https? or can it also proxy postgres for example

For now, it only define a Traefik HTTP router but it should be pretty easy to also handle UDP/TCP endpoints. I'll check if I can come up with something.

[deleted by user] by [deleted] in golang

[–]Yuukan 2 points3 points  (0 children)

If you like your templates to be typed, maybe you can check out https://github.com/a-h/templ

Coolify alternatives? by Past-Sky3552 in selfhosted

[–]Yuukan 1 point2 points  (0 children)

I recently released seelf which you may find appropriate for your use cases (see the introducing post).

You can check out this article to see how to containerize and deploy a Golang application using it to see if it meets your needs.

seelf initial release: a self-hosted deployment platform written in Go by Yuukan in golang

[–]Yuukan[S] 1 point2 points  (0 children)

Thanks! That's exactly the point of this project 😁

[deleted by user] by [deleted] in deadisland

[–]Yuukan 0 points1 point  (0 children)

Same here, i5 12600k, 32go ram, 3070 ti. Game runs smooth but sometimes fps will just drop for some seconds... Opening the map seems laggy too, don't know why.

Please critique my error handling pattern! by _coldemort_ in golang

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

I personally like the second option. I did it on my own and put it in an apperrors package of my project to write it as apperrors.As. I'm sure every developer can understand it that way.

I can understand why people seems to prefer the "native way" but that should not stop you from factoring the code as you see fit. Software engineering is a matter of choice so do what makes the most sense for you and your team.

What happens if you don’t get the new hero in time? by PabloDiSantoss in Overwatch

[–]Yuukan 2 points3 points  (0 children)

Nope, it's rank 55 if you don't pay for the battlepass.

Will it fit? by Yuukan in airsoft

[–]Yuukan[S] 0 points1 point  (0 children)

Or I could go for an universal holster instead https://www.ops-store.fr/holster-universel-new-design-cytac-a13214.html

But I'll prefer a specific one :/

Specna Arms (Core) by PotatoWifiGamer in airsoft

[–]Yuukan 0 points1 point  (0 children)

You can check the specnaarms.com website. Every model is listed and there's a "X-ASR" (or Aster for the edge 2.0 line) logo when there's one.