The One Question bounty closes Thursday 10 December.

Join in
We Them Media logo We Them Media Support us

Team Alpha.Eth || Solidity

The picture loads from YouTube. The player loads only when you press Play. Turn on captions in the player if you need them.

Three students from Team Alpha, Mary, Timothy and David, recap more than 30 hours on Solidity. They explain how it compiles to bytecode for the Ethereum virtual machine, and cover data types, integers, strings and addresses, and global, state and local variables.

Not by We Them Media Channel: Web3Bridge. Published Sunday 28 April 2024.

Titles are the owner’s. It plays from their channel.

Transcript

This transcript may contain errors. This video belongs to Web3Bridge. Letters mark each change of speaker.

These are the speakers’ own words. We have not checked their claims.

0:16 A: Hello everyone, welcome back to another video. This is Team Alpha. My name is Mary and I'm with my teammates.

0:23 B: Hi, I'm Timothy.

0:24 C: And I'm David.

0:26 A: So today we're going to talk about Solidity.

0:29 B: As I always say, it was another amazing experience here at 50Weeks. We had 30+ hours learning about Solidity. It was, it was great. So, um, basically Solidity is the programming language that we use to write smart contracts on the Ethereum blockchain, and not just on the Ethereum blockchain, but on most EVM-compatible blockchains. Basically, we as developers, um, write smart contracts using Solidity. Those smart contracts get crunched down, compiled down to bytecode, and that bytecode is what the EVM understands and the Ethereum blockchain understands. So basically, Solidity is kind of like our way of communicating with the blockchain, building our smart contracts, building our dApps, and everything that involves development that we do.

1:13 A: So just like any other language, Solidity has Data types. There are different types of data types in Solidity. Some are the same that are found in other languages and some that are unique. So Solidity have integers, arrays, enums, structs, strings, and other, other data types like addresses. Addresses is unique to Solidity because you use addresses to transact, uniquely identify things on the blockchain. Yeah. On the blockchain. How integers work in Solidity is different from how they work in other languages. Since it's a statically typed language, you have to declare this is an int, this is an int. So there are unsigned and signed integers in Solidity. Signed means they can take a negative value. Unsigned, they cannot take a negative value. So when you declare integers in Solidity, you have to specify the data rate. That will help to save on storage because as we know, storage is very expensive.

2:07 B: Yes, yes.

2:08 A: So when declaring strings as well, you have to specify if it's stored in the memory or storage depending on the scope of your contract or your variable or your function. So you have to specify that kind of thing.

2:22 C: In Solidity, there are 3 types of variables. Yeah, the global variable, the state variable, and the local variables. Yeah, the global variables are made by Solidity. They are provided by Solidity to tell you about details of the block of the blockchain. Yeah. and execution operations. While the state variables are stored on the blockchain, are variables you want to store on the blockchain. Yeah. They are stored in the contract. They are written in the contract and accessible by all the functions. Yeah. And the local variables are stored only inside the function and only run on memory. So they are discarded after, unless stored on disk. pitch.

3:06 B: We will keep you all updated. Until next time, make him a part of you.

3:13 A: Bye!

More from this hub

Something wrong, or a video you want off this page? Write to wethem.xyz@gmail.com and it is fixed or taken down within 48 hours.