Thoughts about getters and setters in C++
This article deals with getters and setters in C++. I am sorry, it is not about coroutine, but part 2 of thread pools will come in the following weeks. TL;DR: Getters and setters are bad for structure like objects. Introduction In this article, I will only give my opinion about them, I don’t want to […]
C++
(C++, getters, immutable, performance, setters)
C++ error handling, let’s abuse the co_await operator
Introduction Sometimes (very rarely :-p), errors may happen. It can be due to misuse from the user, it can be due to a system error, a corrupted, or a missing file. Errors can pop from everywhere. There are several ways to handle errors. In this article, we are going to see how coroutine may be […]
C++, coroutines
(c++ coroutine, c++20, error-handling, expected)
Thread pool with coroutines: Threads (1/3)
Introduction In this little series of articles, we are going to see how to implement a thread pool usable with coroutines. This series will contain these articles : Creating a Thread Creating the pool Using future with the pool The final objective will be to be able to write something like that: Choice of implementation […]
C++, coroutines
(C++, coroutine, multithread, thread, threadpool)