• 0 Posts
  • 51 Comments
Joined 3 years ago
cake
Cake day: June 14th, 2023

help-circle
  • I don’t really see a problem with it either. I pay more in some other countries too as a tourist. Here it’s framed as making tourists pay more, but it could also be framed as keeping the museum accessible for your population which does not necessarily have the same budget for museums as an international tourist on the trip of their life.

    But: Tourists absolutely do pay taxes. There are accommodation taxes on hotel stays (in France this can be up to ~15 Euro per person per night), they pay consumption taxes like VAT, and there are arrival and departure taxes or airport taxes.




  • That’s funny because I grew up with math teachers constantly telling us that we shouldn’t trust them.

    Normal calculators that don’t have arbitrary precision have all the same problems you get when you use floating point types in a programming language. E.g. 0.1+0.2==0.3 evaluates to false in many languages. Or how adding very small numbers to very large numbers might result in the larger number as is.

    If you’ve only used CAS calculators or similar you might not have seen these too since those often do arbitrary precision arithmetics, but the vast majority of calculators is not like that. They might have more precision than a 32 bit float though.



  • What bothers me the most is the amount of tech debt it adds by using outdated approaches.

    For example, recently I used AI to create some python scripts that use polars and altair to parse some data and draw charts. It kept insisting to bring in pandas so it could convert the polars dataframes to pandas dataframes just for passing them to altair. When I told if that altair can use polars dataframes directly, that helped, but two or three prompts later it would try to solve problems by adding the conversion again.

    This makes sense too, because the training material, on average, is probably older than the change that enabled altair to use polars dataframes directly. And a lot of code out there just only uses pandas in the first place.

    The result is that in all these cases, someone who doesn’t know this would probably be impressed that the scripts worked, and just not notice the extra tech debt from that unnecessary dependency on pandas.

    It sounds like it’s not a big deal, but these things add up and eventually, our AI enhanced code bases will be full of additional dependencies, deprecated APIs, unnecessarily verbose or complicated code, etc.

    I feel like this is one aspect that gets overlooked a bit when we talk about productivity gains. We don’t necessarily immediately realize how much of that extra LoC/time goes into outdated code and old fashioned verbosity. But it will eventually come back to bite us.









  • setsubyou@lemmy.worldtolinuxmemes@lemmy.worldAlias's rule
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    5 months ago

    On Linux, rm can delete empty directories with -d too, not just with -r.

    rmdir is the counterpart to mkdir, which creates empty directories, so of course it can only remove empty directories. After all mkdir can’t create full directories either. There however is rmdir -p as a counterpart to mkdir -p, so if there is something in the directory, you can use that, as long as the something is an empty directory.