<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kyle Martin</title>
    <description>The latest articles on DEV Community by Kyle Martin (@thesnowmanndev).</description>
    <link>https://dev.to/thesnowmanndev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F319897%2F8956ff95-7382-4d48-872e-478e3b5114f6.jpeg</url>
      <title>DEV Community: Kyle Martin</title>
      <link>https://dev.to/thesnowmanndev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thesnowmanndev"/>
    <language>en</language>
    <item>
      <title>Elaborating on Strings</title>
      <dc:creator>Kyle Martin</dc:creator>
      <pubDate>Fri, 12 May 2023 00:07:00 +0000</pubDate>
      <link>https://dev.to/thesnowmanndev/elaborating-on-strings-1c6l</link>
      <guid>https://dev.to/thesnowmanndev/elaborating-on-strings-1c6l</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
Hello anyone who reads this. I am aiming to make short read posts on dev.to to teach members about the C sharp programming language. I have recently started a blog on Wordpress to record my learnings and thoughts on computer programming. This has caused me to write summarized posts on dev in order to hopefully teach someone out there something and if they are interested in learning more they can read the more detailed post on my blog. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Table of Contents:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/thesnowmanndev/learn-c-variables-34bf"&gt;Learn C#: Variables&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/thesnowmanndev/learn-c-conversions-53jf"&gt;Learn C#: Converting variables&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;This post&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;&lt;strong&gt;The String Type&lt;/strong&gt;&lt;br&gt;
The string type is a variable that contains zero or more unicode characters. Just like other variables it must be declared, can be initialized, and assigned. Strings are immutable data which means it cannot be changed once created. Any operation that attempts to modify the assignment will end up creating a new string object&lt;/p&gt;

&lt;p&gt;&lt;code&gt;string definition = "This is a string";&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In the example above I declared a string variable using the string alias and named the variable definition. Then I assigned a series of characters. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;string definition = null;&lt;/code&gt; // initializing as null&lt;/p&gt;

&lt;p&gt;&lt;code&gt;string definition = "";&lt;/code&gt; // initializing with zero characters&lt;/p&gt;

&lt;p&gt;Both of the examples above are other ways to initialize a string variable in C#.&lt;/p&gt;



&lt;p&gt;Earlier I mentioned 'alias'. Essentially, what I meant is when you declare a string using the lowercase version instead of uppercase version, you are calling the System.String class using an alias. &lt;/p&gt;



&lt;p&gt;&lt;strong&gt;String Methods&lt;/strong&gt;&lt;br&gt;
There are many properties or methods you can use with string variables to manipulate the data within your application. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Retrieve characters in a string using indexing&lt;/li&gt;
&lt;li&gt;String Interpolation&lt;/li&gt;
&lt;li&gt;String Variable Lengths&lt;/li&gt;
&lt;li&gt;String Comparison&lt;/li&gt;
&lt;li&gt;String Concatenation&lt;/li&gt;
&lt;li&gt;String Formatting &amp;amp; Modification (not mentioned in blog post)&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;&lt;strong&gt;String Length&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string greeting = "Hello!";
int stringLength = greeting.Length; // Output: 6
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Above is the example on how to use the length property of the string class. It returns an integer that describes the length of the string. This uses a zero-based counting system (0, 1, 2, etc...). &lt;/p&gt;




&lt;p&gt;&lt;strong&gt;String Concatenation&lt;/strong&gt;&lt;br&gt;
Sometimes, you would like to combine two strings together to formulate a new string.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string firstName = "Kyle";
string lastName = "Martin";
string fullName = firstName + " " + lastName;
// Or
string fullName = string.Concat(firstName, " ", lastName);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will output my full name when calling the fullName variable. I encourage you to create a new console application and give this a shot. See what small applications you can create with String Concatenation. &lt;/p&gt;




