The One Question bounty closes Thursday 10 December.

Join in
We Them Media logo We Them Media Support us

Web3Bridge Weekly Update Vlog 1

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

Jesse Raymond, a student, shares a third week update. They cover decentralized applications, Solidity basics, the Ethereum virtual machine and opcodes, data types, and variable packing as a way to save gas.

Not by We Them Media Channel: Web3Bridge. Published Saturday 17 September 2022.

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:04 A: My name is Jesse Raymond and I'm a student here at Web3 Bridge. Like I said in my last video, I'll be sharing my weekly progress with all of you. So we just got through our 3rd week here at Web3 Bridge and we've learned more amazing stuff about the Ethereum ecosystem, about the Ethereum blockchain. So some of the stuff we learned, I'll be sharing it quickly in this short video with you. We talked about intro to dApps, which is decentralized application, and we actually architectures of dApps, what makes up a dApp. We got into Solidity basics and fundamentals about Solidity, like variables, types of variables, and data types like reference and value types. We also talked about the EVM, which is the Ethereum Virtual Machine, and how the Solidity code that is written by smart contract developers are being compiled to bytecode and then being read by the EVM through opcodes. So we, we learned a lot basically So we talked about the EVM and how the Solidity code written by smart contract programmers are being compiled down to bytecode and how the EVM reads them through opcodes. Some opcodes are like push 1, push 2, mstore, and others alike. So in Solidity, we get that- we get to learn about, um, data types like the value, the reference type, Learned about strings, learned about bytes, learned about arrays, learned about structs and enums and all that. So one of the most important things that I got, one of the things that got my attention the most in this 3rd week was the concept of variable packing. Yes, and what's variable packing? Variable packing is just like allowing you to optimize gas in your smart contract, you know. Ethereum uses gas in order to calculate transactions or process transactions in the EVM. So in order to optimize that, because gas you have to pay with your money, with the native cryptocurrency, which is Ether. In order to optimize that, there are some concepts you need to like get into when you are writing smart contracts in Solidity or any other accepted language. So variable packing is one of them. And what's variable packing? Variable packing, and we, and we learned that each- there's like slots that are being assigned to variables, state variables in your Solidity smart contract. And if that slot- that slot can contain up to 256 bits, which is 32 bytes. So if your variable or the content of your variable is not up to that, and the EVM fills that remaining space with zeros. So the concept of variable packing comes in place here where you have to make sure that each variable you are like defining your state level, your smart contracts, all sum up to 32 bytes. At least there may be other variables coming after that sum up to 32 bytes just like that in order to like fill them in one slot. And that way now you like save gas in your smart contract, like you don't waste them. And all that. So I'll be sharing my progress with you all as time goes by. So thank you for watching. Thank you.

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.