• 0 Posts
  • 11 Comments
Joined 3 years ago
cake
Cake day: October 17th, 2023

help-circle






  • If valve were public, and required to make a lot more money than the previous quarter, they would absolutely need (want?) to get the maximum amount of money from wherever they could. It’s what I think it’s happening with netflix & others. It doesn’t matter that (hypotetically) they make a billion dolars of revenue. They need to make more next quarter. So they need to raise prices, forbid account sharing, reduce content quarity, anything to earn as much money as possible for next quarter.

    Volvo could earn a billion dollars, and if they don’t want to earn more, they could happily stay the same. They might even want to make moves thinking on the long term, such as keep customers happy and excited, or invest in new technologies like proton. Compared to netflix execs, who don’t care about the long term, they care about next quarter.

    I don’t know a lot about the stock market, but it looks stupid to me to bet on infinite growth. If the company earns money, and I own shares, shouldn’t I earn money via dividends? It looks to me like the only way to make money is to buy low and sell high? Or is that just greed?



  • araozu@lemm.eetoLinux@lemmy.ml*Permanently Deleted*
    link
    fedilink
    arrow-up
    3
    arrow-down
    5
    ·
    3 years ago

    Just to provide counter examples, in arch I can’t use the native steam package and play games with proton. It just doesn’t work. I think proton expects some ubuntu libraries or something (found something like that while spending 5 hours debugging nfs heat). And even if I manage to fix it, next time I update the system it’ll be broken again.

    I use flatpak, and everything just works.

    However, in arch if something is in the official repo or the AUR i prefer those.

    In ubuntu I installed krita and gmic, but it doesn’t work. For some reason krita doesn’t find the gmic executable. Instead of debugging krita and gmic for hours I just installed the flatpak version, and it just works.

    And yeah, app startup went from 5 to 7-10 seconds in krita, and from 1 to 2-3 seconds in firefox. It’s not snap, it’s 2023, we have SSDs.


  • __invoke is just for making a class Callable. Java has those with functional interfaces. __get is just dynamic property resolution synax sugar. Instead of something like obj.get("property") you do obj->property.

    Instead, I would like to see ADTs, generics, pattern matching, immutability, expressions everywhere and a better stdlib. Then one could call PHP functional.

    It’s like how people say Javascript is functional. Sure, it has lambdas, anonymous functions, closures, const. But those alone don’t make it functional.

    Functional programming is very different (and at times hard). If you have the time you can check out F#, OCaml, Elixir, Erlang, Rust or Haskell (in order of difficulty imo). Those are more “pure” functional, rather than imperative/OOP with a touch of functional.

    See how things work, what features they have and don’t have. How problems are solved in these languages. I think learning about one of them can give you a different perspective on what functional means. I discovered F# one day, got curious and discovered a whole different paradigm, a new perspective on programming. And learning about functional programming really made me a better programmer, even on procedural/OOP.


  • I’d say that PHP allows you to write very bad code (and makes that the default). It’s a language feature.

    For example Java has a lot of NullPointerException because it was designed with null and without mechanisms to detect & prevent these errors. Any method can return null and cause a NPE. It’s just easy to ignore them. Modern languages like Go, Rust or Zig force you to handle null errors, and make it easy to do so. NPEs are a lasguage feature in Java.

    In the same way PHP allows you to write any ugly code you want. There are no checks, no safety. People can write bad code, people can be lazy, people can be stupid. PHP allows it and empowers them.