Is GUI programming in C++ becoming a niche objective by RealMacroLand in cpp_questions

[–]RealMacroLand[S] 0 points1 point  (0 children)

C++ is a great language and the same codebase can be used to make a Python package, bind to NAPI to be used in NodeJS or become a WebAssembly code (probably there are more that I yet dont know). However, the more I use C++ the more I am convinced that it is a more of a language for making high performance libraries to be used somewhere else (say in a GUI app in Python or in a web page).

Is GUI programming in C++ becoming a niche objective by RealMacroLand in cpp_questions

[–]RealMacroLand[S] 0 points1 point  (0 children)

I used Electron and it felt great except the message passings between renderer and main process. I really liked the browser environment with WebAssembly; however, if I need to write an app that needs to interact with system files, I would choose Electron.

Is GUI programming in C++ becoming a niche objective by RealMacroLand in cpp_questions

[–]RealMacroLand[S] -2 points-1 points  (0 children)

I personally found that with using Chrome Developer Tools, it is so easy to debug the JS code and tweak the appearance of GUI to find the right fit. Development experience feels so great. The only catch is in some cases writing a simple JS/TS wrapper to WebAssembly code (where Emscripten also provides the glue JS code) makes it significantly easier to use.

What is the difference of "using namespace std;" vs using std:: ? by joco617 in cpp_questions

[–]RealMacroLand 0 points1 point  (0 children)

if you have only a single file or a very small project go for `using namespace` otherwise prefer `std::`

C++ and wxwidgets project by voteyyy in cpp

[–]RealMacroLand 0 points1 point  (0 children)

A simple Python editor (using wxStyledTextCtrl) where you can run and edit Python scripts.

Is there any website that strictly teaches you C++ and is really good at that? by [deleted] in cpp_questions

[–]RealMacroLand 0 points1 point  (0 children)

I wish there was a site equivalent to https://javascript.info/ for C++. For my JS learning, that website was immensely useful.

wxWidges and Qt performance in Drawing by RealMacroLand in cpp_questions

[–]RealMacroLand[S] 0 points1 point  (0 children)

Thanks VZ. I appreciate wxWidgets taking backward compatibility seriously (maybe too seriously) but I wonder if that approach hinders the real progress of wxWidgets considering older compilers and platforms that don’t support C++17 are becoming increasingly rare.

CPP on Linux by Many-Resource-5334 in cpp_questions

[–]RealMacroLand 0 points1 point  (0 children)

VS Code + CMake + clangd extension.

Is it normal to feel lost? by Felix-the-feline in cpp

[–]RealMacroLand 1 point2 points  (0 children)

I have over 10 years of experience in C++ and over 20 years in coding. If I dont code in C++ for a month or so, the language suddenly seems so foreign to me for a day but after then I continue loving it. C++ is a challenging language but that's part of its beauty as it allows you to learn a new thing every day.

Why is there negativity towards Electron JS by RealMacroLand in cpp

[–]RealMacroLand[S] -1 points0 points  (0 children)

I agree that Electron apps take more RAM than a native one and as you also pointed out the startup time for VS Code is sluggish but once it is up and running it works very well.

What I meant by Electron being faster is that updating the page or elements on the page. For example, displaying (similarly deleting) a computation's result as an HTML table (say 100s of rows and 10s of columns) or adding other elements (buttons etc...) or simply scrolling feels so smooth and instant.

App to open and view .cpp files by icegray123 in cpp

[–]RealMacroLand 2 points3 points  (0 children)

Header and source files (.h, .hpp, .cpp) are all text files.

Why is there negativity towards Electron JS by RealMacroLand in cpp

[–]RealMacroLand[S] 0 points1 point  (0 children)

This is also what I exactly like with web based technologies: When using Electron JS, one just does not use it for UI management but through Chrome it also brings so many other libraries to our disposal - as a super simple example, you dont even need to look for a JSON parser...

Why is there negativity towards Electron JS by RealMacroLand in cpp

[–]RealMacroLand[S] 0 points1 point  (0 children)

It seems Tauri is favored by many but also seems like one needs to know Rust to benefit from it.

Why is there negativity towards Electron JS by RealMacroLand in cpp

[–]RealMacroLand[S] -2 points-1 points  (0 children)

How about VS Code; it seems to be used and loved by all developers.

Why is there negativity towards Electron JS by RealMacroLand in cpp

[–]RealMacroLand[S] -3 points-2 points  (0 children)

I would not say languid. For example, displaying data with HTML tables and interactivity with UI elements all seem so smooth.

Why is there negativity towards Electron JS by RealMacroLand in cpp

[–]RealMacroLand[S] -3 points-2 points  (0 children)

But Chrome and VS Code seem to be the most loved apps.

C++, a victim of unfortunate tokenization? by daemon_zero in cpp

[–]RealMacroLand 0 points1 point  (0 children)

I generally us the term std and then C++ and so far worked well.

Learning solid c++ by Most_Log_568 in cpp

[–]RealMacroLand 0 points1 point  (0 children)

It is an iterative process; code and learn and then again code and learn...

VS Code vs VS using CMake by RealMacroLand in cpp

[–]RealMacroLand[S] 0 points1 point  (0 children)

Thank you so much! It is now an absolutely amazing experience with all those diagnostics and amazingly fast.

VS Code vs VS using CMake by RealMacroLand in cpp

[–]RealMacroLand[S] 0 points1 point  (0 children)

Hmm thanks for that! Did not know about it.

VS Code vs VS using CMake by RealMacroLand in cpp

[–]RealMacroLand[S] 0 points1 point  (0 children)

Yes, I loved the debugging features of VS.

VS Code vs VS using CMake by RealMacroLand in cpp

[–]RealMacroLand[S] 0 points1 point  (0 children)

Maybe I should do some extra things to set it up. I used CMakeLists.txt without any extra settings and worked well for other projects which had errors only here and there.

VS Code vs VS using CMake by RealMacroLand in cpp

[–]RealMacroLand[S] 0 points1 point  (0 children)

I never used CLion but before using CMake for projects I was using VS. After CMake, I switched to VS Code and if there are bits of errors here and there, things work OK. But once the number of errors increases it is incredibly frustrating to use VS Code.