Understanding the Fundamentals of C# With a JS Background

Understanding the Fundamentals of C# With a JS Background

One of the common questions I always find myself asking an SWE is, “how do you know so many languages?” The response is always mixed with a joke or two. After spending time building full-stack applications using JavaScript with Ruby on Rails backend, I wanted to explore another backend framework that I am always seeing on job descriptions. .

One of the common questions I always find myself asking an SWE is, “how do you know so many languages?” The response is always mixed with a joke or two. After spending time building full-stack applications using JavaScript with Ruby on Rails backend, I wanted to explore another backend framework that I am always seeing on job descriptions. .Net is a common framework that companies still use today. Until recently with JS and React, .net is normally connected with C#. So I wanted to dive deeper into the language and what difference/similarity does it have with JavaScript.

Let’s start with printing out an output to the CMD. In JavaScript, we can write our function and use console.log() to get our output. In C## we write Console.WriteLine(“Hello World”); to execute the output. However, C## will terminate the program once the line is executed. In order to keep the window up, we write another line of code: Console.ReadLine(); This will now leave the window open until you click Enter. This tells the program that we are done.

Please note: You need to include ‘;’ at the end of each line in C## so it can execute.

Variables

Javascript we know we need to declare any data type using ‘var’, ‘const’, and ‘let’. Today, we taught to avoid using var since const and let came out with ES6. Let’s use a classmate's name and their age and declare the variable. In JS, we can use let for the age of the classmate. We use ‘let’ because we can update the age as our program progress in time. We can use ‘const’ for the name because a person's name is generally not changed. In C#, use the word of the data type. For example, we use string to declare the variable name of ‘classmateName’ and int, for number, to declare ‘classmateAge’. With great powers, comes great responsibilities. Now that we know how to declare variables for name and age, we can use these variables to interpolate in our program.

c-sharp-programming javascript learning software-development

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Offshore Software Development - Best Practices

To make the most out of the benefits of offshore software development, you should understand the crucial factors that affect offshore development.

C programming for Beginners | Learn C Programming | C Language

C Language is an evergreen language and is used widely across different industries, This C programming is a must for students and working professionals to become a great Software Engineer especially when they are working in Software Development Domain. Great Learning brings you this live session on "Introduction to C". In this live session, we will be covering major concepts in C Programming such as Different Variables, Different Data Types that are being used, its Operators, Flow control statements, Structure, and lot more.

5 Best C# (C-Sharp) Programming Courses for Beginners in 2020

In this article, I am going to share some of the best courses to learn C# or C-Sharp in 2020. These courses are suitable for both beginners and experienced programmers who want to fill gaps in their C# knowledge.

Learning JavaScript: Development Environments for JavaScript Programming

One of the nice things about learning JavaScript these days is that there is a plethora of choices for writing and running JavaScript code. In this article, I’m going to describe a few of these environments and show you the environment I’ll be using in this series of articles.

5 Core Criteria for Selecting Software Development Company - TopDevelopers.co

Check out these five criteria for the selection of your software vendor, and you will never regret having the wrong quality product made for you.