• 0 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: July 5th, 2023

help-circle



  • shove some text into stdout

    That’s not what this operator does normally, and if you try to “shove” something into anything else (an int into a variable? a function into an object?) you’ll get surprises… Basically it’s “special” and nothing else in the language behaves like it. Learning hello world in C++ teaches you absolutely nothing useful about the language, because it doesn’t generalize.

    C, in contrast, has many instances of complex functions like printf (another commenter mentioned variable arguments), and learning to call a function is something very useful that generalizes well to the rest of the language. You also learn early enough that each different function has its own “user manual” of how to use it, but it’s still just a function call.


  • this std::cout << "hello world" bullshit is in no way intuitive. You’re using the bit-shift operator to output stuff to the console? WTF? Why 2 colons? What is cout? And then these guys go on to complain about JS being weird…

    No, C is where it’s at: printf("hello world"); is just a function call, like all the other things you do in C.








  • At the level I care about, which is “I want this daemon to start when I boot up the computer”, systemd is much better. I can write a ~5 line unit file that will do exactly that, and I’ll be done.

    With init, I needed to copy-paste a 50-line shell script that I don’t really understand except that a lot of it seemed to be concerned with pid files. Honestly, I fail to see how that’s better…


  • ebc@lemmy.catolinuxmemes@lemmy.worldUpdates
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    Last time they charged for an OS update was with Mountain Lion, which was also the last “big cat” OS. That was in 2012, and it was only 20$. The last OS release that was over 100$ (or even 50$) was Leopard, in 2007, at 130$. Back then, the only way to get it was on a CD, which is obviously much more expensive to manufacture and distribute than a download…



  • For baseboard heaters, I have the Sinopé line of ZigBee thermostats, with home-assistant on my home server. Baseboards are kind of particular in that you have one thermostat per room, so at 350+ for a Nest, it’d be cost-prohibitive as I have like 15 thermostats in the house. Also, they’re line voltage, meaning that they directly switch the full power of the heaters, so they need to be well made.

    I’ve had my Sinopé thermostats for 2+ years now, and I’m very happy with them. No clouds involved here.