Codecademy - Learn C#

2020-03-12 10:44:34

To Improve my skills in C# and .NET I started the "Learn C#" Course on Codecademy today.

The first few lessons are pretty simple hello world type of things. They cover reading and writing to the console, declaring variables, and error handling.

I also learned that C# and .NET are fast. Switching from Node.js to .NET, a company was able to move from processing 1,000 requests per second…with Node.js, to 20,000 requests per second with .NET Core.





Coderbyte - First Reverse Challenge

2020-03-09 13:09:23

The next challenge I tried on Coderbyte was pretty simple. It required you to return whatever string was passed to the function in reverse order. I chose to do this challenge in javascript. In order to accomplish the goal I used "str.split("")" to turn my string into an array. I then used .reverse() to reverse the array. Finally I used .join("") to turn my array back into a string.




function FirstReverse(str) { 

  var splitString = str.split(""); 
  var reverseArray = splitString.reverse();
  var joinArray = reverseArray.join(""); 
  
  return joinArray;
}



Getting started with Coderbyte

2020-03-09 11:54:20

I decided to start a coding blog to practice coding and keep myself up to date.  I found this website Coderbyte that has various coding challenges -- this seemed like a good place to start.  The first challenge I tried was called "First Factorial."  It was rather easy and required you to write a simple function that returned the factorial for whatever number you passed to the function.  My solution was as follows:



function FirstFactorial(num) { 

  factor = num;

  for (var i = 1; i < num; i++){
    multiplier = num - i;
    factor = factor * (num - i);
  }

  return factor; 
}