{"id":5978,"date":"2020-09-06T07:42:30","date_gmt":"2020-09-06T07:42:30","guid":{"rendered":"https:\/\/www.modernescpp.com\/index.php\/and-the-winner-are\/"},"modified":"2020-09-06T07:42:30","modified_gmt":"2020-09-06T07:42:30","slug":"and-the-winner-are","status":"publish","type":"post","link":"https:\/\/www.modernescpp.com\/index.php\/and-the-winner-are\/","title":{"rendered":"And the Winners are:"},"content":{"rendered":"<p>Last week,&nbsp; I launched a quiz. The price was it to win one of the five vouchers for the book &#8220;Modern C++ for Absolute Beginners&#8221; from Slobodan Dmitrovi\u0107.<\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-5974\" src=\"https:\/\/www.modernescpp.com\/wp-content\/uploads\/2020\/08\/FrontPage.jpg\" alt=\"FrontPage\" style=\"display: block; margin-left: auto; margin-right: auto;\" width=\"350\" height=\"499\" srcset=\"https:\/\/www.modernescpp.com\/wp-content\/uploads\/2020\/08\/FrontPage.jpg 350w, https:\/\/www.modernescpp.com\/wp-content\/uploads\/2020\/08\/FrontPage-210x300.jpg 210w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<p>Your challenge was it to answer the following questions:<\/p>\n<ul>\n<li>What was your greatest challenge when learning C++? If you could turn back time, what would you do differently now?<\/li>\n<li>What advice would you give to beginners in C++?<\/li>\n<\/ul>\n<p>Before I present &#8211; in our opinion &#8211; the five best answers, I want to say thanks to the more than 20 participants providing very interesting answers. Each one had a different perspective. To make it short, here are the five winners.<\/p>\n<ul>\n<li>Nico Liberato Candio<\/li>\n<li>Ivica Bogosavljevic<\/li>\n<li>Gabriel Valenzuela<\/li>\n<li>Dominik Cubelic<\/li>\n<li>Dietmar Schulz<\/li>\n<\/ul>\n<p>I will send your e-mail addresses to <a href=\"https:\/\/www.apress.com\/de\">apress <\/a>, and they will contact you.<\/p>\n<p>Here are the quoted answers. I fixed a few typos.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_was_your_greatest_challenge_when_learning_C_If_you_could_turn_back_time_what_would_you_do_differently_now\"><\/span>What was your greatest challenge when learning C++? If you could turn back time, what would you do differently now?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Nico_Liberato_Candio\"><\/span>Nico Liberato Candio<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><em>One of the major challenges learning C++, in my opinion, is to overcome the \u201cfear\u201d of the language itself; back in the years I remember that were substantially absent in the literature books or resources to make the language generally accessible and simple to learn. The books of C++ ( except the good book Tour of C++, from Bjarne) are complex and too advanced and detailed for an absolute beginner.<\/em><\/p>\n<p><em>Turning back in the time I would prioritize simple and accessible ways to learn the language, through a practical approach (hackerrank videos + exercises, resources absent at the time, Udacity so on ). I would probably focus more on the fundamentals in a practical way (I\/O, Classes and OOP, strings, STL, so forth) and then start to grab the more advanced topics (templates, lambdas, so on).<\/em><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Ivica_Bogosavljevic\"><\/span>Ivica Bogosavljevic<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><em>Templates without a doubt. I work as a performance engineer, and templates are an indispensable part of that. You can have several versions of the same function where each is optimized for a specific case without any code duplication. I can make fast polymorphic code at compile-time by having a separate container for each type and templates allow me to have several functions for each of them.<\/em><\/p>\n<p><em>If I could go back in time, I would definitely learn templates better. Variadic templates, recursive functions with templates at compile time etc. I wrote a custom array container for polymorphic objects that using variadic templates that is faster than anything available in STL (I can provide the link if you would like to see it).<\/em><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Gabriel_Valenzuela\"><\/span>Gabriel Valenzuela<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><em>For me, the greatest challenge is understanding memory management. C++ derives from C, one of the first programming languages that make an abstraction of Assembler. C came to help the memory management using the functions calloc(),malloc() and free(), with this base and introducing the Object Oriented Paradigm (OOP) cames C++, following the line of C and introducing the new features that the modernity make available.<\/em><br \/><em>When I learned C++ for the first time, it was in my college, 1st year of engineering and there are a lot of things that I would do differently. Learn more about new standards, learn more about compilers and have a better understanding of what means a compiled language, learn smart pointers, and see why they are more efficient than raw pointers between other topics.<\/em><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Dominik_Cubelic\"><\/span>Dominik Cubelic<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><em>As I just started learning C++ my biggest challenge is actually finding resources that are good and actually still valid and up to date, and differentiating all the mixed information I am getting.<\/em><br \/><em>If I could turn back time I would definitely make myself learn C++ earlier.<\/em><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Dietmar_Schulz\"><\/span>Dietmar Schulz<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><em>The introduction of .NET and C# made me very lucky. I damned C++ and really thought that C# and .NET would solve the issues with C++ about dangling pointers and memory leaks. Tools like boundchecker and bugtrapper will no more be necessary. <\/em><br \/><em>&#8211;&gt; What a nonsense! Of course, the development with C# got faster and we also fell faster in the known tracks of cyclic references, also null references.<\/em><br \/><em>And then, because of sheltering our intellectual property we still had to use C++ for these modules. The binding parts between C# and C++ were then implemented in Microsoft&#8217;s managed C++ &#8230; Frustrating.<\/em><\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_advice_would_you_give_to_beginners_in_C\"><\/span>What advice would you give to beginners in C++?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Nico_Liberato_Candio-2\"><\/span>Nico Liberato Candio<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><em>Prioritize the practical approach, starting from the basics: follow a schedule based on 50% of the time spent on the theory ( learn I\/O for example ) and then apply the theory with practical exercises.<\/em><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Ivica_Bogosavljevic-2\"><\/span>Ivica Bogosavljevic<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><em>C++ is tough. Language is complex, there are a lot of quirks to learn. But exactly for that reason, it is both fast and powerful. So don&#8217;t worry, you&#8217;ll get a grip on the most common things quickly, and you will learn other things when the time comes.<\/em><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Gabriel_Valenzuela-2\"><\/span>Gabriel Valenzuela<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><em>Be patient. Learning C++ can be like climbing a mountain, the finish line seems to be so far and unreachable, but step by step (However small it may be) we are a little close to finishing our path. And other advice, having a mistake doesn&#8217;t mean that one fails, even better, it learns more about our mistakes than our success.<\/em><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Dominik_Cubelic-2\"><\/span>Dominik Cubelic<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><em>Well, as I am a beginner myself, the advice I feel work best are: read a lot, and code code code.<\/em><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Dietmar_Schulz-2\"><\/span>Dietmar Schulz<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><em>Do not start with plain C and port that to C++, use the STL and other libraries as much as possible instead of developing container yourself. In the usage of pointers be always aware of ownership! Always also look at the warnings your compiler emits in release mode, there can be very important hints that you don&#8217;t get in debug builds!<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>Once more. Thanks a lot for your great answers.<\/p>\n<p>Modernes C++,<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" alignleft size-full wp-image-5977\" src=\"https:\/\/www.modernescpp.com\/wp-content\/uploads\/2020\/09\/RainerSlobodant.png\" alt=\"RainerSlobodant\" width=\"350\" height=\"129\" style=\"float: left;\" srcset=\"https:\/\/www.modernescpp.com\/wp-content\/uploads\/2020\/09\/RainerSlobodant.png 489w, https:\/\/www.modernescpp.com\/wp-content\/uploads\/2020\/09\/RainerSlobodant-300x110.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week,&nbsp; I launched a quiz. The price was it to win one of the five vouchers for the book &#8220;Modern C++ for Absolute Beginners&#8221; from Slobodan Dmitrovi\u0107.<\/p>\n","protected":false},"author":21,"featured_media":5974,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[360],"tags":[],"class_list":["post-5978","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/www.modernescpp.com\/index.php\/wp-json\/wp\/v2\/posts\/5978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.modernescpp.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.modernescpp.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.modernescpp.com\/index.php\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.modernescpp.com\/index.php\/wp-json\/wp\/v2\/comments?post=5978"}],"version-history":[{"count":0,"href":"https:\/\/www.modernescpp.com\/index.php\/wp-json\/wp\/v2\/posts\/5978\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.modernescpp.com\/index.php\/wp-json\/wp\/v2\/media\/5974"}],"wp:attachment":[{"href":"https:\/\/www.modernescpp.com\/index.php\/wp-json\/wp\/v2\/media?parent=5978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.modernescpp.com\/index.php\/wp-json\/wp\/v2\/categories?post=5978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.modernescpp.com\/index.php\/wp-json\/wp\/v2\/tags?post=5978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}