<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>sensible C++ coding convention - µOS naming standard</title><link>/technologies/code_exchange/b/blog/posts/sensible-c-coding-convention---os-naming-standard</link><description>When writing reusable code, I like to be consistent and use standards. For C++, there are many flavours out there.
I&amp;#39;ve been looking around for guidance on writing modern C++ code, with templates. That&amp;#39;s when I bumped into the &amp;micro;OS naming s...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: sensible C++ coding convention - µOS naming standard</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/sensible-c-coding-convention---os-naming-standard</link><pubDate>Mon, 02 Sep 2024 03:08:47 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1c977813-b9ea-47f0-b263-5ef439e624b4</guid><dc:creator>battlecoder</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Naming conventions are definitely a fighting ground for a lot of people. I personally think that any naming convention you want to follow is fine, as long as the code doesn&amp;#39;t look like you put the ascii table in a blender and dumped it into your C file with some ice.&lt;/p&gt;
&lt;p&gt;However, there&amp;#39;s some extremist views out there, and I&amp;#39;ve seen coding style suggestions that are meant to &amp;quot;improve readability&amp;quot; in theory, but in practice they have the opposite effect.&lt;/p&gt;
&lt;p&gt;Now, the convention you linked sounds reasonable for the most of it. I&amp;#39;d disagree with a couple of their suggestions, but that&amp;#39;s just me. Naming conventions (just like &amp;quot;space vs tab&amp;quot;, or &amp;quot;opening braces in their own line vs next to the block opening statement&amp;quot;), are down to personal preference. None of what they suggest is madness, it&amp;#39;s all pretty reasonable and has a high degree of consistency (which is the important part of standards), and that already puts their conventions above a lot of others I&amp;#39;ve seen out there.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=28305&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: sensible C++ coding convention - µOS naming standard</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/sensible-c-coding-convention---os-naming-standard</link><pubDate>Sun, 01 Sep 2024 19:41:06 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1c977813-b9ea-47f0-b263-5ef439e624b4</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Interesting stuff. I took a peek at the naming conventions you linked to, it makes sense, as well as the Industrial Strength C++ book. My C++ wasn&amp;#39;t formally taught (I picked it up initially from an Aussie firm, and then did self-study with books - Stroustrup etc). I stuck with the conventions that firm used, which looks similarish to the Industrial Strength conventions it seems, e.g. capital on the class names, and using an &amp;#39;m&amp;#39; for member variables, although back-to-front and lower-case, e.g. mPacketCount or whatever. Definitely good to stay consistent in a style.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=28305&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: sensible C++ coding convention - µOS naming standard</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/sensible-c-coding-convention---os-naming-standard</link><pubDate>Sun, 01 Sep 2024 18:59:27 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1c977813-b9ea-47f0-b263-5ef439e624b4</guid><dc:creator>DAB</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Thanks Jan.&lt;/p&gt;
&lt;p&gt;Naming conventions are always a good way to start a fight among software engineers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;While most people don&amp;#39;t care, they just want to get the code done, you always run into a few fanatics who have their favorite and refuse to conform.&lt;/p&gt;
&lt;p&gt;If you are just writing code for yourself you can do what you want, but as soon as you work with a team, you need everyone on board or chaos ensues.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=28305&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>