<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by samir savsani on Medium]]></title>
        <description><![CDATA[Stories by samir savsani on Medium]]></description>
        <link>https://medium.com/@samirsavsani?source=rss-31cc3af53f45------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*gd16jACTB78KYCdc.jpg</url>
            <title>Stories by samir savsani on Medium</title>
            <link>https://medium.com/@samirsavsani?source=rss-31cc3af53f45------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 08:15:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samirsavsani/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to run python program in terminal]]></title>
            <link>https://medium.com/@samirsavsani/how-to-run-python-program-in-terminal-537ef584bde3?source=rss-31cc3af53f45------2</link>
            <guid isPermaLink="false">https://medium.com/p/537ef584bde3</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[console]]></category>
            <category><![CDATA[shell]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[samir savsani]]></dc:creator>
            <pubDate>Mon, 17 Feb 2020 08:43:18 GMT</pubDate>
            <atom:updated>2020-02-17T08:43:18.437Z</atom:updated>
            <content:encoded><![CDATA[<p>For every programming language, we need language interpreter. Which understands written code, Compile it and run it. Here we want to run python program, so we need python interpreter. Which we can find from <a href="https://www.python.org/downloads/">Python.org</a>.</p><p>Current Python version is 3.x (3.8.1). This article is useful for windows as well Mac users. While installing python, make sure you check option “ Add Python 3.8 to PATH”.</p><p>1. <a href="https://www.askforprogram.in/2020/02/run-python-program-in-terminal.html">How to run Python files from the windows command line?</a></p><p>2. <a href="https://www.askforprogram.in/2020/02/run-python-program-in-terminal.html">How to run python program in python command line?</a></p><p>3. <a href="https://www.askforprogram.in/2020/02/run-python-program-in-terminal.html">How to run python extension script file from console?</a></p><p><strong>1. How to run Python files from the windows command line?</strong></p><p>As mentioned earlier, you need to first activate python interpreter. If you are using windows command line, write “python” and hit enter. You will see &gt;&gt;&gt; sign in next line. Which states that python interpreter is activated.</p><p>For example, we want to print “Hello World!!” in console. For that, write in command line <strong><em>print(“Hello World!!”)</em></strong> and hit enter. It will print same message in next line.</p><p><strong>2. How to run python program in python command line?</strong></p><p>If you are directly using python command line interpreter then you don’t need to run command “python”, which you did in option 1. Here you can directly write command <strong><em>print(“Hello World!!”)</em></strong> and hit enter.</p><p><strong>3. How to run python extension script file from console?</strong></p><p>In many cases, you want to run python script file which is of .py extention. For that open windows command line, Go to location where file is saved. For example, we have saved Helloworld.py on Desktop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*k56-E9mdOUFWfC-VgiElfQ.png" /><figcaption><strong>run python extension script file from console</strong></figcaption></figure><p><em>image credit : https://www.askforprogram.in/2020/02/run-python-program-in-terminal.html</em></p><p>Now, write command <strong><em>python Helloworld.py</em></strong> and hit enter, which will run code written in Helloworld.py file.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=537ef584bde3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C# Coding standards and Best programming practices]]></title>
            <link>https://medium.com/@samirsavsani/c-coding-standards-and-best-programming-practices-9fca12dc338e?source=rss-31cc3af53f45------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fca12dc338e</guid>
            <category><![CDATA[guidelines]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[aspnet]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <dc:creator><![CDATA[samir savsani]]></dc:creator>
            <pubDate>Thu, 06 Jun 2019 03:47:32 GMT</pubDate>
            <atom:updated>2023-09-02T10:53:18.742Z</atom:updated>
            <content:encoded><![CDATA[<p>Any programmer who starts programming knows how to write code, but some of them know coding standards and best programming practices. Not everyone of them follows c# coding standards. Today we will try to bring all the coding standards in this article, which are followed by some of known organizations.</p><p>Read : <a href="https://www.askforprogram.in/2019/04/C-sharp-coding-standards.html">c# code guidelines with examples</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vuNrt3UwQSiuLiD8sw5Hcg.jpeg" /></figure><h3>Purpose of coding standards</h3><ol><li>To follow the consistent coding pattern in your project.</li><li>Helps the developer to easily read and understand code to resolve issue as soon as based on assumptions and previous experience of developer.</li><li>For large projects, it helps to maintain the project for future developments changes.</li><li>To have it in readable format with proper spacing in code blocks.</li><li>To follow variable and method naming convention in accordance for what they do in logic.</li><li>To follow commenting with each logical code blocks.</li><li>Helps in uniform problem solving.</li><li>Helps in quick code integration and new developer in team.</li><li>Saves money due to less man hours.</li></ol><h3>Benefits of coding standards</h3><p>Ultimate benefit of coding standard is that it must be readable, understandable, reviewed, maintainable and reusable. These 5 are main characteristics of good coding practice.</p><h3>C# Coding Standards</h3><p><strong>1. C# Naming Conventions</strong></p><p>Read : <a href="https://www.askforprogram.in/2019/04/C-sharp-coding-standards.html">C# Naming Conventions with examples</a></p><ul><li>Must use Pascal case for Class name. Below is the example.</li><li>Must use Pascal case for method name, below is the example.</li><li>Must us Camel case for variables and method parameters.</li><li>Use Pascal case for Constructor, Delegates, Enum and Constants.</li><li>Use Camel case for file names.</li><li>Must use meaningful and descriptive name for variable declaration, also it should not be abbreviation.</li><li>Avoid use of single character named variables, considering exception of initialiser variables used in for, while, do while loops.</li><li>Avoid use underscores symbol for local variable names.</li><li>Use prefix ‘is’ for variables, properties and methods with return type Boolean.</li><li>Use appropriate prefix for front end/UI elements.You can choose prefix of your choice, below are the examples are just for reference.</li></ul><p><strong>2. C# Layout Conventions</strong></p><p>Read : <a href="https://www.askforprogram.in/2019/04/C-sharp-coding-standards.html">C# Layout Conventions with examples</a></p><ul><li>Use TAB for indentation in code, avoid spaces. Also configure tab level of your choice.</li><li>Add at least on line space between properties and methods declaration.</li><li>Write only one logical statement per line to avoid the complexity of code.</li><li>Use parentheses in equation / expression to group them logically.</li></ul><p><strong>3. C# Commenting Conventions</strong><br>Below are the some code commenting guidelines in c#.</p><p>Read : <a href="https://www.askforprogram.in/2019/04/C-sharp-coding-standards.html">c# Commenting Conventions with examples</a></p><ul><li>Must write comments for complex logical code blocks, which helps the other developers.</li><li>Place comment in separate line, avoid commenting after the code on same line.</li><li>Begin comment with uppercase, avoid one space after comment delimiter.</li><li>Single line commenting in C# Code behind, Select the line or text you want to comment and press shortcut Ctrl+K+C. To undo the comment press Ctrl+K+U.</li><li>Multi line commenting in C#, Used to comment whole block of code.</li><li>For XML commenting, follow below mentioned example for reference.</li></ul><p><strong>4. C# Code Improvement Tips</strong></p><p>Read : <a href="https://www.askforprogram.in/2019/04/C-sharp-coding-standards.html">C# Code Improvement Tip with examples</a></p><ul><li>Check Null and Empty condition.</li><li>Use ternary operator instead of if-else.</li><li>Use null coalescing operator.</li><li>Use object initialiser.</li><li>Use StringBuilder object to append strings, specially when string data is larger.</li><li>Avoid use of type “var” variables, Create variables with known datatype if you know the datatype of right side of assignment.</li><li>Use expression method in MVC for empty methods which returns only view.</li></ul><p>Read : <a href="https://www.askforprogram.in/2019/04/C-sharp-coding-standards.html">c# code guidelines with examples</a></p><p>Also Read :</p><ol><li><a href="https://www.askforprogram.in/2023/09/CSharp-double-question-mark-operator.html">C# double question mark operator with code example</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fca12dc338e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>