Inspired by a recent 916 post

    • versionc@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      4 minutes ago

      I noped the fuck out of that course. I’m sure it’s super interesting and rewarding, but I just couldn’t take it mentally at the time.

      • addie@feddit.uk
        link
        fedilink
        arrow-up
        7
        ·
        6 hours ago

        Josuttis’s books are normally pretty good, lots of examples and a clear explanation of why you might want to use something, but oof that looks akin to a kick in the essentials.

        Even if you’ve no other reason to update to C++20, the fact that if constexpr gets rid of half the things you’d previously need to use SFINAE for, and concepts gets rid of the other half, makes it well worthwhile. Amazing how much it stops hurting when you stop doing ridiculous things.

        • Valmond@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          3 hours ago

          C++ 20? I had to learn and do template metaprogramming on gcc 4.8 😭😭😭

          The book is a good book though.

    • AnarchistArtificer@slrpnk.net
      link
      fedilink
      English
      arrow-up
      5
      ·
      5 hours ago

      I am a freak who really enjoys linear algebra. It’s actually quite heartening to discover that even amongst my friend group of weirdos, there are still freaks

      • Bgugi@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        4 hours ago

        One time at work I was trying to work out a least-squares fit using linear algebra.

        I have no background knowledge in linesr algebra, it felt like drawing a pentagram on the floor and chanting in backwards Latin.

      • yetAnotherUser@discuss.tchncs.de
        link
        fedilink
        arrow-up
        5
        ·
        6 hours ago

        That’s not a fair example, I know what linear algebra is but can’t tell what’s going on.

        Change of basis would be my guess, but that’s pretty basic.

        You could’ve provided something far worse, like a manual construction of the Jordan normal form of a large matrix.

        • Console_Modder@sh.itjust.works
          link
          fedilink
          arrow-up
          4
          ·
          5 hours ago

          It’s been more than a handful of years since I had to learn linear algebra so I am very out of practice, and this was the first image that I saw that made me go, “yeah, that looks about right.” I thought I should include some image since I have told people during college that I was in a linear algebra class and several had the same response of, “Really? I learned algebra in high school. Weren’t you in calculas last semester?”

  • TouchMacaque@lemmy.ca
    link
    fedilink
    English
    arrow-up
    21
    ·
    8 hours ago

    My dad’s grade 4 teacher used to clobber him real good with a Bible whenever he did normal kid stuff, the Bible can definitely make you cry.

  • cub Gucci@lemmy.today
    link
    fedilink
    arrow-up
    19
    arrow-down
    6
    ·
    8 hours ago

    Java is neat: you just get what you write. There are things that really makes you cry and Java is not among them

    • Alk@sh.itjust.works
      link
      fedilink
      arrow-up
      8
      ·
      5 hours ago

      It makes me cry when modded minecraft uses 100% of my CPU and eats up 20gb of ram. (This is only a little bit java’s fault)

      • cub Gucci@lemmy.today
        link
        fedilink
        arrow-up
        5
        ·
        5 hours ago
        1. Java should not be used for game engine design. Stop-the-world events and poor shaders support do not help.

        2. JVM eats as much memory as you give it, so try playing with -Xmx param

        • pet the cat, walk the dog@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          52 minutes ago

          Java has been used by programmers of mobile games just fine, for ages. The trick is the same that one would need with any other environment: knowing what objects you’ll need to allocate, and not allocate more than that.

        • Alk@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          4 hours ago

          Oh yeah I know all about that, I’m talking about what it actually uses within the JVM 😅 It’s a messy monster of a game once modded, and there’s really nothing you can do about it other than some slight optimizations here and there.

    • Valmond@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      8 hours ago

      Just make the 200 line boiler code setup to make some

      system.stuff.thingy.log.println(“hello world”);

      Then it’s not compatible with the installed vm.

      • cub Gucci@lemmy.today
        link
        fedilink
        arrow-up
        10
        ·
        7 hours ago

        Then it’s not compatible with the installed vm.

        This almost never happens, unless you do very niche things or have unrealistic expectations from your file system.

        Niche things include using obsolete cyphers for net communication or running java code on the ibm mainframe, not something you do day to day.

      • loutr@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        ·
        7 hours ago

        Java has changed a lot since Java 8. Here’s a 3-line HelloWorld.java compatible with Java 21+:

        void main() {
            System.out.println("Hello, World!");
        }
        
  • Passerby6497@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    8 hours ago

    Project Hail Mary legitimately made me cry there towards the end. I watched the movie afterwards and it wasn’t nearly as impactful (and I have opinions about the movie, even tho it was decently good), but the book just kicked me in the chest.

  • daggermoon@piefed.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    9 hours ago

    It didn’t make me cry but the greatest book I ever read was A Short Stay in Hell by Steven L. Peck.