{"id":2413,"date":"2020-02-13T20:32:12","date_gmt":"2020-02-13T20:32:12","guid":{"rendered":"http:\/\/www.andygibson.net\/blog\/?p=2413"},"modified":"2020-03-19T13:26:43","modified_gmt":"2020-03-19T13:26:43","slug":"why-c","status":"publish","type":"post","link":"http:\/\/www.andygibson.net\/blog\/programming\/why-c\/","title":{"rendered":"Why C++ ?"},"content":{"rendered":"\n<p>I made mention of my venturing back into the world of C++, and was asked why I was interested in doing so given all the Java work I do. The best answer I can give is based on a comment which I think was made by Bjarne Stroustrup himself when asked about the advantages of C++ or why people should learn it. He said (paraphrasing) that C++ is the best language to represent the machine and maps closest to the hardware. <\/p>\n\n\n\n<p>The current trends are to write code or scripts that are whisked away into the cloud to be interpreted or executed remotely on a garbage collected virtual machine, often through virtual containers on some kind of virtual computing instance.<\/p>\n\n\n\n<p>For me, computing has always been personal, writing code that runs on a box that sits on, or below your desk. Writing something in C++ takes me back to those times, and reminds me of the metal that all our code runs on eventually.<\/p>\n\n\n\n<p>It&#8217;s like taking a stroll through woodlands and getting back to basics, while taking a break from the city.<\/p>\n\n\n\n<p>Don&#8217;t get me wrong, all those high level abstractions have their place and purpose, especially when considering some of the gotchas of C++, but sometimes its nice to pack a bag, and go camp in the woods. It may be difficult, but it&#8217;s a pleasant challenge.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I made mention of my venturing back into the world of C++, and was asked why I was interested in doing so given all the Java work I do. The best answer I can give is based on a comment which I think was made by Bjarne Stroustrup himself when asked about the advantages of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[80],"tags":[131,6,118],"_links":{"self":[{"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/posts\/2413"}],"collection":[{"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/comments?post=2413"}],"version-history":[{"count":3,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/posts\/2413\/revisions"}],"predecessor-version":[{"id":2459,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/posts\/2413\/revisions\/2459"}],"wp:attachment":[{"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/media?parent=2413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/categories?post=2413"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/tags?post=2413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}