5
votes
Accepted
Matching dependency versions across multiple Python projects
60 repos containing Python packages
I have a few years' experience working with about double that.
Different repos had different policies.
Many of them would rev independently.
Keeping a repo small ...
3
votes
Best practices for unit testing when breaking down functions into smaller ones
I'm sure someone will provide you with a more detailed answer, but here are some things to consider:
Unit tests are used to verify that the behavior of a function is correct and to prevent regressions ...
2
votes
Accepted
Best practices for unit testing when breaking down functions into smaller ones
Don't try make such decisions up-front - it is way easier to decide when growing your unit tests alongside with the development of your functions.
You wrote
let us act like each line is a long ...
2
votes
Best design practice when one python method passes most of its arguments to another method
Is there a recommended programming style here to prevent the definition of m1 from getting too verbose?
Sort of. The style is called "working in small iterations, doing regular refactorings, ...
1
vote
Best design practice when one python method passes most of its arguments to another method
Create a data object with those grouped parameters. And then pass the data object between functions.
1
vote
Leetcode: 2327. Number of People Aware of a Secret and Problem with programming skill in general
I'm trying to provide an intuitive answer to your intuitive question here, because you're not asking how to solve the problem but rather why recursion is not the favored way of doing so.
Let's explore ...
1
vote
Leetcode: 2327. Number of People Aware of a Secret and Problem with programming skill in general
There are a number of skills/techniques/experiance that will help with Leetcode style problems, specifically:
Being able to switch between imperative and functional (recursive) forms - sometimes one ...
1
vote
Leetcode: 2327. Number of People Aware of a Secret and Problem with programming skill in general
It sounds like you're not happy with the solutions you're coming up with. Even when they work they aren't fast enough to make you happy. Keep demanding perfection and you're sure to maintain your ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
python × 1975design × 150
object-oriented × 149
design-patterns × 127
python-3.x × 96
django × 82
coding-style × 74
java × 73
unit-testing × 66
algorithms × 63
architecture × 60
javascript × 57
object-oriented-design × 57
programming-languages × 57
c++ × 55
programming-practices × 53
testing × 40
web-applications × 40
web-development × 38
php × 37
exceptions × 37
functions × 35
c × 33
database × 32
api-design × 31