https://www.sandordargo.com/Sandor Dargo's BlogSandor Dargo writes about about C++, software development, books and stoic philosophy applied to software craftsmanship 2024-03-27T08:08:13+01:00 Sandor Dargo https://www.sandordargo.com/ Jekyll © 2024 Sandor Dargo /assets/img/favicons/favicon.ico /assets/img/favicons/favicon-96x96.png Should we move from fundamental types?2024-03-27T00:00:00+01:00 2024-03-27T00:00:00+01:00 https://www.sandordargo.com/blog/2024/03/27/move-from-funtamental Sandor Dargo In this blog post, we are going to discuss the intersection of move semantics and fundamental types. Should we move values of fundamental types? Or can we even move them in the first place? Let’s delve into this. But first, let’s stop for a second to remind ourselves what fundamental types are. In C++, fundamental types, also known as built-in types, are the basic data types provided by the la... C++23: Encoding related changes2024-03-20T00:00:00+01:00 2024-03-22T01:01:14+01:00 https://www.sandordargo.com/blog/2024/03/20/cpp23-encoding-related-changes Sandor Dargo Today, we are going to go through a couple of changes introduced by C++23 where the common theme is encoding. These changes are all related to how the code we write will be encoded by the compiler. Often these papers don’t introduce big changes, simply the common and desirable behaviour got standardized. Yet, these are all important to have code that works as expected and that is portable betw... Tidy First? by Kent Beck2024-03-16T00:00:00+01:00 2024-03-16T00:00:00+01:00 https://www.sandordargo.com/blog/2024/03/16/tidy-first-by-kent-beck Sandor Dargo Let’s start by explaining what tidying means when it comes to software development. Maybe a decade ago, this book would have been called “Refactoring first?”, but the term “refactoring” got inflated when people started to refer to long pauses in feature development as such. Even worse, the most essential part of refactoring - it shouldn’t change the system’s behaviour - is not always respected.... Three key philosophies behind C++2024-03-13T00:00:00+01:00 2024-03-13T00:00:00+01:00 https://www.sandordargo.com/blog/2024/03/13/3-key-philosophies-behind-cpp Sandor Dargo Recently, I had to refresh some training material for software engineers who are not new to programming but are new to C++. It’s a short introduction by all means and as participants are expected to know how to program in a C-like language (usually Java, Kotlin or Python), I don’t have to focus on syntax basis. I decided to follow this agenda for this first part of the course: A little bit ... My late discovery of std::filesystem - Part II2024-03-06T00:00:00+01:00 2024-03-06T00:00:00+01:00 https://www.sandordargo.com/blog/2024/03/06/std-filesystem-part2-iterate-over-directories Sandor Dargo Last week, we started to discuss the main parts of std::filesystem and we discovered how to work with paths, how to navigate up through the directory structure and how to move files and directories around. This week, we are going to see how to iterate over a directory structure based on different needs and expectations. Let’s start by simply listing the contents of a single directory. Iterat...