6/ 🎯 Optimize only after understanding the code
Don't make code harder to read just to save a tiny amount of gas.
First: Correctness
Second: Security
Third: Optimization
🧵 Solidity Gas Saving Tips ⚡
1/ ⛽ Use calldata instead of memory when possible
For external functions, calldata can avoid unnecessary copying and may reduce gas.
Small keyword → potential gas savings.
#Solidity#Web3#Ethereum#SmartContracts#GasOptimization
5/ 🧮 Use unchecked carefully
If you're certain arithmetic cannot overflow or underflow, unchecked can reduce some gas overhead.
But remember:
Gas optimization ≠ sacrificing security. ⚠️
🧪 What is Remix IDE?
Remix is basically a playground for Solidity developers.
بتقدر تكتب، compile، test، وتـdeploy Smart Contracts مباشرة من المتصفح — بدون ما تحتاج setup معقد. 🚀
#Solidity#Ethereum#Web3#SmartContracts
BTC 🆚 ETH ➡️ what's the difference?
Bitcoin is mainly designed as decentralized digital money.
Ethereum is a programmable Blockchain built for smart contract, dApps.
same technology, different goals
#Bitcoin#Ethereum#Web3#blockchainglobalmarkets
الربط بين الBlocks فى ال Blockchain مبهر جدا و عجيب يعنى هنا من اول بلوك اللى بنسميه (Genesis Block) لحد اخر بلوك كل واحد واخد ال hash بتاع اللى قبله مع ال transactions بتاعته مع ال timestamp مع ال nonce و بيطلع block جديد .
و دا بيخلى الdata بتاعتك دايما secure
فكرة ال nonce فى ال Blockchain دى جميله جدا يعنى م الاخر عندك شوية transactions ثابته و عندك رقم شغال تغير فيه لحد ما توصل لرقم أقل من ال target لكن اهم حاجه هنا هى السرعه و ال computational power عشان تلحق و تاخد ال reward
#Web3#Blockchain#Mining
ال hash function بتحول ال data ل fixed-length value و أى تغيير بسيط فى ال input بيؤدى لتغيير ضخم فى ال output
و دا بيخلى ال hashing اهم عنصر فى ال Blockchain security
#Blockchain#cryptography#web3