Pytudes: Python programs for perfecting particular programming skills
github.com
github.com
Peter and I each wrote a Common Lisp book about 25 years ago and a few years after that we had lunch and I was into Lisp and he had transitioned to the practicality of Python. I have a serious bias in favor of Lisp languages that probably has not served me very well. I once had a short talk with Alexis Ohanian about how he and his partner Steve had to convert Reddit from Common Lisp to Python, I think that he described the situation as something like “the Lisp version kept falling down.”
My recent books can be downloaded for free (or optionally pay for them) at https://leanpub.com/u/markwatson
This is really cool. Thank you!While there are plenty of other solutions and discussions in the megathreads for each day: https://www.reddit.com/r/adventofcode/wiki/solution_megathre...
It is mostly dominated by competitive programmers who value speed over readability. When it comes to presenting a solution, Peter Norvig's style, clarity and craftsmanship is unmatched.
For example I found this line of code cute. So much going on — no function definition, just a string literal method being assigned to a name (which any Linux programmer would get but a windows one may not).
cat = ''.joinFor quick debugging:
print( j( some_data_structure ))
For some data structure that you'll eventually be sending out as json.
https://openlibrary.org/books/OL4546158M/Etudes_for_Programm...
https://en.wikipedia.org/wiki/Quine_(computing)
)
to large ones writing simple compilers.
Good (accurate) review at:
http://www.computinghistory.org.uk/det/12325/Etudes-for-Prog...
and interviews with the author:
https://demin.ws/blog/english/2012/08/25/interview-with-char...
https://sudonull.com/post/27422-Breakfast-report-with-Charle...
This year AOC 2021: https://nbviewer.org/github/norvig/pytudes/blob/main/ipynb/A...