{"id":1206,"date":"2016-09-16T15:06:08","date_gmt":"2016-09-16T15:06:08","guid":{"rendered":"http:\/\/ninecrows.com\/career\/?p=1206"},"modified":"2016-09-16T15:06:08","modified_gmt":"2016-09-16T15:06:08","slug":"mutant-c-styling","status":"publish","type":"post","link":"https:\/\/ninecrows.com\/career\/2016\/09\/16\/mutant-c-styling\/","title":{"rendered":"Mutant C++ Styling&#8230;"},"content":{"rendered":"<p>I find myself more and more adapting my C++ style to what makes code edits simpler. I&#8217;ve gone from:<\/p>\n<pre>void foo(int a, double b);\n<\/pre>\n<p>to<\/p>\n<pre>void\nfoo(\n    \/** One important argument *\/\n    int a,\n    \/** Another important argument *\/\n    double b\n   ); \n<\/pre>\n<p>to make DOxygen documentation cleaner to write and read.<\/p>\n<p>Now I find myself considering this:<\/p>\n<pre>void\nfoo(\n    \/** stuff *\/\n    int a\n    \/** more stuff *\/\n    , double b\n    )\n<\/pre>\n<p>as when I temporarily <code>#if (0)<\/code> out an argument during development or create a targeted overload, the comma really does generally bind to the second argument. Not sure I&#8217;ll ever warm up to this, but I&#8217;ve become used to other changes that looked really ugly when I first made them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I find myself more and more adapting my C++ style to what makes code edits simpler. I&#8217;ve gone from: void foo(int a, double b); to void foo( \/** One important argument *\/ int a, \/** Another important argument *\/ double b ); to make DOxygen documentation cleaner to write and read. Now I find myself &hellip; <a href=\"https:\/\/ninecrows.com\/career\/2016\/09\/16\/mutant-c-styling\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Mutant C++ Styling&#8230;<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-1206","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7F2Qc-js","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/1206"}],"collection":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/comments?post=1206"}],"version-history":[{"count":1,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/1206\/revisions"}],"predecessor-version":[{"id":1207,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/posts\/1206\/revisions\/1207"}],"wp:attachment":[{"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/media?parent=1206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/categories?post=1206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ninecrows.com\/career\/wp-json\/wp\/v2\/tags?post=1206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}