3 ms·
I used Project Euler as a framework of problems when I was learning Go. The experience disenchanted me from the value of Project Euler for that purpose. Projec
by AceJohnny2 8y ago
I used Project Euler as a framework of problems when I was learning Go. The experience disenchanted me from the value of Project Euler for that purpose.
Project Euler is more about mathematical problems that you need to apply some generic algorithmic concepts but more importantly mathematical thinking to. It didn't drive me to exercise anything particular feature of the language I was using. I used it with Go, but I just as well could've used C, or Python. Which is part of Euler's point, really: not to be linked to a particular language.
I didn't complete 50 exercises however. I think I reached in the low 20s, stopping at a problem that involved Pascal's Triangle [1]. By that point, all problems had exercised mathematical ability, and none of my programming ability, which is why I stopped.
Maybe further exercises provide more of a programming challenge?
[1] https://en.wikipedia.org/wiki/Pascal's_triangle https://en.wikipedia.org/wiki/Pascal's_triangle
- crispyambulance 8y agoThe nice thing about math problems is that they're reasonably self-contained. If they didn't focus on toy math problems they would have to do other stuff like endless, increasingly complex form validation, filesystem manipulation, or things like graphics that involve external libraries-- it would just become hard to manage for code-golf scenarios, I think. What would be a non math-heavy alternative to project euler be like?
- infecto 8y agoLeetcode problems? Hacker rank?
- ambulancechaser 8y agoAdvent of Code fits this bill nicely. I think 2017's was particularly nice. I didn't go far this year.
- msla 8y ago> If they didn't focus on toy math problems they would have to do other stuff like endless, increasingly complex form validation, filesystem manipulation, or things like graphics that involve external libraries-- it would just become hard to manage for code-golf scenarios, I think. It would also make it hard to use the exercises in some languages. For example, awk or retrocomputing languages like JOSS or BLISS. There's definitely a need to have good little or mid-sized projects which do call for library-wrangling, though. They help get programmers acquainted with the culture surrounding the language, and what kinds of problems other people using the language are solving.
- IronBacon 8y agoSimilar to Project Euler but about bioinformatics I would say http://rosalind.info/problems/locations/ http://rosalind.info/problems/locations/ But for learning a specific programming language and confront with other developers, not mentioned yet, there is http://exercism.io/ http://exercism.io/ Edit: also http://www.puzzlenode.com/ http://www.puzzlenode.com/
- synthc 8y agoAdvent of Code is a similar project, that has much more relevant exercises that do not rely on knowing arcane details about number theory
- AceJohnny2 8y agoThanks for the recommendation. I should try that.
- mlazos 8y agoA lot of the time I try to see how far I can push the brute force solution which turns into a nice little programming exercise in optimization.