&lt;p&gt;&lt;strong&gt;&lt;em&gt;To see the other methods please head on over to my blog post as it is a much longer read and contains additional resources to help you learn more about the String Class in C#.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;Thank you for your time. Again, I am trying to keep these dev.to posts small in order to garner what little precious time I can. If this intrigues you, please visit my blog.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://kylemartin0819.wordpress.com/2023/05/11/reference-types-and-string-variables-in-c/"&gt;https://kylemartin0819.wordpress.com/2023/05/11/reference-types-and-string-variables-in-c/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also, please consider leaving a post emoji, comment, or follow. I also have a link to my GitHub where I will be improving overtime to contain my programming language learnings and applications that I build. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Kyle&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>csharp</category>
      <category>beginners</category>
      <category>programming</category>
      <category>learning</category>
    </item>
    <item>
      <title>Let’s convert that variable in C#</title>
      <dc:creator>Kyle Martin</dc:creator>
      <pubDate>Tue, 09 May 2023 21:47:46 +0000</pubDate>
      <link>https://dev.to/thesnowmanndev/learn-c-conversions-53jf</link>
      <guid>https://dev.to/thesnowmanndev/learn-c-conversions-53jf</guid>
      <description>&lt;p&gt;&lt;strong&gt;Learn C#: Conversions&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Table of Contents:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/thesnowmanndev/learn-c-variables-34bf"&gt;Learn C#: Variables&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;This post&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Introduction:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;My name is Kyle, I am aiming to write small, short read articles on Dev.to to help people learn C#. This is the second post in many where I write a summarized post of my recent blog posts on my blog. Let's get into it!&lt;/p&gt;




&lt;p&gt;&lt;em&gt;&lt;strong&gt;Conversions in C#:&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
In the previous post I wrote about simple types (value types) in the C# language. For this post, I will be writing about converting variables in the C# language. Most importantly I will be explaining two conversions: Implicit Conversions and Explicit Conversions.&lt;/p&gt;



&lt;p&gt;&lt;em&gt;&lt;strong&gt;Implicit Conversions:&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
In C# you can convert simple types into other types without having to cast (I will get into this soon). For example, you can change a int variable into a long, float, double, or decimal. The conversion will be done automatically by the compiler when certain expectations are met. To find out more about the demands, read &lt;a href="https://kylemartin0819.wordpress.com/2023/05/09/conversions-in-c/"&gt;my blog post&lt;/a&gt; to learn more in depth about conversions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int number = 123456789;
long biggerNumber = number;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Essentially, a variable defined and assigned earlier in code can be converted to another variable type as long as those language specifications are met.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;&lt;strong&gt;Explicit Conversions:&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
In C# you can convert variables by explicitly telling the compiler to convert the variable. Explicit Conversions is also known as casting. For example, a double can be explicitly converted to a byte, short, int, long, char, float, or decimal by defining the type of the assignment. With casting, it can result in precision loss. If the double value is 1337.12 and you cast, it into an int it will become 1337.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;double x = 1337.12;
int y = (int)x; // Output: 1337
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On &lt;a href="https://kylemartin0819.wordpress.com/2023/05/09/conversions-in-c/"&gt;my blog&lt;/a&gt; I also dive deeper into explaining Explicit Conversions, like I said earlier - my goal is to create summarized or condensed guides on dev.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;&lt;strong&gt;Convert Class&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
In C# the System namespace provides a class named Convert that contains many methods for converting objects or variables as well. For example, you can use Convert.ToBoolean() to convert a string variable into a bool.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string doorOpenText = "True";
bool doorOpen = Convert.ToBoolean(doorOpenText);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;Again, I am aiming to consistently write condensed dev posts to summarize my lengthier blog posts. I have recently created a blog to capture the knowledge I have gained over the past five years of learning computer science and programming. Currently, I am fixated on C#. I know Dev.to really isn't a website where there are a lot of C# developers or learners, and it is more Javascript / front-end centric. I still am hoping to help some learners. &lt;/p&gt;

&lt;p&gt;If you are interested in reading a lengthier post. Check out my blog:&lt;br&gt;
&lt;a href="https://kylemartin0819.wordpress.com/2023/05/09/conversions-in-c/"&gt;https://kylemartin0819.wordpress.com/2023/05/09/conversions-in-c/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Don't forget to leave an emoji interaction, comment, or follow! My profile also has links to my GitHub where I post small applications, programming challenges, or learnings from online courses or books. I plan on doing programming book reviews as well someday. &lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

