-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converting C# Basics to use .NET Fiddle (#498)
* Fixing statement on C# updating to be more accurate * Update write-to-console.md Removing need for Main method - use top level statements. * fix date * Changing graphic to remove top level statements * Update comments.md Give them something to do on this page instead of just reading. * fixing date * Fixing grammar and examples * Add heading * Add Replit link * Minor updates to operators lesson * Adding Mac to where C# can run * just types in control-structures * fixing date * clarity updates for methods * cleaning up objects and classes * Fixing typo Co-authored-by: Oliver Zhang <[email protected]> * Fixing grammar Co-authored-by: Oliver Zhang <[email protected]> * Removing extra spac * fixing C# to csharp * moving c# to csharp for code blocks * formatting if, for, and while in intro paragraph * Update and rename using-replit.md to using-netfiddle.md started conversion * Adding new graphic for .NET Fiddle * Finishing the conversion for the Using page * Adding .NET Fiddle screen captures * Fixing a couple of misses * Replacing replit on Print Statements page * replacing replit on Comments page * Replacing replit in variables page * Replacing replit on Operators page * fixing an embedded fiddle in variables * replacing replit on control structures page * replacing replit ion Methods page * replacing replit on Classes page * fixing typo * Updating fiddle instructions * Updating to fix the intro to Fiddle * [Github Actions] Add AI translations * Revert "[Github Actions] Add AI translations" This reverts commit d9f4736. --------- Co-authored-by: Oliver Zhang <[email protected]> Co-authored-by: webreidi <[email protected]> Co-authored-by: Oliver Zhang <[email protected]>
- Loading branch information
1 parent
8d60689
commit c1537de
Showing
13 changed files
with
61 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: "Using .NET Fiddle" | ||
date: 2024-09-17T00:00:00Z | ||
weight: 1 | ||
draft: false | ||
--- | ||
|
||
### Using .NET Fiddle | ||
Today you will be using .NET Fiddle to learn how to code in C#. | ||
|
||
Before we start, let's first understand how the window works. On the left side you have a list of options. These have all been set for you, so you do not need to worry about those. The center of the screen contains code, or instructions for the computer to run. By pressing the **run** button (the button with the triangle in the middle at the top of the frame), you tell the computer to perform the instructions in the code. The results from running the code will be displayed on the bottom of the screen. | ||
|
||
<img src="../images/donetfiddle-overview.png" height="300" alt=".NET Fiddle Window Layout" /> | ||
|
||
Spend some time and get to know the tool below. | ||
|
||
<iframe width="100%" height="475" src="https://dotnetfiddle.net/Widget/ccWNBp" frameborder="0"></iframe> | ||
|
||
### Some tips on C# | ||
|
||
A few important tips: | ||
1. Each line of code ends with a semicolon `;` | ||
2. There will be code in the examples that you don't understand. That is ok, ignore for now and focus on the task you are working on. | ||
|
||
## Saving your work | ||
|
||
If you want to save your work throughout these exercises, you will need to sign up for a .NET Fiddle account, if you do not yet have one. | ||
|
||
Click the button below to sign up for a .NET Fiddle account - you will need an email account in order to sign up. If you already have a .NET Fiddle account, you can login to your account using the below button as well. | ||
|
||
<a class="my-2 mx-4 btn btn-info" href="https://dotnetfiddle.net/SignUp" target="_blank">Sign up for .NET Fiddle</a> | ||
|
||
<img src="../images/dotnetfiddle-signup.png" height="300" alt=".NET Fiddle sign up form" /> | ||
|
||
Then, you can now *fork* the Fiddle, which simply means to make a copy of the program, so that we can make and save our own changes to it. Click on the "Fork" button on the top. | ||
|
||
After forking the Fiddle, you will see a window similar to the one below: | ||
|
||
<img src="../images/dotnetfiddle-window.png" height="300" alt=".NET Fiddle window" /> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters