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

help-circle



  • It’s not quite as point-and-click, but I’m using Docker for that because Yunohost kept messing up updates. Most server apps will have some instructions on how to run them in docker, especially a docker-compose.yml file, so you don’t have to rely on the Yunohost team to package said app.

    The way I do it is that I put each suggested compose file in their own file, and import them in my main docker-compose.yml file like this:

    version:  '3'
    include:
        - syncthing.yml
    

    Then just run docker compose pull && docker compose up -d every time you change something or want to update your apps, and you’re good to go.

    Software updates in particular are waaaaaayyy easier on Docker than Yunohost.






  • Modern air combat isn’t about dogfights anymore. A plane like the F-35 is an asset in the air because of its sensor suite way more than because of its ability to deploy ordnance. It’ll let us patrol our massive airspace much more effectively than the 5-6 operational CF-18s we currently have.

    Yes, drones will be important, but for long-range combat they’ll get used in conjunction with manned aircraft in the air. The F-35 is a formidable platform for that. Tomorrow’s air combat will probably consist of squadrons of autonomous drones under the command of a manned aircraft flying with them in formation.




  • 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.