&lt;p&gt;Kyle&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>beginners</category>
      <category>programming</category>
      <category>learning</category>
    </item>
    <item>
      <title>The built in types of C#</title>
      <dc:creator>Kyle Martin</dc:creator>
      <pubDate>Sun, 07 May 2023 15:16:36 +0000</pubDate>
      <link>https://dev.to/thesnowmanndev/learn-c-variables-34bf</link>
      <guid>https://dev.to/thesnowmanndev/learn-c-variables-34bf</guid>
      <description>&lt;p&gt;Variables are an essential part of any programming language. Variables allow you to store and manipulate data during the execution of your code. &lt;/p&gt;

&lt;p&gt;In this post I will be writing about the built-in types in the C# language. These are known as integral numeric, floating point numeric, bool, and char. The aspects to these variables are declarations, initialization, scope, assignment, and modification.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;char firstLetter = 'a';
int age = 33;
double cost = 1337.00;
bool isOpen = false;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the example above I have declared and initialized the four simple type variables in C#. It starts with first defining the type the variable will be, naming the variable, and assigning a value to the variable. You don't always need to assign a value to the variable upon declaring the variable.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;char firstLetter;
int age;
double cost;
bool isOpen;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the examples above I have described how to define, initialize, and assign variables in C#. I have recently started a blog to help jot down my programming education / learnings that I have picked up over the last five years. I go more in depth on modification and scope of variables in C# in the latest post published today. If you are interested check it out. &lt;/p&gt;

&lt;p&gt;My blog: &lt;a href="https://kylemartin0819.wordpress.com/"&gt;https://kylemartin0819.wordpress.com/&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;I plan on creating concise, short read, lessons here on Dev.to that summarize my blog posts as well so consider giving me a like and follow. Check out my GitHub where I have been storing C# code from online courses / books I have been digesting recently.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

&lt;p&gt;Kyle&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>programming</category>
      <category>beginners</category>
      <category>learning</category>
    </item>
    <item>
      <title>How I chose a programming language and beat bad habits</title>
      <dc:creator>Kyle Martin</dc:creator>
      <pubDate>Sun, 21 Jun 2020 15:37:20 +0000</pubDate>
      <link>https://dev.to/thesnowmanndev/how-i-chose-a-programming-language-and-beat-bad-habits-2fa7</link>
      <guid>https://dev.to/thesnowmanndev/how-i-chose-a-programming-language-and-beat-bad-habits-2fa7</guid>
      <description>&lt;p&gt;TLDR: Sit down. Reflect on what you truly want out of learning to program. Make a list. Tally it up. Commit to the one that has the most tally marks until you are comfortable with it enough to branch out to others. If you never get past step 1 you won't make it to the top of the staircase. &lt;/p&gt;

&lt;p&gt;Backstory - I have been interested in learning a programming language since about 2007 but really started learning or pursuing languages in late 2018 early 2019 and never really got past the basics of the basics. In the last two years I struggled with this hardcore because I would "choose" a language and then randomly a week or two later YouTube would recommend a video titled "why this language is bad... and what you should focus on..." or "top language to learn in 2018, 2019, 2020..." and I would lose focus and change plans. Because of this, I am sure I have 100+ courses on my Udemy account but none are more than 20% complete... Till now.&lt;/p&gt;

&lt;p&gt;After watching one of those typical "why this language is dying..." videos I scrolled down to read some of the comments and I came across a thought-provoking comment. It essentially said "Stop falling for this endless loop of being influenced by these shitty YouTube videos. If you want to truly become a software engineer or a developer you need to pick a language and stick with it.". How have I not come to this conclusion in the last few years? How have I been too blind to this bad habit loop I was stuck in? I decided to make a change. That change was to follow the advice of that comment. I wish I remember who made the comment and which video it was on (I watch way too much YouTube every day... /sigh) so I could give them credit. Whoever you were I would just like to say THANK YOU! &lt;/p&gt;

&lt;p&gt;I hope this post helps you just as much as that comment helped me. &lt;/p&gt;

