Learning by doing is the most durable kind of learning.
I’ve put together a small repo with ~20 classes, organised into easy, medium, and hard levels to introduce you to JSpecify.
So after reading the JSpecify docs, try to annotate given classes, specify the nulls, and get some real hands-on JSpecify experience.
I believe it’s really important to understand the “type” semantics shift — what @Nullable actually means. The generics really piqued my interest.
If you want a sneak peek at the kind of reasoning you’ll be doing, check out my other short read where I question one of my favourite patterns for dealing with nulls: Rethinking Optional<?>
More concise and safer.
🔗 Repo: https://github.com/JurenIvan/jspecify-exercise
Can you see yourself using JSpecify in your projects?
Would love to hear what you think 👇


Top comments (2)
The GitHub repo link should be github.com/JurenIvan/jspecify-exer... (the link github.com/ivan-juren/jspecify-exercise was not found).
Fixed! Thanks for heads up!
Some comments may only be visible to logged-in visitors. Sign in to view all comments.