Kenny Rogers
1y ago
1 Tip for New Developers to Master Clarity Smart Contracts
Do you want to get better at writing Clarity?
There's 1 underrated tip I would recommend to every developer reading this 👇🏻
1/9
Kenny Rogers
1y ago
Copywork.
I have been writing Clarity for a few years now, and what I can tell you (from experience) is that to be a great Clarity developer you need to understand the syntax, familiarize yourself with all the functions, and learn the best patterns for writing great code.
2/9
Kenny Rogers
1y ago
The first two are easy. Read the Clarity Book and check out the docs. Clarity is a simple language and can be learned quickly.
What's harder is learning how to write good Clarity code to create useful and secure smart contracts.
3/9
Kenny Rogers
1y ago
Copywork is a technique commonly practiced in industries like design and copywriting, but it's underappreciated among developers.
The concept is simple: Find a contract and copy it down line by line. For additional understanding, comment what each line is doing as you go.
4/9
Kenny Rogers
1y ago
By building this muscle memory and familiarizing yourself with patterns other developers use, you'll quickly build up the knowledge and skills to be able to write better contracts yourself.
Need a list of contracts to start with?
Try these 👇🏻
5/9
Kenny Rogers
1y ago
6/9
Kenny Rogers
1y ago
7/9
Kenny Rogers
1y ago
Payment streaming
https://github.com/LearnWeb3DAO/stacks-token-streaming/blob/main/contracts/stream.clar
8/9