<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.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>Developer comments</title><link>https://community.appian.com/discussions/f/best-practices/19420/developer-comments</link><description>Please let me know if there any problem for adding the developer comments in SAIL . I heard that its against the best practice. 
 
 It would be nice if would be nice if some one could provide me what are the best practice in Developer comments</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/83616?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 16:38:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03f50782-0466-4a7c-b614-5096f8029c3e</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;I felt like this deserved it&amp;#39;s own &lt;a href="/discussions/f/general/21423/feature-request-single-line-sail-commenting"&gt;Feature Request thread&lt;/a&gt;.. Fingers crossed&amp;nbsp;&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f62c.svg" title="Grimacing"&gt;&amp;#x1f62c;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/83604?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 14:43:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2f801dcd-8a79-4f16-ac14-332b3f50539c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Agreed, this would be a place where the &amp;quot;//&amp;quot; or &amp;quot;--&amp;quot; comment functionality would be great.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/83603?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 14:41:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f67f73d7-63c1-4adf-ac9f-158f2101d49b</guid><dc:creator>S&amp;#248;ren Juul</dc:creator><description>&lt;p&gt;The problem with commenting out large sections of code, already containing comments, could also be solved by allowing &lt;em&gt;nested&lt;/em&gt; comments. For instance this should be possible:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/*&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt; list2: if(&lt;/code&gt;&lt;br /&gt;&lt;code&gt; isnull(ri!sortValues),&amp;nbsp; /* sortValues is optional */&lt;/code&gt;&lt;br /&gt;&lt;code&gt; ri!list,&lt;/code&gt;&lt;br /&gt;&lt;code&gt; ri!sortValues&lt;/code&gt;&lt;br /&gt;&lt;code&gt; ),&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;*/&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/76085?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 18:04:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3ab14b7e-c2eb-4acd-99ec-5f2e1cfb7ff7</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I agree, having &amp;quot;//&amp;quot; would be nice.&amp;nbsp; Especially if the hotkey-comment functionality is updated to ignore it when appropriate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/76082?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 16:44:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3bfd2e4f-7b1f-4ad3-92e3-36bae165a450</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;I would like to add my sentiments on single line commenting (separate from block commenting), this would be a VERY useful feature to include in the base product!&lt;/p&gt;
