7 ms·
I'm guessing this was submitted after the "Ask HN" about leveling up to a production python programmer and i'm surprised no one mentioned these books: 1. Test-
by Al0neStar 3y ago
I'm guessing this was submitted after the "Ask HN" about leveling up to a production python programmer and i'm surprised no one mentioned these books:
1. Test-Driven Development with Python
2. Architecture Patterns with Python
The 2nd one is the closest you're gonna get to a production-grade tutorial book.
Related to this topic, these resources by @dbeazley:
Barely an Interface
https://github.com/dabeaz/blog/blob/main/2021/barely-interface.md https://github.com/dabeaz/blog/blob/main/2021/barely-interfa...
Now You Have Three Problems
https://github.com/dabeaz/blog/blob/main/2023/three-problems.md https://github.com/dabeaz/blog/blob/main/2023/three-problems...
A Different Refactoring
https://github.com/dabeaz/blog/blob/main/2023/different-refactoring.md https://github.com/dabeaz/blog/blob/main/2023/different-refa...
His youtube channel:
https://youtube.com/@dabeazllc https://youtube.com/@dabeazllc
- synergy20 3y ago'written by the same author' -- thought it's dbeazley, it's somebody else in fact.
- Al0neStar 3y agoFixed it, i meant that both of the books mentioned are written by Harry Percival (and the 2nd was written as a sequel) .
- mafuku 3y agodamn, I feel really dumb trying to follow the logic of all those function compositions in the three problems post
- ddejohn 3y agoYou shouldn't. Author seems pretty tongue-in-cheek about it: > lambda has the benefit of making the code compact and foreboding. Plus, it prevents people from trying to add meaningful names, documentation or type-hints to the thing that is about to unfold. Disclaimer, I did not read the entire post.
- george_____t 3y agoPython isn't the best language for exploring this sort of thing, by the author's own admission.
- DarkNova6 3y agoAm I the only one who is not particularly impressed by any of these links? Maybe I should see it as exemplatory examples, but they would not make it through a Code Review. -> Currently serving as Application Architect for a medium sized Python application.
- cauthon 3y agoFor the purposes of discussion, it'd probably be helpful to describe the issues you would identify during review
- laserlight 3y agoI’ve just found one. Shortening “input” to “inp” [0] is a big no. [0] https://github.com/dabeaz/blog/blob/main/2023/three-problems.md https://github.com/dabeaz/blog/blob/main/2023/three-problems...
- benji-york 3y agoThe symbol "input" is a Python built-in.
- laserlight 3y agoGood catch. I would prefer shadowing an unused built-in over using “inp”. Alternatively, “input_” should do fine.
- ilc 3y agoDon't shadow. Just don't. We've got enough variable names in the universe. :)
- laserlight 3y agoStrong agree. To clarify, I wouldn't shadow. I wouldn't use “inp” either.