joebaf's comments

joebaf | 3 years ago | on: C++ at the End of 2022

is ChatGPT actually the most important thing that happens... not just for C++, but in terms of all programming languages? How will it affect programming?

joebaf | 3 years ago | on: C++ at the End of 2022

is ChatGPT actually the most important thing that happens... not just for C++, but in terms of all programming languages? How will it affect programming?

joebaf | 3 years ago | on: Const vs. constexpr vs. consteval vs. constinit in C++20

on the other hand with more options you can express more and write safer code (for example with constinit which solves static order init fiasco...) And if you don't have enough knowledge you can just stick to const.

What re alternatives for a system programming language? (Rust seems to be fine, but still it's not super easy...)

joebaf | 4 years ago | on: C++ Templates: How to Iterate through std:tuple: std:apply and More

Hi, Author here - I went to lambdas because I got some compilation issues... because some stupid mistakes the code with std::apply(printImpl<Args...>, tp) didn't compile...

But now I see the issue and it's improved. So the version:

template <typename... Args> void printTupleApplyFn(const std::tuple<Args...>& tp) { std::cout << "("; std::apply(printImpl<Args...>, tp); // << std::cout << ")"; }

is fine and probably the easiest

joebaf | 4 years ago | on: How to Refactor new/delete into unique ptr

Yep, smart pointers are essential for modern C++, and they provide improved security over raw pointers.

How do you use smart pointers? What’s your common use case to refactor into smart pointers?

joebaf | 5 years ago | on: I Improved My Legacy C++ Project with PVS-Studio

Do you use static analysis for your projects? Do you find it as a key factor that improves the code quality or it's not that strong?

I think it can be an important element of the build process, but some tunning is needed to match the project needs.

joebaf | 6 years ago | on: C++20 Reference Card

[author here] you can always unsubscribe at any time, I think it's a fair trade. So please consider removing that comment with the links.
page 1