C++ - Reddit
Открыть в 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
Больше229
Подписчики
Нет данных24 часа
Нет данных7 дней
+230 день
Архив постов
229
229
Was landing well-paid remote C/C++ gigs as a freelancer just a lucky streak?
I’d like to share my current job search observations with you. A couple of years ago, I started freelancing as a C/C++ dev in the EEA, and I was fortunate enough to land two well-paid remote gigs within two and a half years. After my last assignment, I decided to take a short break to travel for a couple of months before returning to job hunting.
Now, though, it feels like the market has shifted. There seem to be fewer job postings, and many of them come across as fake ads. I’m receiving far fewer interview invitations, and the hourly rate I previously charged without issue now seems outrageously high to potential clients. So far, I’ve managed to secure two offers, but both are for rates about 60% of what I used to earn.
I’d love to hear your thoughts—whether you’re freelancing or working full-time. Is it just me, or are others noticing these changes in the market? How has your recent job search experience been?
https://redd.it/1hp1o1d
@r_cpp
229
My favorite data structures - Hana Dusíková - Keynote Meeting C++ 2024
https://www.youtube.com/watch?v=jAIFLEK3jiw
https://redd.it/1hoyrz1
@r_cpp
229
Question About the Shift Operator in Bitcoin
My question is about the BIP-0042 \[1\], specifically this part of the code in C++:
int64_t nSubsidy = 50 * COIN;
// Subsidy is cut in half every 210,000 blocks
// which will occur approximately every 4 years.
nSubsidy >>= (nHeight / 210000);
In this BIP, it states that the behavior of the shift operator is undefined, with two possible outcomes:
int64_t nSubsidy = 50 * COIN;
nSubsidy >>= 64; // Result: nSubsidy = 0
or:
int64_t nSubsidy = 50 * COIN;
// interpret nSubsidy >> 64 as nSubsidy >> (64 % 64) = nSubsidy >> 0
nSubsidy >>= 64; // Result: nSubsidy = 50 * COIN (if modulo applied)
From my research, the general behavior in C++ is to return `0`. However, is there any specific version of C++ or compiler that would apply modulo and return the initial value?
Or is this just a joke? For example, certain parts like "will take place on April 1st, 2214". But it was commited on April 1st, 2014, right?
\[1\] [https://github.com/bitcoin/bips/blob/master/bip-0042.mediawiki](https://github.com/bitcoin/bips/blob/master/bip-0042.mediawiki)
https://redd.it/1hovup9
@r_cpp
229
How to submit a feedback for cppreference?
In the page of value category, in the definition of xvalue, it involve rvalue in the examples, but in the definition of rvalue, it need the definition of xvalue, it is circular definition! Is there a way to submit a feedback for it?
https://redd.it/1hor1rd
@r_cpp
229
C++ and wxwidgets project
I am bachelor student (2nd semester) and in this sem there i have learned c++ and self learned wxwidgets and project date is near. Can anyone recommend me a project that I can do using c++ and wxwidgets for my final sem project. Please
https://redd.it/1hoqeei
@r_cpp
229
C++ first language?
I want to eventually work with physical/particle simulations, but I don't know if C++ is the right place to start?
I'm very new to everything, any help is much appreciated
https://redd.it/1hoplyn
@r_cpp
229
Neovim install
Hey there everybody, just getting started on C++ and I thought lets try a new environment, so I landed on Neovim. Anybody willing to help me with the installation process? Ler me know! let me know commuinity.
https://redd.it/1hojzxe
@r_cpp
229
Seergdb v2.5 released for Linux.
A new version of Seergdb (frontend to gdb) has been released for linux.
https://github.com/epasveer/seer••
https://github.com/epasveer/seer/releases/tag/v2.5
Give it a try.
Thanks.
https://redd.it/1hoir5f
@r_cpp
229
C++ Build Systems
Personally, for C++ projects, I use Premake because it allows me to very easily get vs studio projects generated without much hassle.
But, what build systems do you use and why?
Is there any reason that one might pick using Bazel over something like CMake or Premake?
How scalable are each, and what are your experiences?
https://redd.it/1hob31q
@r_cpp
229
Anybody else use conan in production? If so how?
I work for a company where we use conan in production for 4 or so different cpu variants across linux, windows desktop variants and embedded spaces.
Currently using it for deployment of SDK's, 3rd party libraries and increasingly internal code.
I get the feeling we're in the minority though. I was just wondering if any of you use it in production at work and if you could do it all over again, what would you have done differently?
https://redd.it/1hob2jc
@r_cpp
229
Which c++ tutorial should I watch.
I just completed the C programming and now I just wanted to learn C++ so I was confused in these two videos and if anyone has watched both of them can you suggest me which one to watch.
1. https://youtu.be/-TkoO8Z07hI?si=-2CvFIsZ8RyODJdo
2. https://youtu.be/8jLOx1hD3_o?si=fue9poJyafc6D8Fm
https://redd.it/1ho7d5g
@r_cpp
229
229
Court is in session: Top 10 most notorious C and C++ errors in 2024
https://pvs-studio.com/en/blog/posts/cpp/1208/
https://redd.it/1ho3fma
@r_cpp
229
People say C++ is everywhere, it surely not on job openings
I look at LinkedIn job openings time to time and i think companies are not looking for C++ developers, especially in embedded systems. I cant even find a job to apply. Its always like:
%40 Frontend, Backend, Fullstack
%30 AI Engineer
%10 Devops
%10 Game Developers (Probably Unity, not even C++)
And %10 other C++ jobs
I wonder if everyone is going through the same thing or is it just my LinkedIn algorithm, or country related?
https://redd.it/1ho0x3o
@r_cpp
229
is this course good for learning cpp?
i saw this course in udacity for c++.
https://www.udacity.com/course/c-for-programmers--ud210?irclickid=R-SRzrQhNxyKULZQ3-0DpWWTUkCSnK1PEzOe3U0&irgwc=1&utm\_source=affiliate&utm\_medium=&aff=2606731&utm\_term=&utm\_campaign=\_\_&utm\_content=&adid=786224
is this a good source for learning c++?
as experience, i learned a little bit of python and c before.
https://redd.it/1ho0c4l
@r_cpp
229
Questions from GoTW #66 Constructor Failures
I read this article and have some questions:
Why is it that if a destructor can throw an exception that object construction is unreliable?
Finally, if Y::~Y() can throw, it is not possible to reliably create an X object at any time!
… If Y::~Y() can throw, even writing "X x;" is fraught with peril
What is "unmanaged resource acquisition" ? Can I see code examples for these three statements?
Always perform unmanaged resource acquisition in the constructor body,
never in initializer lists.
Always clean up unmanaged resource acquisition in local try-block handlers
within the constructor or destructor body, never in constructor or destructor
function-try-block handlers.
Prefer using "resource acquisition is initialization" to manage resources.
What is an "empty-throw" specification?
For a constructor to have an empty throw-specification, all base and member
subobjects must be known to never throw (whether they have throw-specs that
say so or not). An empty throw-specification on a constructor declares to the
world that construction cannot fail. If for whatever reason it can indeed fail,
then the empty throw-spec isn't appropriate, that's all
https://redd.it/1hnvx3p
@r_cpp
229
Has anyone figured out yet how to get clang-format to not bizarrely try to align chained methods
https://i.imgur.com/L6r1NnH.png
https://redd.it/1hnps39
@r_cpp
229
GUI in c++
I have been learning c for a year now and shifted to cpp a month ago.I have learned enough in cpp to start building projects. I had to build a project in c last month where I had decided to make a Sudoku game with interactive interface using Gtk in c. Gtk was difficult to learn due to various reasons. So I had to drop the GUI part and made it in console itself, but now I want to learn gui programming in cpp and I have seen many people suggesting Qt but there are not many resources available(for free). Is there any other language(less written) easy for beginners, and has resources available and also would help me in future.
https://redd.it/1hnks3c
@r_cpp
229
C++ Design Patterns - The Most Common Misconceptions (2 of N) - Klaus Iglberger - CppCon 2024
https://www.youtube.com/watch?v=pmdwAf6hCWg
https://redd.it/1hniyw1
@r_cpp
Уже доступно! Исследование Telegram 2025 — ключевые инсайты года 
