The One Question bounty closes Thursday 10 December.

Join in
We Them Media logo We Them Media Support us

Cohort 09 Week 03 Students' Report

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

A Cohort 9 student recaps week three, which covered smart contracts and Solidity. They go through the three kinds of variables, storage, constructors, reference types and type conversion, and finish with the error handlers assert, require and revert.

Not by We Them Media Channel: Web3Bridge. Published Thursday 14 September 2023.

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:09 A: Web3 Bridge Cohort 9, sponsored by Base.

0:11 B: I'm here to give you a recap of my experience here at Web3 Bridge. Last week we delved into smart contracts.

0:22 C: We showed how to, um, use the local virtual machine as well as the same set of libraries. Introduced to Solidity.

0:32 D: What is Solidity?

0:34 C: Solidity is a high-level programming language, a scripting-type high-level programming language that's comparable to MySQL, SQL, and DBMS. DBMS is a relational database formation.

0:44 E: We also went down to look at the different storage types, so we looked at storage, code, and then also we also talked about constructors.

0:52 C: Constructors are functions that do a specific task for you. And then we touched on variables, And we have specifically 3 types of variables. We have the local variable, which is a variable that is declared within the function scope. We have the state variable, which is declared outside the function scope. And we have a global variable, which provides information about the blockchain.

1:15 F: We have the compile time, that is the time that your smart contract that you wrote in Solidity is compiled in. So what are safe variables? So these are the variables that are safe to blockchain directly.

1:33 E: When you say something is a reference type, what that means is that the actual value of that data type is not stored in the machine. What is stored is a pointer to, um, is a pointer to that value or a pointer to the variable that is actually stored. And then for strings, they are not exactly stored directly on the machine. They're actually converted into bytes Before it gets stored into, into the chain. But I also want to talk about conversion. So we have 2 types of conversion. We have implicit conversion and explicit conversion.

2:04 B: Then we define smart contracts as immutable computer programs that run deterministically on the Ethereum virtual machine as part of the world we live in right now.

2:15 E: So we're also going to talk about error handlers. We have assert, require, and revert. These are the 3 types of error handlers that we have. I think this week 3 has been wonderful and I can't wait for week 4. Thank you and have a lovely day.

2:32 A: Web3 Bridge Cohort 9, sponsored by Base.

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.