Skip to content

Registration#5

Closed
MarekR8 wants to merge 3 commits intodevelopfrom
registration
Closed

Registration#5
MarekR8 wants to merge 3 commits intodevelopfrom
registration

Conversation

@MarekR8
Copy link
Collaborator

@MarekR8 MarekR8 commented Mar 21, 2026

No description provided.

@MarekR8 MarekR8 requested review from siciarmat and winderdoot March 21, 2026 15:32
Copy link
Owner

@winderdoot winderdoot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this pr messes up the branch history in some weird way. I will do my best to fix it

{
get => _role;
init => _role = value;
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nonono, I am using required fields here intentionally. Read up on the stuff I wrote in docs/guidelines.md. It's not fully finished yet, but tldr: we use required whenever possible, and then to allow initializing the field in an object initializer (new Class { field = value... };) we write { get; init; }. If we need internal modification on the field then we have to use a private backing field. Hence this boilerplate. I know it's more code but in my opition it's more robust and I intend to use this across the codebase.

Comment on lines +23 to +24
var errors = new List<FieldError>();

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good, we can keep this.
I will make a new commit, fixing the required fields

@winderdoot winderdoot closed this Mar 21, 2026
@MarekR8 MarekR8 deleted the registration branch March 22, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants