Skip Navigation
Jump
Just started learning python - question about types of statements.
  • Keyword "typically". If I'm overriding dunder methods, then I'll typically need to call the super method as well. It's not like it's forbidden.

    Consider the following:

    class MyStr(str):
         def len(self):
              return len(self)
              # OR
              return self.__len__()
    

    Both of the above return values are perfectly valid Python.

    3
  • Jump
    Recommend me a programming language
  • The second edition was published last Feb (2023) I believe. I read it on my Kindle, having "flicked through" the online version about 6 months prior, and yeah having it page by page with bookmarks etc was almost as good as paper, but far superior to the web version and I was able to read it cover to cover and gain a lot from it. I immediately then read about 4 other books on Rust! Can recommend "Rust Atomics & Locks" by Mara Bos, and "Rust for Rustaceans" by Jon Gjengset for the next level up.

    2
  • Jump
    Let's be honest, how many hours do you really work per day?
  • I can relate to this. It takes quite a lot of effort/mindfulness or cannabis (or all of the above) to come down off the work buzz and actually stop working in my head! Otherwise, as much of my day as I can get away with will be either work or personal projects (which are very similar to my work for the most part)

    1
  • Jump
    SAG-AFTRA's new agreement lets game devs use AI voices
  • This is already affecting me tbh. Like autotune in popular music though, the majority of people will probably just forget (if they ever notice in the first place) that it exists.

    3
  • Jump
    Mathematicians and software
  • Yeah this is generally true in my experience. I have a colleague who is a mathematician, and they write completely uncreative code most of the time, often with logical flaws.

    2
  • Jump
    Why isn't there a way to make near-native desktop UIs that's similar in ease to browser and electron UIs?
  • It doesn't embed Chromium, it uses the native webview that already exists on the system. The average app I make using Tauri is less than 15MB, and being Rust on the backend you can go as low level as you like. The Tauri API provides access in your front end code to all the native APIs you can think of.

    8