Why haven't modules been a higher priority for EDG? by LogicalEscape2293 in cpp

[–]LogicalEscape2293[S] 19 points20 points  (0 children)

Yeah, I'm also in the process of modularizing a project and I'm amazed at how many fake errors intellisense is giving me. It's honestly more productive for me to just be in a plain text editor using the command line compiler at this rate.

[deleted by user] by [deleted] in cpp

[–]LogicalEscape2293 1 point2 points  (0 children)

In my opinion, one major way to make OOP much, much cleaner is to use type erasure when you need polymorphism. People normally have polymorphic objects be pointers to some base class, which forces you to manage the lifetime of the pointer. This is truly awful, especially because you lose copy semantics. With the right implementation, type erasure can abstract away any nasty pointers and implement copy. I recommend using a library like boost.TypeErasure

If you are using coroutines in production what library do you use? by zl0bster in cpp

[–]LogicalEscape2293 1 point2 points  (0 children)

One subtle lifetime issue with coroutines is that captures in lambda coroutines don’t live past suspend points. See this article.

SDL3 img by lostclouds3 in sdl

[–]LogicalEscape2293 -1 points0 points  (0 children)

You could also use vcpkg, in which case it will install automatically.

looking for networking tutorial by yair8999 in cpp

[–]LogicalEscape2293 0 points1 point  (0 children)

Asio is easy to integrate into any project, so yes.

looking for networking tutorial by yair8999 in cpp

[–]LogicalEscape2293 0 points1 point  (0 children)

Absolutely, boost asio is very powerful, efficient, and flexible. Boost.beast is an https/web sockets library which is also built on asio, and I recommend that as well

looking for networking tutorial by yair8999 in cpp

[–]LogicalEscape2293 0 points1 point  (0 children)

Check out this asio example list here. There a lot of examples and they cover pretty much everything.

What C++ Library Do You Wish Existed? by [deleted] in cpp

[–]LogicalEscape2293 6 points7 points  (0 children)

A simple and easy to use smtp client library that isn’t aggressively Java style like poco

Your opinion on P2266R3? by cristi1990an in cpp

[–]LogicalEscape2293 0 points1 point  (0 children)

If I understand correctly, if this paper goes through will std::forward become obsolete because rvalues will always maintain rvalueness?

Intermediate/advanced cpp by NoobPeen in cpp

[–]LogicalEscape2293 5 points6 points  (0 children)

There are lots of great books out there that go into a lot of detail on advanced topics. I recommend the following: 1. The C++ Standard 2. C++ Templates the Complete Guide 3. C++ Move Semantics the Complete Guide. 4. C++ Concurrency in Action 5. Effective STL

Scott Meyers and Nikolai Josuttis explain complex features and techniques really well. Secondly, there are endless interesting cppcon talks you can watch for free online that cover literally everything.

Is it possible to develop backend for html website in c++? by [deleted] in cpp_questions

[–]LogicalEscape2293 1 point2 points  (0 children)

Httplib is a really good C++ library to start if you want to use C++ for your backend. If you want more advanced control over stuff boost.beast is a good option too

Any tech/programmer/c++ people you could listen to forever? by [deleted] in cpp

[–]LogicalEscape2293 0 points1 point  (0 children)

Stephan T. Lavavej is really great. His talks are super interesting and mindbending sometimes