A great way to practice coding
I’ve found that a great way to build familiarity with a new programming language — any language — is to tackle the math problems found at www.projecteuler.net
The problems range in conceptual rigor from basic arithmetic to advanced PhD level content. However, even the easiest problems are designed as such:
- The problems generally must be solved with some sort of algorithmic assistance
- Said algorithm, if constructed properly, can do its job in under a minute
I’ve found that my first attempts at a problem will result in an algorithm that will solve the problem… in a matter of days or weeks. Further fine tuning, conversations with friends, and — as a last resort — hints from the internet, will then yield a new satisfying solution that reveals the correct result in less than a second.
As projecteuler.net boasts itself, each problem seems to teach you something new that will come in handy later, allowing you to gradually develop a conceptual tool belt that gets more complete and robust over time as you tackle greater and greater challenges.
Prepare to get very familiar with prime numbers.
I will discuss my solutions and experiences with individual problems in future posts.