I rather write garage code than using slop

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [S] 8 points 1 day ago (6 children)

but from what I understand from form posts is it's harder to make qt6 programs with c than c++, because I have to make warper in my qt6 program with c++ for that c code to work? Idk I'm just getting started

  • source
  • parent
  • hideshow 6 child comments
  • [โ€“] 7 points 1 day ago (1 child)

    Honestly C and C++ code are the same. You can use C++ function calls and objects when needed and have everything else pure C. Donโ€™t think of them as two completely different languages, C++ is more of an โ€œobject oriented framework for cโ€ than its own language. That is a gross oversimplification but you get what I mean.

  • source
  • parent
  • hideshow 1 child comment
  • That really hurts to read. Have you programmed with any spec newer than c++11? Best-practices have changed a lot. It isn't "c with classes" anymore. Yes, most of the ancient code will work; but there are better, more efficient, and more ergonomic alternatives now.

  • source
  • parent
  • [โ€“] 1 point 1 day ago* (last edited 1 day ago)

    The problem with QT is that everything becomes a "QT app" when you start writing with QT. You'll end up using more of their types than the standard library, and getting a clean front-end / back-end separation is more difficult.

    Anyways, C++ isn't just a superset of C; they're surprisingly different, and the best modern approaches are extremely so. That advice may have been true before 2014 and a bit until 2017, but it certainly isn't now.

  • source
  • parent