paint-brush
How To Design Domain Model in Kotlinby@Pcc
4,972 reads
4,972 reads

How To Design Domain Model in Kotlin

by Luca Piccinelli10mJanuary 15th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

How To Design Domain Model in Kotlin is written in Valiktor by Pcc Luca Piccinelli. It is possible to turn the code into an unequivocal expression of the domain. A typical, persistence oriented, modeling could look like the following: A contact has a name, a surname, and an email. The name can have a middle initial. The email must be verified. You can send password recovery only to verified emails. Maintaining high cohesion also favors the reusability. Using primitive types in the domain model is a code smell.

Coin Mentioned

Mention Thumbnail
featured image - How To Design Domain Model in Kotlin
Luca Piccinelli HackerNoon profile picture
Luca Piccinelli

Luca Piccinelli

@Pcc

I am a programmer. I love programming. Any language, any paradigm

About @Pcc
LEARN MORE ABOUT @PCC'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Luca Piccinelli HackerNoon profile picture
Luca Piccinelli@Pcc
I am a programmer. I love programming. Any language, any paradigm

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite