es
Feedback
C++ - Reddit

C++ - Reddit

Ir al canal en Telegram

Stay up-to-date with everything C++! Content directly fetched from the subreddit just for you. Join our group for discussions : @programminginc Powered by : @r_channels

Mostrar más
228
Suscriptores
Sin datos24 horas
-27 días
-130 días
Archivo de publicaciones
How to choose an ide So I'm trying to learn c++ and I'm new to programming and coding and all that stuff. So after learning that I need a text editor to write the code I downloaded and setup Visual Studio Code. I am a beginner so I'm not sure how relevant the ide I use is for me right now, but in the future I am interested in learning game development. It has come to my attention that vscode may not be the best option for doing that. So my main question is; What is the difference with Visual Studio Code and Visual studio. Or really what is the difference in ide's in general? and what should i start out with. https://redd.it/lyha92 @r_cpp

Is there a real benefit to using cout as opposed to printf that offsets the extra work in formatting? Using printf() I can format an integer with a width of 6, precision of 3, using "%6.3d" whereas to accomplish the same thing using cout requires << std::setw(6) << std::setprecision(3) which does not take into account extra include files. What is the motivation to use the iostream and cout? https://redd.it/lyhevo @r_cpp

CLion vs Qt Creator So I've been using CLion for several years now. I like it and in fact I just renewed the license last week. It has some really bad draw backs. Remote debugging doesn't really work that well. Large projects can really jam up the back end of CLion. I do like that CUDA is integrated now. But do not like the Docker plugin at all!!! If you are reading this and are on the dev team for that plugin here's a big ticket item. Allow the plugin to build the Dockerfile and run it locally without trying to push to Docker Server/Repos. Ok, so that's the short list of complaints about CLion. (And if anyone has tips to help resolve those great!!) But the main purpose of the post is, Which is more overall stable and has better all around support for various technologies? CLion or Qt Creator \-just a dev lost in despair https://redd.it/lydrpt @r_cpp

Do not believe anyone who says that you can’t use Valgrind on Windows https://www.albertgao.xyz/2016/09/28/how-to-use-valgrind-on-windows/ https://redd.it/lxj25n @r_cpp

Designated initializers ftw. I was just about to ask why you could not use designated initializer syntax in constructors and realized that it just works :P #include <cmath> #include <iostream> struct Apa { Apa(double x, double y) : x(x) , y(y) , dist(sqrt(x x + y y)) {} double x; double y; double dist; }; int main() { auto apa = Apa{ .x = 10, .y = 20, }; std::cout << apa.dist << std::endl; } https://godbolt.org/z/5W5Tv6 Edit: I would like this to work to auto apa = std::make_unique<Apa>(.x = 1, .y = 2); https://redd.it/ly8h04 @r_cpp

Do you feel C++ is bloated ? (or bloated compared to another language Java, C#, JS etc) https://redd.it/lxftbs https://redd.it/ly7nxq @r_cpp

What's the best Cross Platform GUI in terms of performance? Hey! I have been poking here and there to pick a GUI which will be the best in case of performance. I have seen so many GUI(s), I am really puzzled. &#x200B; Any help? Thanks https://redd.it/ly4iyo @r_cpp

Learning resource with algorithmic problems and solutions in idiomatic C++ Hi, I notice that books and websites that teach algorithms with C++ often have solutions written in really ugly C++98 code. Can you recommend a resource (book/website) where I could compare my solutions against code written in idiomatic and reasonably modern C++ to learn good C++ style for myself? https://redd.it/lxzy68 @r_cpp

Qt 5.15.3 LTS Released With 200+ Bug Fixes, But Only For Commercial Customers https://www.phoronix.com/scan.php?page=news_item&px=Qt-5.15.3-LTS-Released https://redd.it/lxzc6j @r_cpp

Herb Sutter - Bridge to new thingia - Meeting C++ online https://www.youtube.com/watch?v=nhzyLY171XI https://redd.it/lxngfv @r_cpp

Hmm, I guess I'm doing something wrong.. https://godbolt.org/z/WzjzMM https://redd.it/lxnxgk @r_cpp

Allowing parameters of consteval function to be used as constant expressions Shouldn't this be legal?

consteval auto foo(int size) {  
    std::array<int, size> arr{};  
    return arr;  
}

Immediate functions are always evaluated at compile time, therefore their arguments are always constant expressions. Shouldn't this be allowed and we could finally have "constexpr parameters" in the language? https://redd.it/lxmv2z @r_cpp

Any LEGO & C++ nerd that would like to work on a project together? Https://hvitis.dev/how-to-encapsulate-your-earth-presence-in-lego https://redd.it/lxj3u4 @r_cpp

Did any one read c++ complete reference cover to cover? Hey every one the more i study c++ the more i feel all of it is important to learn i recently got a book named c++ complete reference i just wanted to know has any one read each page of the book and did it help you understand the major topics in c++ https://redd.it/lxiff7 @r_cpp

Creating a co_await awaitable signal that can be awaited multiple times, part 1 | The Old New Thing https://devblogs.microsoft.com/oldnewthing/20210301-00/?p=104914 https://redd.it/lxeb8a @r_cpp

Using enum class to enforce type-safety in access to arrays Hi there, this is my first official post here so I hope there's at least someone who can find this interesting. I am not a software developer, but I work in research and me and my colleagues write a fairly decent amount of C++ code. It just so happens that every now and then we come up with some ideas that we consider cool or neat, and I thought that it would be nice to share them as they come and go. So here's the first one: https://gist.github.com/valerioformato/5f960cd033f5b548c88bcae85bb7e3af We use this one pretty much everywhere in our codebase and so far we've been happy with the amount of bugs this has unveiled/prevented, so there you go :) Of course, all kinds of suggestion and constructive criticism is welcome! https://redd.it/lwsuvx @r_cpp