by Al0neStar · 3y ago · 0 comments
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-interfa...
Now You Have Three Problems
https://github.com/dabeaz/blog/blob/main/2023/three-problems...
A Different Refactoring
https://github.com/dabeaz/blog/blob/main/2023/different-refa...
His youtube channel:
-> Currently serving as Application Architect for a medium sized Python application.
[0] https://github.com/dabeaz/blog/blob/main/2023/three-problems...
In a serious code review, that isn't even a starter of an issue, if you have context surrounding that variable. Furthermore `input` is an actual Python function, and shortening an example for learning purposes is not the same as asking other people do the same in production code.
> 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.