<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Etiquette to follow when coding...]]></title><description><![CDATA[<p dir="auto">These day's we see lot of coders out there publishing their work or posting up in Q/A Sessions but most of them lack proper standards.</p>
<p dir="auto">Following are some of the standards you should follow when you code..</p>
<p dir="auto"><strong>1. Indentation</strong></p>
<p dir="auto">This is one of the main problems that can be seen among most amateur developers. These programmers codes tends to look like a mess. Use of correct indentation will provide following advantages.</p>
<ul>
<li>Organized Code</li>
<li>Will help identify code blocks easily and aid when debugging</li>
</ul>
<p dir="auto"><strong>2. Comments</strong></p>
<p dir="auto">Commenting plays a major role when understanding someone's code as well as it helps the formatting of the code as well.<br />
It is encouraged for developers to always comment their codes such as what they did, what happens in the code and other dependencies to reduce errors that cause when that specific code segment is affected by major change.</p>
<p dir="auto"><strong>3. Naming Convention</strong></p>
<p dir="auto">When naming a variable it is best practice to either use <em>Pascle Case</em> (eg:- AddCalc()) or <em>Camel Case</em> (eg:- addCalc()).<br />
If a variable name consist of more than two or more words then use of underscore( _ ) is recommended (eg:- monthly_salary_calc() ).</p>
<p dir="auto"><strong>4. Usage of Component</strong></p>
<p dir="auto">When using components such as Textboxes, Buttons, RadioButtons, Classes always use their shorten form when naming them as it makes your life easy by being easy to find the correct component. eg:- txtName or NameText or nameTxt.</p>
<p dir="auto">There are more standards when coding but above said are the most important ones. So make sure when you code you life up to the standard so you can have a good coding life.</p>
]]></description><link>https://lankadevelopers.lk/topic/107/etiquette-to-follow-when-coding</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 00:01:38 GMT</lastBuildDate><atom:link href="https://lankadevelopers.lk/topic/107.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Jan 2019 15:28:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Etiquette to follow when coding... on Fri, 18 Jan 2019 18:21:41 GMT]]></title><description><![CDATA[<p dir="auto">thank you mate :heart:</p>
]]></description><link>https://lankadevelopers.lk/post/735</link><guid isPermaLink="true">https://lankadevelopers.lk/post/735</guid><dc:creator><![CDATA[fern]]></dc:creator><pubDate>Fri, 18 Jan 2019 18:21:41 GMT</pubDate></item><item><title><![CDATA[Reply to Etiquette to follow when coding... on Fri, 18 Jan 2019 08:50:05 GMT]]></title><description><![CDATA[<p dir="auto">Good post. Thank you</p>
]]></description><link>https://lankadevelopers.lk/post/731</link><guid isPermaLink="true">https://lankadevelopers.lk/post/731</guid><dc:creator><![CDATA[imadusanka]]></dc:creator><pubDate>Fri, 18 Jan 2019 08:50:05 GMT</pubDate></item><item><title><![CDATA[Reply to Etiquette to follow when coding... on Thu, 17 Jan 2019 00:41:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/2">@dev_lak</a> thanks</p>
]]></description><link>https://lankadevelopers.lk/post/716</link><guid isPermaLink="true">https://lankadevelopers.lk/post/716</guid><dc:creator><![CDATA[lahirunc]]></dc:creator><pubDate>Thu, 17 Jan 2019 00:41:27 GMT</pubDate></item><item><title><![CDATA[Reply to Etiquette to follow when coding... on Thu, 17 Jan 2019 00:41:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/27">@root</a> thanks</p>
]]></description><link>https://lankadevelopers.lk/post/715</link><guid isPermaLink="true">https://lankadevelopers.lk/post/715</guid><dc:creator><![CDATA[lahirunc]]></dc:creator><pubDate>Thu, 17 Jan 2019 00:41:17 GMT</pubDate></item><item><title><![CDATA[Reply to Etiquette to follow when coding... on Wed, 16 Jan 2019 17:22:37 GMT]]></title><description><![CDATA[<p dir="auto">very useful things bro, thnx</p>
]]></description><link>https://lankadevelopers.lk/post/711</link><guid isPermaLink="true">https://lankadevelopers.lk/post/711</guid><dc:creator><![CDATA[root]]></dc:creator><pubDate>Wed, 16 Jan 2019 17:22:37 GMT</pubDate></item><item><title><![CDATA[Reply to Etiquette to follow when coding... on Wed, 16 Jan 2019 16:22:33 GMT]]></title><description><![CDATA[<p dir="auto">Usefull post..</p>
]]></description><link>https://lankadevelopers.lk/post/710</link><guid isPermaLink="true">https://lankadevelopers.lk/post/710</guid><dc:creator><![CDATA[dev_lak]]></dc:creator><pubDate>Wed, 16 Jan 2019 16:22:33 GMT</pubDate></item></channel></rss>