Exploring
1
Following a question.
Exploring
Cats Core in Scala 2.13.18
- The question
- How can I combine independent inputs and keep useful validation errors?
- Result so far
- A policy form combines checks with mapN. A custom Semigroup now keeps field names and messages together in structured validation errors.
Invalid(ValidationErrors(List(
FieldError("number", "is missing"),
FieldError("annualPremium",
"must be positive")
)))
- Next to understand
- Explore how these combination rules scale from two fields to a collection of inputs.
Follow the Cats Core series ↗
Building
0
Trying it in code.
Nothing here yet. The next experiment starts with a question.
Learned
1
A result to build on.
Learned
Scala 2.13.18 fundamentals
- The question
- How do I build up Scala from the Java and Spring concepts I already know?
- Result so far
- The fundamentals build-up is done: values, case classes, collections, traits, implicits and typed error handling, explored through runnable examples.
- Next to understand
- Put that foundation to work in Cats Core, starting with combining values and validation results.
Read the Scala learning series ↗
Parked
0
On hold, with a reason.
Nothing parked for now. When I pause an experiment, I will leave the reason here.