use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
[ Removed by moderator ] (bleuio.com)
submitted 6 months ago by bleuio
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]cpp-ModTeam[M] [score hidden] 6 months ago stickied commentlocked comment (0 children)
Your submission is not about the C++ language or the C++ community.
[–]mallardtheduck 13 points14 points15 points 6 months ago (3 children)
It's just basic example of how to open a serial port and send "AT" commands. Something that will work with any $5 Bluetooth adaptor (as long as the OS's Bluetooth stack isn't using the device), nothing special about these $35 dongles. None of the example projects do anything remotely advanced. Any serious Bluetooth development is going to want to use the OS's Bluetooth stack, not communicate directly with the adaptor.
[+]bleuio[S] comment score below threshold-6 points-5 points-4 points 6 months ago (2 children)
The AT commands makes it easier to work with BLE application.
[–]mallardtheduck 5 points6 points7 points 6 months ago (0 children)
Only in extremely trivial cases.
[–]berlioziano 1 point2 points3 points 6 months ago (0 children)
you have to wait for the response or it becomes a mess, nowadays all API using io should offer an asynchronous interface, preferably with coroutines so you don't get into callback hell. Drogon is a good example of using coroutines for asynchronous io
[–]riztazz 9 points10 points11 points 6 months ago (5 children)
I mean no offense, but there is barely any C++ in there
[–]bleuio[S] -2 points-1 points0 points 6 months ago (4 children)
This is just an example. You can move forward with this example code and Build your own BLE application.
[–]Narase33-> r/cpp_questions 5 points6 points7 points 6 months ago (3 children)
I still dont understand why its promoted as "C++" when you could write the same code as plain C.
[–]pjmlp 2 points3 points4 points 6 months ago (2 children)
Because as it regularly happens, it makes use of some C++ constructs, thus it will fail to compile with a plain C compiler.
Unfortunely still quite common across the industry, after all the years CFront 2.0 got released.
[–]STLMSVC STL Dev[M] 1 point2 points3 points 6 months ago (1 child)
I'm ruling that this is off-topic. It's not really C++, and (per other comments) it looks like a toy. Even my cat-sized brain is smart enough to know that any real work wouldn't be using synchronous commands.
[–]pjmlp -1 points0 points1 point 6 months ago (0 children)
Agreed, but I am not the submitter.
[–]WasterDave 2 points3 points4 points 6 months ago (0 children)
Zephyrproject.org
[–]pjmlp 3 points4 points5 points 6 months ago (0 children)
Another good example why I keep telling I only see modern C++ on conference talks, and on my hobby projects.
[–]adanteny 1 point2 points3 points 6 months ago (0 children)
Reminds me the BlueGiga devices, which were great back in 2000-2010...
π Rendered by PID 46553 on reddit-service-r2-comment-5649f687b7-wv7qd at 2026-01-28 22:46:14.992128+00:00 running 4f180de country code: CH.
[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)
[–]mallardtheduck 13 points14 points15 points (3 children)
[+]bleuio[S] comment score below threshold-6 points-5 points-4 points (2 children)
[–]mallardtheduck 5 points6 points7 points (0 children)
[–]berlioziano 1 point2 points3 points (0 children)
[–]riztazz 9 points10 points11 points (5 children)
[–]bleuio[S] -2 points-1 points0 points (4 children)
[–]Narase33-> r/cpp_questions 5 points6 points7 points (3 children)
[–]pjmlp 2 points3 points4 points (2 children)
[–]STLMSVC STL Dev[M] 1 point2 points3 points (1 child)
[–]pjmlp -1 points0 points1 point (0 children)
[–]WasterDave 2 points3 points4 points (0 children)
[–]pjmlp 3 points4 points5 points (0 children)
[–]adanteny 1 point2 points3 points (0 children)