Fuzail Kazi pfp

Fuzail Kazi

@fuzail

15 Following
5 Followers


Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Today’s Substrate learn: pallets build features, node runs the chain, runtime executes logic on-chain.
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Day 0 of bending the blockchain to my will 🧠⚙️ Kicking off my Substrate journey, time to build the chain, not just deploy on one. Will be dropping learnings, wins, and WTF moments here 🧵
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Would start to learn substrate and will document my journey here
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
"When the owner goes out of scope, the value will be dropped." -Rust book 4.1
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Any substrate builders here?
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Count me in
0 reply
0 recast
1 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Sunny day after a week of rain
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Farcaster speedran this arc 🚀
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Write tests before the smart contract. Saves time.
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Organizing your Rust project? Remember, each crate is a library or binary. Break down code into modules for better readability and maintenance!
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
If my life had a consensus mechanism, I'd vote for more naps. But knowing my luck, it'd be Proof of Work.
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Traits in Rust 🦀 Traits define a set of methods that a type must implement. Think of them as contracts that a type must fulfill. Using traits, you can write functions and methods that operate on many different types, as long as they implement the specific trait. Why Use Traits? Polymorphism: Write generic code that can operate on any type that implements the trait. Code Reuse: Define shared behavior in a trait and implement it for multiple types. Abstraction: Abstract away implementation details, focusing on what a type can do rather than how it does it. In the below example: I have defined a `Summary` trait with a single method summarize. I have implemented this trait for the `Article` struct. I have created a `notify` function that can accept any type of implementation of the `Summary` trait, allowing for polymorphism.
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Understanding Rust's platform-specific integers! 🦀 usize (unsigned) & isize (signed) scale with your machine's architecture. Use cases: Memory management Array indexing Pointer arithmetic Perfect for systems programming!
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
In Rust, you can create type aliases to improve code readability. In the below example, ’Age’ is an alias for ’u8’, making it clear that my_age represents an age. This simplifies understanding and maintains clarity!
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Been stuck with no electricity ffs
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Have you guys built smart contracts for polkadot using ink! framework?
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
Relatable isn't it
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
I used to hear that rust is a difficult language, now when I use it I'm in love with it.
0 reply
0 recast
0 reaction

Fuzail Kazi pfp
Fuzail Kazi
@fuzail
I'm building GenAI based Blockchain development tools. I need a few testers to test and provide feedback.
0 reply
0 recast
0 reaction