Inspired by a recent 196 post

      • [object Object]@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        2 days ago

        I see someone finally embraced the fact that C++ templates are Turing-complete and you don’t really need much of the rest.

      • addie@feddit.uk
        link
        fedilink
        arrow-up
        9
        ·
        2 days 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
          6
          ·
          2 days ago

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

          The book is a good book though.

        • Valmond@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          2
          ·
          1 day ago

          Template metaprogramming (with the variadic function) is like from the late seventies IIRC… Older than C++!

          Well, people might argue about the definition but the idea has been around some fair time …

    • versionc@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      2 days 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.

    • potoooooooo ✅️@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      I remember algebra. x = 2 and all that jazz. Letters and numbers mixed all willy-nilly. Surely the “commutative” part can’t make it much worse.

  • TouchMacaque@lemmy.ca
    link
    fedilink
    English
    arrow-up
    26
    ·
    2 days 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.

  • milk@discuss.tchncs.de
    link
    fedilink
    arrow-up
    10
    ·
    2 days ago

    Everybody giving all these first year engineering books. Real engineers cry when they’re doing their CCNA certification.

    • Maxxus@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      I actually did study for the CCNA and was primed to certify. I decided not to go that route and found myself in a Java class a couple years later. I now don’t use either of those things.

      • ikidd@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        Do your CCIE and come back to me.

        And for what it’s worth, I did my BSc.Eng in Electrical too.

        • HugeNerd@lemmy.ca
          link
          fedilink
          arrow-up
          3
          arrow-down
          4
          ·
          2 days ago

          You’re not much of an engineer if you can’t see how fallacious your argument is.

          Memorizing endless arcane trivia that changes every six months is a parlor trick, not engineering.

          The same way memorizing all the SCPI commands of your oscilloscope doesn’t make you an engineer.

          • milk@discuss.tchncs.de
            link
            fedilink
            arrow-up
            2
            ·
            2 days ago

            That’s actually one of the reasons I didn’t like it. It focuses almost entirely on Cisco router/switch/whatever else setup and gives only minimal background on the actual theory behind networking. That wouldn’t be so bad if this wasn’t the extent of my engineering undergrad experience with networking. We didn’t even technically get the certification because apparently netacad doesn’t count despite being the same content

  • cub Gucci@lemmy.today
    link
    fedilink
    arrow-up
    19
    arrow-down
    7
    ·
    2 days ago

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

    • Valmond@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      19
      arrow-down
      1
      ·
      2 days 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
        11
        ·
        2 days 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
        7
        ·
        2 days 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!");
        }
        
    • Alk@sh.itjust.works
      link
      fedilink
      arrow-up
      13
      ·
      2 days 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
        9
        ·
        2 days 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

        • [object Object]@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          2 days 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 for a level, and not allocate more than that.

        • Alk@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          2 days 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.

  • lechekaflan@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    2 days ago

    Finished compsci but interned as a computer technician and there I thrived. Instead of constantly having to keep up to date on programming: subscribing to journals, attending seminars and conferences, networking with other programmers, and of course (re)studying shit to get certified.

    • Maxxus@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      That sounds like my time as a computer technician and then a network tech. Always chasing the next cert to stand out from the next tech. Once I switched to compsci I’ve never been pitched any certifications.

  • Kurroth@aussie.zone
    link
    fedilink
    arrow-up
    3
    ·
    2 days ago

    Isn’t it weird the a lot of internal and third party documentation and books of older windows system are the opposite of this