&lt;p&gt;So what did I do? Well, I got out my notebook and at the top of the page I wrote  "WHAT PROGRAMMING LANGUAGE?!?". Yes, most of the time I write in caps as I am probably a psycho or some loser who never learned lowercase writing. Anyways, I then wrote, "What do you want to make in the future?". Below that, I made a list that lists out everything I would like to get out of programming or make out of interest and it looks a little something like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I want to be able to create Android Apps&lt;/li&gt;
&lt;li&gt;I want to be able to create software on Windows&lt;/li&gt;
&lt;li&gt;I want to be able to create functional web apps that assist or provide information on games&lt;/li&gt;
&lt;li&gt;I want to learn a more simple to learn a language at first and become proficient with it&lt;/li&gt;
&lt;li&gt;I would one day like to transition into a programming career&lt;/li&gt;
&lt;li&gt;I don't necessarily want to work for FAANG companies as I would have to move&lt;/li&gt;
&lt;li&gt;I would like to make software to teach my daughter stuff in the future&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now that is my list, yours may be different as I like to think everyone is unique in certain ways so I encourage you to sit down and reflect what YOU want in your future and make a list if you are stuck like I was. &lt;/p&gt;

&lt;p&gt;Then I google searched "Which programming language" and hit images as I knew there would be some kind of tree created to help you navigate which language is good for what and I came across this image that I posted as the cover art. I will also post it below if it doesn't show up that well. &lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fmnfuku6dqypydvpefkwe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fmnfuku6dqypydvpefkwe.png" alt="Alt Text" width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I originally found this image on a FreeCodeCamp blog post but it seems to be re-uploaded all over the web. I have no idea who created it originally but thank you to whoever did!&lt;/p&gt;

&lt;p&gt;After looking over this image I put which language is good for which goal on my list. Looks a little like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I want to be able to create Android Apps (Java/Kotlin)&lt;/li&gt;
&lt;li&gt;I want to be able to create software on Windows (C#/Java/Python)&lt;/li&gt;
&lt;li&gt;I want to be able to create functional web apps that assist or provide information on games (JavaScript/Python)&lt;/li&gt;
&lt;li&gt;I want to learn a more simple to learn a language at first and become proficient with it (Python)&lt;/li&gt;
&lt;li&gt;I would one day like to transition into a programming career (Python, C#, C, Java)&lt;/li&gt;
&lt;li&gt;I don't necessarily want to work for FAANG companies as I would have to move (Java - I had to look for jobs in my local area and find what was currently the majority language for local companies)&lt;/li&gt;
&lt;li&gt;I would like to make software to teach my daughter stuff in the future (Java, Python, C#)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After that, I tallied them up and it was obvious that Java and Python were the majority on this list. Now I already knew some of the basics of Java but all over the web I every blog post I read kept saying "Python is really easy to learn" so I figured since they were both so close and I truly want to stick with one for a while then I will just go with Python. Before this, I was aimlessly following YouTube advice not really seeing a direction. By making a list it helps you see the bigger picture. &lt;/p&gt;

&lt;p&gt;But, all of this is pointless if you do not commit. Don't listen to the endless waves of YouTube programming community videos on which language is the best. You will perpetually be stuck like I was. I would like to add the analogy that if you don't get past step one you will never make it to the top of the staircase. You could look at being a developer/engineer/programmer as being in a skyscraper that has many flights of stairs. So just focus on one for now, more will come in the future and you will be great with whatever you choose and stick with for a while. You don't need to live, breathe, and eat that one language till the day you grow old and die. But you do need to get past the basics. &lt;/p&gt;

&lt;p&gt;I know this got long, and I rambled on at times. I hope this helps at least one person! If you want to learn Python check out my Github - &lt;a href="https://github.com/Thesnowmanndev"&gt;https://github.com/Thesnowmanndev&lt;/a&gt; where I am creating a repository for learning Python. Its essentially just notes so don't get overwhelmed by the number of comments in each file. That shouldn't be normal programming practice. &lt;/p&gt;

&lt;p&gt;Take care everyone. &lt;/p&gt;

&lt;p&gt;Kyle&lt;/p&gt;

</description>
      <category>python</category>
      <category>javascript</category>
      <category>java</category>
      <category>csharp</category>
    </item>
  </channel>
</rss>
