Settings

Theme

What if best practices were the norm?

giacomocavalieri.me

10 points by giacomocava 2 years ago · 2 comments

Reader

beef234 2 years ago

What about just using the Optional type in Java?

  • giacomocavaOP 2 years ago

    That's a great point! Yeah using `Option`, or the newly introduced records is a great help in sticking to the best practices, you're totally right! The problem lies in the fact that it's not the only way to write Java code, you might stick to it but you're not guaranteed that other libraries and projects will use the same practices; that's why I think it's crucial to make those the _only possible way_ to write code. Thanks for reading the article!! :)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection