Skip to content

Commit

Permalink
review translation for chapter 1
Browse files Browse the repository at this point in the history
  • Loading branch information
AmazingAng committed Nov 20, 2022
1 parent 8208682 commit 5ecba9e
Show file tree
Hide file tree
Showing 30 changed files with 145 additions and 140 deletions.
39 changes: 20 additions & 19 deletions Languages/en/01_HelloWeb3_en/readme.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# WTF Solidity Tutorial: 1. HelloWeb3 (Solidity in 3 lines)

Recently, I have been relearning Solidity, consolidating the finer details, and also writing a "WTF Solidity Tutorial" for newbies to learn. Lectures are updated 1~3 times weekly.
Recently, I have been revisiting Solidity, consolidating the finer details, and writing "WTF Solidity" tutorials for newbies.

Everyone is welcomed to follow my Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science)
Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science) | [@WTFAcademy_](https://twitter.com/WTFAcademy_)

WTF Academy Discord: [Link](https://discord.gg/5akcruXrsk)
Community: [Discord](https://discord.wtf.academy)[Wechat](https://docs.google.com/forms/d/e/1FAIpQLSe4KGT8Sh6sJ7hedQRuIYirOoZK_85miz3dw7vA1-YjodgJ-A/viewform?usp=sf_link)[Website wtf.academy](https://wtf.academy)

All codebase and tutorial notes are open source and available on GitHub (At 1024 repo stars, course certification is unlocked. At 2048 repo stars, community NFT is unlocked.): [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)
Codes and tutorials are open source on GitHub: [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

-----

## What is Solidity?
## WTF is Solidity?

Solidity is the programming language for Ethereum's virtual machine (EVM), used in smart contract development. I believe that Solidity is an important skill to master in order to navigate the on-chain ecosystems and projects. Blockchain projects are mostly open sourced and once you understand its underlying source code, you are better equipped to avoid rugpull and shady projects.
Solidity is the programming language for Ethereum's virtual machine (EVM), used in smart contract development. I believe that Solidity is an important skill to navigate the on-chain ecosystems and projects. Blockchain projects are mostly open source and once you understand the underlying code, you are better equipped to avoid rugpull and shady projects.

Solidity has 2 distinct features:
Solidity has 2 features:

1. Mastering Solidity helps you get rich and afford a girlfriend.
2. Ignorance towards Solidity puts you at the bottom of the cryptocurrency community hierarchy.
1. Object-oriented.
2. High-level: If you can write smart contract in Solidity, you are the first class citizen of Ethereum.

## Development tool: Remix

I will use Remix to demostrate smart contract development with Solidity. Remix is Ethereum's recommended integrated development environment (IDE) - highly recommended for programming freshies. The IDE allows you to quickly deploy and test smart contracts in the browser, there is no need to download any application to your local storage.
I will use `Remix` to demostrate smart contract development with Solidity. Remix is the integrated development environment (IDE) recommended by Ethereum Foundatoin and is newbie-friendly. The IDE allows you to quickly deploy and test smart contracts in the browser: no need to download any application to your computer.

Website: [remix.ethereum.org](https://remix.ethereum.org)

Expand All @@ -31,7 +31,7 @@ Within Remix, we can see that there are four buttons on the leftmost vertical me

## The first Solidity program

This one is easy, the program runs on 1 line of comment and 3 lines of code:
This one is easy, the program only contains 1 line of comment and 3 lines of code:

```solidity
// SPDX-License-Identifier: MIT
Expand All @@ -41,7 +41,8 @@ contract HelloWeb3{
```

Now, we will breakdown and analyze the source code in detail, understanding the basic strucutre:
The first line is a comment, which denotes the software license (license identifier) used by this code. We are using the MIT license. If you do not indicate the license used, the program can compile successfully but will report an error during compilation. Solidity's comments are denoted with "//", followed by the content of the comment (which will not be run by the program).

1. The first line is a comment, which denotes the software license (license identifier) used by the program. We are using the MIT license. If you do not indicate the license used, the program can compile successfully but will report an warning during compilation. Solidity's comments are denoted with "//", followed by the content of the comment (which will not be run by the program).

```solidity
// SPDX-License-Identifier: MIT
Expand All @@ -53,31 +54,31 @@ The first line is a comment, which denotes the software license (license identif
pragma solidity ^0.8.4;
```

3. Lines 3 and 4 are the smart contract part. Line 3 creates a contract and assigns the contract with the name HelloWeb3. Line 4 is the content of the contract. Here, we created a string variable called `_string` and assign to it "Hello Web3!" as value.
3. Lines 3 and 4 are the main body of the smart contract. Line 3 creates a contract with the name `HelloWeb3`. Line 4 is the content of the contract. Here, we created a string variable called `_string` and assign "Hello Web3!" as value to it.

```solidity
contract HelloWeb3{
string public _string = "Hello Web3!";}
```
Later on, we will introduce the different variables within the Solidity programming language.
We will introduce the different variables in Solidity later.

## Code compilation and deployment

On the code editor page, pressing CTRL+S is a convenient way to compile the code.
In the code editor, pressing CTRL+S to compile the code.

After compiling, click the `Deploy` button on the left menu to enter the deployment page.
After compilation, click the `Deploy` button on the left menu to enter the deployment page.

![](./img/1-2.png)

By default, Remix uses the JavaScript virtual machine to simulate the Ethereum chain and run smart contracts, similar to running a testnet on the browser. Remix will allocate several test accounts to you, each with 100 ETH (test tokens), which can be used at your disposal. You click on `Deploy` (yellow button) to deploy the contract we have written.
By default, Remix uses the JavaScript virtual machine to simulate the Ethereum chain and run smart contracts, similar to running a testnet on the browser. Remix will allocate several test accounts to you, each with 100 ETH (test tokens). You can click `Deploy` (yellow button) to deploy the contract.

![](./img/1-3.png)

After a successful deployment, you will see a contract named `HelloWeb3` below, clicking on the variable `_string`, you can see "Hello Web3!" written in the code.
After a successful deployment, you will see a contract named `HelloWeb3` below. By clicking on the variable `_string`, it will print its value: `"Hello Web3!"`.

## Summary

In the first tutorial, we briefly introduced the Solidity programming language, Remix tools and IDE, and completed the first Solidity program - `HelloWeb3`. Going forward, we will explore further topics on our Solidity journey.
In this tutorial, we briefly introduced `Solidity`, `Remix` IDE, and completed our first Solidity program - `HelloWeb3`. Going forward, we will continue our Solidity journey.

### Recommended materials on Solidity:

Expand Down
9 changes: 5 additions & 4 deletions Languages/en/02_ValueTypes_en/readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# WTF Solidity Tutorial: 2. Value Types

Recently, I have been relearning Solidity, consolidating the finer details, and also writing a "WTF Solidity Tutorial" for newbies to learn. Lectures are updated 1~3 times weekly.
Recently, I have been revisiting Solidity, consolidating the finer details, and writing "WTF Solidity" tutorials for newbies.

Everyone is welcomed to follow my Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science)
Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science) | [@WTFAcademy_](https://twitter.com/WTFAcademy_)

WTF Academy Discord: [Link](https://discord.gg/5akcruXrsk)
Community: [Discord](https://discord.wtf.academy)[Wechat](https://docs.google.com/forms/d/e/1FAIpQLSe4KGT8Sh6sJ7hedQRuIYirOoZK_85miz3dw7vA1-YjodgJ-A/viewform?usp=sf_link)[Website wtf.academy](https://wtf.academy)

Codes and tutorials are open source on GitHub: [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

All codebase and tutorial notes are open source and available on GitHub (At 1024 repo stars, course certification is unlocked. At 2048 repo stars, community NFT is unlocked.): [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

-----

Expand Down
9 changes: 5 additions & 4 deletions Languages/en/03_Function_en/readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# WTF Solidity Tutorial: 3. Function type

Recently, I have been relearning Solidity, consolidating the finer details, and also writing a "WTF Solidity Tutorial" for newbies to learn. Lectures are updated 1~3 times weekly.
Recently, I have been revisiting Solidity, consolidating the finer details, and writing "WTF Solidity" tutorials for newbies.

Everyone is welcomed to follow my Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science)
Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science) | [@WTFAcademy_](https://twitter.com/WTFAcademy_)

WTF Academy Discord: [Link](https://discord.gg/5akcruXrsk)
Community: [Discord](https://discord.wtf.academy)[Wechat](https://docs.google.com/forms/d/e/1FAIpQLSe4KGT8Sh6sJ7hedQRuIYirOoZK_85miz3dw7vA1-YjodgJ-A/viewform?usp=sf_link)[Website wtf.academy](https://wtf.academy)

Codes and tutorials are open source on GitHub: [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

All codebase and tutorial notes are open source and available on GitHub (At 1024 repo stars, course certification is unlocked. At 2048 repo stars, community NFT is unlocked.): [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

---

Expand Down
9 changes: 5 additions & 4 deletions Languages/en/04_Return_en/readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# WTF Solidity Tutorial: 4. Function Output (return/returns)

Recently, I have been relearning Solidity, consolidating the finer details, and also writing a "WTF Solidity Tutorial" for newbies to learn. Lectures are updated 1~3 times weekly.
Recently, I have been revisiting Solidity, consolidating the finer details, and writing "WTF Solidity" tutorials for newbies.

Everyone is welcomed to follow my Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science)
Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science) | [@WTFAcademy_](https://twitter.com/WTFAcademy_)

WTF Academy Discord: [Link](https://discord.gg/5akcruXrsk)
Community: [Discord](https://discord.wtf.academy)[Wechat](https://docs.google.com/forms/d/e/1FAIpQLSe4KGT8Sh6sJ7hedQRuIYirOoZK_85miz3dw7vA1-YjodgJ-A/viewform?usp=sf_link)[Website wtf.academy](https://wtf.academy)

Codes and tutorials are open source on GitHub: [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

All codebase and tutorial notes are open source and available on GitHub (At 1024 repo stars, course certification is unlocked. At 2048 repo stars, community NFT is unlocked.): [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

-----

Expand Down
9 changes: 5 additions & 4 deletions Languages/en/05_DataStorage_en/readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# WTF Solidity Tutorial: 5. Data Storage and Scope

Recently, I have been relearning Solidity, consolidating the finer details, and also writing a "WTF Solidity Tutorial" for newbies to learn. Lectures are updated 1~3 times weekly.
Recently, I have been revisiting Solidity, consolidating the finer details, and writing "WTF Solidity" tutorials for newbies.

Everyone is welcomed to follow my Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science)
Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science) | [@WTFAcademy_](https://twitter.com/WTFAcademy_)

WTF Academy Discord: [Link](https://discord.gg/5akcruXrsk)
Community: [Discord](https://discord.wtf.academy)[Wechat](https://docs.google.com/forms/d/e/1FAIpQLSe4KGT8Sh6sJ7hedQRuIYirOoZK_85miz3dw7vA1-YjodgJ-A/viewform?usp=sf_link)[Website wtf.academy](https://wtf.academy)

All codebase and tutorial notes are open source and available on GitHub (At 1024 repo stars, course certification is unlocked. At 2048 repo stars, community NFT is unlocked.): [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)\
Codes and tutorials are open source on GitHub: [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)
\

-----

Expand Down
9 changes: 5 additions & 4 deletions Languages/en/06_ArrayAndStruct_en/readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# WTF Solidity Tutorial: 6. Array & Struct

Recently, I have been relearning Solidity, consolidating the finer details, and also writing a "WTF Solidity Tutorial" for newbies to learn. Lectures are updated 1~3 times weekly.
Recently, I have been revisiting Solidity, consolidating the finer details, and writing "WTF Solidity" tutorials for newbies.

Everyone is welcomed to follow my Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science)
Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science) | [@WTFAcademy_](https://twitter.com/WTFAcademy_)

WTF Academy Discord: [Link](https://discord.gg/5akcruXrsk)
Community: [Discord](https://discord.wtf.academy)[Wechat](https://docs.google.com/forms/d/e/1FAIpQLSe4KGT8Sh6sJ7hedQRuIYirOoZK_85miz3dw7vA1-YjodgJ-A/viewform?usp=sf_link)[Website wtf.academy](https://wtf.academy)

Codes and tutorials are open source on GitHub: [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

All codebase and tutorial notes are open source and available on GitHub (At 1024 repo stars, course certification is unlocked. At 2048 repo stars, community NFT is unlocked.): [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

-----

Expand Down
9 changes: 5 additions & 4 deletions Languages/en/07_Mapping_en/readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# WTF Solidity Tutorial: 7. Mapping

Recently, I have been relearning Solidity, consolidating the finer details, and also writing a "WTF Solidity Tutorial" for newbies to learn. Lectures are updated 1~3 times weekly.
Recently, I have been revisiting Solidity, consolidating the finer details, and writing "WTF Solidity" tutorials for newbies.

Everyone is welcomed to follow my Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science)
Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science) | [@WTFAcademy_](https://twitter.com/WTFAcademy_)

WTF Academy Discord: [Link](https://discord.gg/5akcruXrsk)
Community: [Discord](https://discord.wtf.academy)[Wechat](https://docs.google.com/forms/d/e/1FAIpQLSe4KGT8Sh6sJ7hedQRuIYirOoZK_85miz3dw7vA1-YjodgJ-A/viewform?usp=sf_link)[Website wtf.academy](https://wtf.academy)

Codes and tutorials are open source on GitHub: [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

All codebase and tutorial notes are open source and available on GitHub (At 1024 repo stars, course certification is unlocked. At 2048 repo stars, community NFT is unlocked.): [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

-----

Expand Down
9 changes: 5 additions & 4 deletions Languages/en/08_InitialValue_en/readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# WTF Solidity Tutorial: 8. Initial Value

Recently, I have been relearning Solidity, consolidating the finer details, and also writing a "WTF Solidity Tutorial" for newbies to learn. Lectures are updated 1~3 times weekly.
Recently, I have been revisiting Solidity, consolidating the finer details, and writing "WTF Solidity" tutorials for newbies.

Everyone is welcomed to follow my Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science)
Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science) | [@WTFAcademy_](https://twitter.com/WTFAcademy_)

WTF Academy Discord: [Link](https://discord.gg/5akcruXrsk)
Community: [Discord](https://discord.wtf.academy)[Wechat](https://docs.google.com/forms/d/e/1FAIpQLSe4KGT8Sh6sJ7hedQRuIYirOoZK_85miz3dw7vA1-YjodgJ-A/viewform?usp=sf_link)[Website wtf.academy](https://wtf.academy)

Codes and tutorials are open source on GitHub: [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

All codebase and tutorial notes are open source and available on GitHub (At 1024 repo stars, course certification is unlocked. At 2048 repo stars, community NFT is unlocked.): [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

-----

Expand Down
9 changes: 5 additions & 4 deletions Languages/en/09_Constant_en/readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# WTF Solidity Tutorial: 9. Constant and Immutable

Recently, I have been relearning Solidity, consolidating the finer details, and also writing a "WTF Solidity Tutorial" for newbies to learn. Lectures are updated 1~3 times weekly.
Recently, I have been revisiting Solidity, consolidating the finer details, and writing "WTF Solidity" tutorials for newbies.

Everyone is welcomed to follow my Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science)
Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science) | [@WTFAcademy_](https://twitter.com/WTFAcademy_)

WTF Academy Discord: [Link](https://discord.gg/5akcruXrsk)
Community: [Discord](https://discord.wtf.academy)[Wechat](https://docs.google.com/forms/d/e/1FAIpQLSe4KGT8Sh6sJ7hedQRuIYirOoZK_85miz3dw7vA1-YjodgJ-A/viewform?usp=sf_link)[Website wtf.academy](https://wtf.academy)

Codes and tutorials are open source on GitHub: [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

All codebase and tutorial notes are open source and available on GitHub (At 1024 repo stars, course certification is unlocked. At 2048 repo stars, community NFT is unlocked.): [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

-----

Expand Down
9 changes: 5 additions & 4 deletions Languages/en/10_InsertionSort_en/readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# WTF Solidity Tutorial: 10. Control Flow, and Solidity Implementation of Insertion Sort

Recently, I have been relearning Solidity, consolidating the finer details, and also writing a "WTF Solidity Tutorial" for newbies to learn. Lectures are updated 1~3 times weekly.
Recently, I have been revisiting Solidity, consolidating the finer details, and writing "WTF Solidity" tutorials for newbies.

Everyone is welcomed to follow my Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science)
Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science) | [@WTFAcademy_](https://twitter.com/WTFAcademy_)

WTF Academy Discord: [Link](https://discord.gg/5akcruXrsk)
Community: [Discord](https://discord.wtf.academy)[Wechat](https://docs.google.com/forms/d/e/1FAIpQLSe4KGT8Sh6sJ7hedQRuIYirOoZK_85miz3dw7vA1-YjodgJ-A/viewform?usp=sf_link)[Website wtf.academy](https://wtf.academy)

Codes and tutorials are open source on GitHub: [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

All codebase and tutorial notes are open source and available on GitHub (At 1024 repo stars, course certification is unlocked. At 2048 repo stars, community NFT is unlocked.): [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

-----

Expand Down
8 changes: 4 additions & 4 deletions Languages/en/11_Modifier_en/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ tags:

# WTF Solidity Tutorial: 11. Constructor & Modifier

Recently, I have been relearning Solidity, consolidating the finer details, and also writing a "WTF Solidity Tutorial" for newbies to learn. Lectures are updated 1~3 times weekly.
Recently, I have been revisiting Solidity, consolidating the finer details, and writing "WTF Solidity" tutorials for newbies.

Everyone is welcomed to follow my Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science)
Twitter: [@0xAA_Science](https://twitter.com/0xAA_Science) | [@WTFAcademy_](https://twitter.com/WTFAcademy_)

WTF Academy Discord, where you can find the way to join WeChat group: [Link](https://discord.gg/5akcruXrsk)
Community: [Discord](https://discord.wtf.academy)[Wechat](https://docs.google.com/forms/d/e/1FAIpQLSe4KGT8Sh6sJ7hedQRuIYirOoZK_85miz3dw7vA1-YjodgJ-A/viewform?usp=sf_link)[Website wtf.academy](https://wtf.academy)

All codebase and tutorial notes are open source and available on GitHub (At 1024 repo stars, course certification is unlocked. At 2048 repo stars, community NFT is unlocked.): [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)
Codes and tutorials are open source on GitHub: [github.com/AmazingAng/WTFSolidity](https://github.com/AmazingAng/WTFSolidity)

-----

Expand Down
Loading

0 comments on commit 5ecba9e

Please sign in to comment.