Ask HN: What is the coding exercise you use to explore a new language?
61–70 of 73 posts
Re: Ask HN: What is the coding exercise you use to explore a new language?
#62Re: Ask HN: What is the coding exercise you use to explore a new language?
#63Re: Ask HN: What is the coding exercise you use to explore a new language?
#64Alternatively, if I bought a book about the language, I end up following the suggested exercises they usually provide at the end of each chapter.
Re: Ask HN: What is the coding exercise you use to explore a new language?
#65My go to is solving problems from Project Euler. Have learnt a few languages this way. https://projecteuler.net/
Re: Ask HN: What is the coding exercise you use to explore a new language?
#66To me the real worldness of that > clever technical scenarios
Re: Ask HN: What is the coding exercise you use to explore a new language?
#67I typically write a raytracer while attempting to stick to a small set of "best-practices" for the language I'm trying to learn. I also use this exercise from time-to-time to test new language features (for example C++20 ranges/coroutines recently). I also recommend this same exercise to others through the book "The Ray Tracer Challenge" [1] by Jamis Buck, because it describes an entire implementation of a raytracer…
Re: Ask HN: What is the coding exercise you use to explore a new language?
#68Re: Ask HN: What is the coding exercise you use to explore a new language?
#69If one knows C++ then Peter Shirley's https://raytracing.github.io/books/RayTracingInOneWeekend.ht... is a pretty nice raytracer one can type in any language.
Can anyone out there compare this to The Ray Tracer Challenge ( https://pragprog.com/titles/jbtracer/the-ray-tracer-challeng... ) which has also been mentioned in this thread. They seem to be trying to do very similar things, and it would be interesting to hear how the differ and their pros and cons
- Is in C++
- Focuses on spheres
[1]Raytracer Challenge:
- Is Written in pseudocode
- You will be able to render objects composed of polygons not just spheres