joebaf
|
2 years ago
|
on: C++ Initialization Story
joebaf
|
3 years ago
|
on: Combining Collections with Zip in C++23 for Efficient Data Processing
Do you have more examples where zip is handy? I've noticed it's a quite common feature of other languages like Python...
joebaf
|
3 years ago
|
on: Std: Initializer_list in C++ 2/2 – Caveats and Improvements
Do you us std::initializer list in your code?
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
|
3 years ago
|
on: Custom types and std:format from C++20
and std::print is already voted into C++23!
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
|
4 years ago
|
on: C++20 Oxymoron: Constexpr Virtual
Do you have any better use cases for those constexpr techniques? maybe we could make simpler code to CRTP?
joebaf
|
4 years ago
|
on: Constexpr vector and string in C++20 and One Big Limitation
do you have any useful use cases for such expressions? computing values based on text config? generating lookup tables? something else?
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
|
5 years ago
|
on: Notes on C++ SFINAE, Modern C++ and C++20 Concepts
So it seems that with concepts we can reduce the tricks of template code!
Do you have your own examples where you needed SFINAE stuff?
joebaf
|
6 years ago
|
on: Bartek's coding blog: An Extraterrestrial Guide to C++20 Text Formatting
Python -style text formatting in C++ :)
Have you used the library - {fmt} - before? It's great that after years of effors it's core functionality was placed in the Standard.
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.
joebaf
|
6 years ago
|
on: How C++17 Benefits from Boost Libraries
joebaf
|
6 years ago
|
on: Elephants Rarely Get Cancer, Now We Know Why (2015)
Still, we have pediatric cancers that are not caused by lifestyle. I wonder what's the ratio for small elephants. Are the also more protected ?
joebaf
|
7 years ago
|
on: How to get File Size in C++?
old problem, new solutions, hopefully with C++17 it's much cleaner
joebaf
|
7 years ago
|
on: Speeding Up Pattern Searches with Boyer-Moore Algorithm from C++ 17
It's great that C++17 offers more and more new algorithms, directly from the Standard Library.
Have anyone got some experience with Boyer Moore in day to day code?
joebaf
|
7 years ago
|
on: Performance of std::string_view vs. std::string from C++17
What is your experience with string_view? Does it bring so much benefits?
https://www.cppstories.com/2023/init-story-print/
And the book at Leanpub:
https://leanpub.com/cppinitbook