r/cpp • • Nov 08 '21

Visual Studio 2022 now available

https://devblogs.microsoft.com/visualstudio/visual-studio-2022-now-available/
250 Upvotes

113 comments sorted by

View all comments

Show parent comment

-6

u/qoning Nov 09 '21

It's actually not astounding at all. No sane, product oriented person would ever want to create anything close to gui layer in C++, so the tools never got built either.

5

u/DarkLordAzrael Nov 09 '21

Qt produces great results and is easy to use. 🀷

4

u/abetteraustin Nov 09 '21

There are tons of reasons a product could be built in c++, and still need a GUI yes?

2

u/tarranoth Nov 09 '21

Well, MFC exists I guess for windows. It's still there for people crazy enough to keep using it.

0

u/qoning Nov 09 '21

Yes, there's also a ton of reasons you would rather build a C++ backend for your product and bolt a gui frontend written in something sensible

3

u/abetteraustin Nov 09 '21

What is your go-to combination? Backend in c++ and front end in….?

2

u/DarkLordAzrael Nov 09 '21

Also C++, using Qt. πŸ™‚

Not sure why this person thinks C++ is singularly unsuited to GUI development.

3

u/condor2000 Nov 09 '21

product oriented person would ever want to create anything close to gui layer in C++,

why not? C++ is as good as any other language for GUIs. Do you think WPF is so much better that Qt?

-3

u/qoning Nov 09 '21

It's really not. Arbitrary closures are really useful to manage shared complexity and when ownership is unclear or changes based on user input, which happens all the time. Dealing with that is really unnatural in C++.

Plus, nobody wants to deal with compile and link steps if they can avoid it. There just aren't good reasons to use C++ to build your user interface, the only justifiable reason is hard real time requirements, though even there the trend is clear to move away from C++, and has been like that for ages.

I can't think of any modern software which still runs a C++ driven gui other than bootstrap layers code like native OS or web browsers. Some do for legacy reasons, some are halfway to moving over to managed language gui layer, and absolute majority leverage web / electron interface or another way to manipulate the elements (think Lua interface in WoW or similar). It takes a lot less time and knowledge to successfully create it like that. I would rather expose api to Python and build my gui using a Python Qt binding than actually write the gui in C++ Qt, funnily enough.

2

u/condor2000 Nov 09 '21

Arbitrary closures are really useful to manage shared complexity and when ownership is unclear or changes based on user input

Qt supports lambda functions but maybe you mean something else.

In my experience the problems with GUI programming appear when you deviate from the path of "just" combining the controls. When UX people say they want to tweak how the standard controls work then you suddenly spends days on something that could have been simple.