{"id":27,"date":"2025-02-06T22:03:31","date_gmt":"2025-02-06T22:03:31","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/codesoup\/?p=27"},"modified":"2025-02-06T22:03:31","modified_gmt":"2025-02-06T22:03:31","slug":"apples-and-oranges","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/codesoup\/2025\/02\/06\/apples-and-oranges\/","title":{"rendered":"Apples and Oranges"},"content":{"rendered":"\n<p>Since creating an emulator requires relatively low-level programming, there&#8217;s very few technologies required besides one&#8217;s choice of language (I haven&#8217;t even been using an IDE, just my system&#8217;s standard text editor!). In the case of our project, that language is C++, which is a new one for me. I&#8217;ve definitely had some difficulties learning it, but I&#8217;ve come to appreciate it as a powerful and useful tool.<\/p>\n\n\n\n<p>I <em>am<\/em> familiar with C++&#8217;s parent, the (in?)famous C language. In many ways, these languages are quite similar. A programmer can happily write C-like syntax in a .cpp file and probably get something working. This compatibility makes sense, given C++&#8217;s origin as being &#8220;C with classes&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/timotheus-frobel-GeuqLqpgZ6k-unsplash-1024x768.jpg\" alt=\"\" class=\"wp-image-28\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/timotheus-frobel-GeuqLqpgZ6k-unsplash-1024x768.jpg 1024w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/timotheus-frobel-GeuqLqpgZ6k-unsplash-300x225.jpg 300w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/timotheus-frobel-GeuqLqpgZ6k-unsplash-768x576.jpg 768w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/timotheus-frobel-GeuqLqpgZ6k-unsplash-1536x1152.jpg 1536w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/timotheus-frobel-GeuqLqpgZ6k-unsplash-2048x1536.jpg 2048w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/timotheus-frobel-GeuqLqpgZ6k-unsplash-1200x900.jpg 1200w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/timotheus-frobel-GeuqLqpgZ6k-unsplash-1980x1485.jpg 1980w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">The apple doesn&#8217;t fall far from the tree&#8230;            [Photo by <a href=\"https:\/\/unsplash.com\/@timotheus_froebel?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash\">Timotheus Fr\u00f6bel<\/a> on <a href=\"https:\/\/unsplash.com\/photos\/apple-fruit-on-tree-GeuqLqpgZ6k?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash\">Unsplash<\/a>]<\/figcaption><\/figure>\n\n\n\n<p>Of course, modern C++ is quite different from its humble beginnings. While I am used to using classes (Java-based introductory programming courses have made sure of that), C++ has plenty of other features that make it unique. There are many &#8220;C++-isms&#8221; that I was not used to (I&#8217;m looking at <em>you<\/em>, &#8220;std::cout&lt;&lt;&#8221; syntax), which gave it quite a learning curve. After some time, however, I have come to appreciate what this language can do, and I&#8217;m enjoying using it and learning more.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"1024\" src=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/mae-mu-9002s2VnOAY-unsplash-683x1024.jpg\" alt=\"\" class=\"wp-image-29\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/mae-mu-9002s2VnOAY-unsplash-683x1024.jpg 683w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/mae-mu-9002s2VnOAY-unsplash-200x300.jpg 200w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/mae-mu-9002s2VnOAY-unsplash-768x1152.jpg 768w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/mae-mu-9002s2VnOAY-unsplash-1024x1536.jpg 1024w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/mae-mu-9002s2VnOAY-unsplash-1365x2048.jpg 1365w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/mae-mu-9002s2VnOAY-unsplash-1200x1800.jpg 1200w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/mae-mu-9002s2VnOAY-unsplash-1980x2970.jpg 1980w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/8110\/files\/2025\/02\/mae-mu-9002s2VnOAY-unsplash-scaled.jpg 1707w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><figcaption class=\"wp-element-caption\">&#8230;yet somehow, we end up with a different fruit.               [Photo by <a href=\"https:\/\/unsplash.com\/@picoftasty?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash\">Mae Mu<\/a> on <a href=\"https:\/\/unsplash.com\/photos\/sliced-orange-fruit-on-brown-wooden-table-9002s2VnOAY?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash\">Unsplash<\/a>]<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Since creating an emulator requires relatively low-level programming, there&#8217;s very few technologies required besides one&#8217;s choice of language (I haven&#8217;t even been using an IDE, just my system&#8217;s standard text editor!). In the case of our project, that language is C++, which is a new one for me. I&#8217;ve definitely had some difficulties learning it, [&hellip;]<\/p>\n","protected":false},"author":14480,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/codesoup\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/codesoup\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/codesoup\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/codesoup\/wp-json\/wp\/v2\/users\/14480"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/codesoup\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":1,"href":"https:\/\/blogs.oregonstate.edu\/codesoup\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":30,"href":"https:\/\/blogs.oregonstate.edu\/codesoup\/wp-json\/wp\/v2\/posts\/27\/revisions\/30"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/codesoup\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/codesoup\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/codesoup\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}