• 0 Posts
  • 26 Comments
Joined 1 year ago
cake
Cake day: August 14th, 2023

help-circle
  • wanted to add something to the end of a for-loop, but had too little indentation

    To address this, I prefer reducing length & depth of nested code, so the for/while is rarely ever not visible along with everything inside it. Others have success with editors that draw indentation lines.

    opening up new/anonymous scopes

    I occasionally use Python nested functions for this purpose


  • I find it’s possible to operate Python as a statically typed language if you wanted, though it takes some setup with external tooling. It wasn’t hard, but had to set up pyright, editor integration, configuration to type check strictly and along with tests, and CI.

    I even find the type system to be far more powerful than how I remembered Java’s to be (though I’m not familiar with the newest Java versions).




  • In a sense, money represents all the future goods and services it can buy, and those goods and services ultimately resolve down to someone’s time and effort. Money was conceived as a formalization of IOU’s, after all.

    So it’s similar to asking whether there’s a limit to how much time and effort from (i.e. influence over) others one would want.








  • I think people are being lazy, in a selfish, tragedy of the commons sort of way.

    When standing in line, they all watch the customer stand there doing nothing as the cashier checks out items. If only they’d bag their own things, we’d all be able to get on with our lives that much sooner. Instead, they continue standing there doing nothing, as the cashier now bags their items.

    Then the next person in line moves up and also just stands there, also unwilling to do anything to help speed things along.