• 6 Posts
  • 372 Comments
Joined 2 years ago
cake
Cake day: July 7th, 2023

help-circle




  • “Do one thing and one thing well”

    This is why the Python landscape is such a mess in the first place. The “one thing” should have been project management. Instead, we end up with 20 different tools that have a very limited context, often overlapping or being mutually exclusive to each other in functionality, and it’s up to each project to adopt and configure them correctly.

    The mass adoption of uv is a clear sign that we’re tired of this flawed approach. Leave the Unix philosophy to core utilities of an OS.










  • it’s turtles all the way regardless; but it’s much easier to handle side effects if you have more numerous but smaller functions.

    I prefer that because fully reading a module or component is not the most common scenario. The most common use case of reading code is (or should be) not caring about most of the implementation details until you need to; only then you have to go down the rabbit hole.

    Longer functions force the reader to understand most of their context every time they get there, a problem especially when the function has a bunch of local vars.