Just a basic programmer living in California

  • 3 Posts
  • 10 Comments
Joined 2 years ago
cake
Cake day: February 23rd, 2024

help-circle




  • My work is using Coderabbit, and I’ve found its feedback to be pretty helpful - especially since I’m working with a language I don’t have a whole lot of experience with (Python). I check what it tells me, but it has taught me some new things. I still want human reviews as well, but the AI can pick up on detail that is easy to skim over.

    It doesn’t cover bigger picture stuff like maintainability, architecture, test coverage. Recently I reviewed a PR that was likely AI generated; I saw a number of cases where logic duplication invited future bugs. (Stuff like duplicating access predicates across CRUD handlers for the same resource, repeating the same validation logic in multiple places.) Also magic strings instead of enums, tests of dubious value. Coderabbit did not comment on those issues.

    I’m also getting feedback from Sonarqube on the same project, which I think is static analysis. It’s much less helpful. It has less to say, and a lot of that is pointing out security issues in test code.



  • I did the swipe to complete an -ing suffix, and yes, I see the appeal!

    Entering punctuation is a bit slow using long-presses on the apostrophe key. Maybe I can get used to using the symbol layer instead.

    Oh! You can swipe from the 123 key to type a symbol from the symbol layer in one gesture! That’s great! It even works for comma! Kinda accidentally - given the comma position I’m swiping over question mark, backspace, comma which gets a net result of typing just the comma. I wish it would go back immediately to the ABC layer.

    Moving the cursor by holding and dragging from space feels better than the similar feature in gboard!

    I miss the gboard backspace feature where you can hold and drag to selectively delete.



  • You might be interested to learn some history of societies without state-issued currency. The book “Debt: The First 5000 years” by David Graeber has lots to say about pre-modern systems of account. I’m aware there are some criticisms of the book so I don’t want present it as absolute truth - but it is an interesting on read, and it cites lots of anthropological studies.

    One of the points of the book - and I see there are also other anthropologists who take this view - is there is no evidence that there has ever been a barter economy. Economics curriculum typically talks about prehistoric barter as an introduction; but it looks like the barter story may have been made up by Adam Smith. Smith’s “Wealth of Nations” is highly insightful, and even predicts problems with capitalism that we currently face. But he probably didn’t have the anthropological background to write authoritatively about economies of prehistoric societies.

    Graeber does claim that there have been times when barter has been a stop-gap when there is a problem with money supply. So that’s a case where something like your app might come in,

    When barter has appeared, it wasn’t as part of a purely barter economy, and money didn’t emerge from it—rather, it emerged from money. After Rome fell, for instance, Europeans used barter as a substitute for the Roman currency people had gotten used to. “In most of the cases we know about, [barter] takes place between people who are familiar with the use of money, but for one reason or another, don’t have a lot of it around.

    These were temporary situations. The fall of Rome probably seemed like the end of the world to some people at the time. But new societal structures and currencies filled the gaps.


  • Hospitals are required to provide emergency treatment - what we call ED or ER visits - regardless of ability to pay. Patients are expected to pay for that treatment. It’s just that the hospital isn’t supposed to deny treatment based on whether they think patients will or won’t pay the bill. This is getting-stabilized treatment.

    This is an important point in arguing for universal healthcare: if people can’t afford treatment, they’re more likely to go to the ED where they won’t be turned away. ED visits tend to cost more than non-emergency, so that drives costs up.