&lt;p&gt;Primarily in development of complex forms,&amp;nbsp;very often large sections of code need to be commented out in debugging to narrow the target.&amp;nbsp; I can&amp;#39;t say how many times I&amp;#39;ve ctrl+/ uncommented a large section of code only to have all the developer notes uncommented as well, creating a hassle to quickly locate an issue when you have to re-comment these lines prior to continuing work.&amp;nbsp; Or, how many times I&amp;#39;ve collapsed a large layout section and added /* prior and */ after, only to have the lines partially commented when the first set of dev notes trailing &amp;quot;*/&amp;quot; ends the block-comment I was trying to add..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This hassle would&amp;nbsp;be resolved if we could single-line comment with &amp;quot;--&amp;quot; or &amp;quot;//&amp;quot; as in other languages such as SQL, as these will not conflict when block commenting anything surrounding dev comments.&lt;/p&gt;
&lt;p&gt;/*&lt;br /&gt;select 1&lt;br /&gt;--comment!&lt;br /&gt;select 2&lt;br /&gt;*/&lt;/p&gt;
&lt;p&gt;Probably my only complaint with SAIL however&amp;nbsp;(except the ability to retrieve the current browser URL would be nice as well ;) ).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/76038?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 14:50:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c574b56d-d79f-4237-b47d-a16cb83d80a7</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;This was part of the standard practice we had in place when I was a Mainframe COBOL developer: a &amp;#39;Header&amp;#39; section that contained details of the Author/Developer of the code and any subsequent changes, along with the relevant Change&amp;nbsp;Reference so that there was traceability of code changes to authorise requirements. And then, inline with the code, anything that needed to be called out to explain the what and/or the why, whatever it takes to&amp;nbsp;reduce the friction that comes with changing someone else&amp;#39;s code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/76036?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 14:07:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:786b7643-f9c8-4408-9fc8-2fbb01bdc8e7</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;Part of our best practices are to use comments to add JIRA story numbers, the name of developer, and changes made to the top of the code file, and then another comment adjacent to changed code to keep a rolling change log within Appian code objects, specifically SAIL interfaces and Expression Rules.&lt;/p&gt;
&lt;p&gt;We also have a large annotation field on each PM which also serves as a change log.&lt;/p&gt;
&lt;p&gt;Self-commenting code is a myth designed to make people feel good about not commenting their code.&amp;nbsp; You should have clean elegant code with meaningful variable names such that you don&amp;#39;t need to comment what a particular piece of logic does, but you still comment WHY you&amp;#39;re doing it or even WHY you&amp;#39;re doing it this way.&lt;/p&gt;
&lt;p&gt;e.g. I see when there&amp;#39;s anything after the third decimal place, you always round up, but WHY do you always round up?&amp;nbsp; Because this module is for converting foreign currency into USD, and we need to make sure we always have AT LEAST enough USD down to the cent to cover the full amount of all the foreign currency.&amp;nbsp; We&amp;#39;d rather overpay by up to a penny than not have enough.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/76016?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 17:24:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bf1eed47-65e8-4e73-85a3-66fa0bcd20e9</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The only difference is Appian doesn&amp;#39;t have a separate operator for single line comments like &amp;quot;--&amp;quot; or &amp;quot;//&amp;quot;&amp;nbsp; ... you just use /* ... */&amp;nbsp;&amp;nbsp; - honestly, it&amp;#39;s not that hard.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/76014?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 16:59:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a421a77-e2c8-4c9e-a208-ea4200e30dbf</guid><dc:creator>Josh</dc:creator><description>&lt;p&gt;I recall seeing an issue where lengthy comments actually impacted interface performance. Maybe that drove this perception? Probably resolved by now, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/76012?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 15:46:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f4172ef-50bc-422c-9d96-737e60dfaf44</guid><dc:creator>scottz0001</dc:creator><description>&lt;p&gt;In PL/SQL (and some other languages) you can make comments two ways.&lt;/p&gt;
&lt;p&gt;Multiline comments:&lt;/p&gt;
&lt;p&gt;/*&amp;nbsp; This is how you do a multiline comment&lt;/p&gt;
&lt;p&gt;You can put a whole paragraph here, or more!*/&lt;/p&gt;
&lt;p&gt;-- This is a single line comment.&amp;nbsp; You can also place this after some code in the same line with it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;More examples here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.oracletutorial.com/plsql-tutorial/plsql-comments/"&gt;www.oracletutorial.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I swear Appian must have no database developers working there!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/76011?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 15:38:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45d7877e-944a-4b01-a006-e1d95062015b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what you mean by &amp;quot;how to do&amp;quot;?&amp;nbsp; You put &amp;quot;/*&amp;quot; at the start of the desired comment, and &amp;quot;*/&amp;quot; at the end.&amp;nbsp; This works for single-line as well as multi-line comments.&lt;/p&gt;
&lt;p&gt;In the Expression/Interface editors, you can also use the keyboard shortcut CTRL+/ (&amp;quot;control &amp;amp; forward slash&amp;quot;), as noted in the editor itself, to instantly comment / un-comment the current row.&amp;nbsp; Additionally you can press CTRL+Shift+/ to comment the currently selected text.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/76010?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 14:16:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26182489-fdf3-4261-86cb-ec838d0e94fb</guid><dc:creator>scottz0001</dc:creator><description>&lt;p&gt;This is what I was expecting you to say, but when I searched Appian documentation I found nothing on even how to do the&amp;nbsp; /**/ method of comments.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/76009?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 14:04:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d4b0c971-c858-476e-bdfe-c123b8a9f5a3</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Not AFAIK in the way you&amp;#39;re describing...putting /* a comment */ on a single line works of course!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/76008?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 13:56:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:381f621b-ada8-4c42-892f-44b92e27afde</guid><dc:creator>scottz0001</dc:creator><description>&lt;p&gt;As long as we are on the subject of comments, is there a way to make a single line comment?&lt;/p&gt;
&lt;p&gt;I.E., I know we can use /**/ to do comments, which I would refer to multiline comments, but is there a single line comment text, like -- in PL/SQL?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developer comments</title><link>https://community.appian.com/thread/75962?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 16:05:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:969b9ab2-4179-4f60-8bf8-ac9c0522906f</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;I don&amp;#39;t know why anyone would think Developer Comments were not best practice. Commenting code is a must to explain the why and the what of the code when the code in itself is not self-explanatory. The principle is that you should put yourself in the shoes of someone else who is seeing your code for the first time and what they might find useful in order to maintain it. Think what &lt;strong&gt;you&lt;/strong&gt; would like to see if you were looking at some new code for the first time and then leave the comments &lt;strong&gt;you&amp;#39;d&lt;/strong&gt; like to see.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>