The best way to learn a new programming language is by writing code. The
Exercism platform addresses precisely that concern.
It comes with many exercises with the sole purpose of assisting with practicing the syntax and idioms of a new language.
In the past, I’ve used it for learning Rust, and it has been constructive.
One of the main reasons it has been helpful is accessing other peoples’ solutions after submitting your ones. The site offers exercises in not less than 55 languages!
It’s also very active, and new exercises and programming languages are added frequently.
Not only that, but you can ask for a review of your solutions. Each programming language has mentors that will look at your code and give you feedback.
Recently, the site’s design has gone an overhaul, and the new UX looks impressive.
If you’re learning a new programming language and looking for small and focused exercises, then Exercism is probably one of the best existing solutions today.