Blockchain and smart contract development are still relatively new and highly experimental. They require a different engineering mindset than traditional web, or app development where ‘move fast and break things’ has become the norm.
Blockchain development is much more like hardware, or financial service development. Smart contracts are complex instruments that offer the possibility to have self-enforcing contracts including transparent, tamper-proof, and immutable information. They have the authority to allocate high-value resources between complex systems. Often working autonomously. With huge financial loss at risk. This makes smart contracts critical components in these systems. Development of such components requires more investment, design, and effort upfront. Solid engineering practices, rigorous testing, and a strong security mindset.
In a series of blog posts, I’m planning to go through several patterns, practices, and principles that can be applied to blockchain and smart contract development to reduce the risks associated with it.
In this first article, I’ll cover more general engineering practices based on the concepts of Clean Code.
- Naming
- Structure & Ordering
- Documentation & Natspec
- Formatting
- Contracts & Data structures
- Systems
- Standards & Libraries
- Error handling
- Testing
- Security & code analysis
- Continuous Integration
Full blog post at wslyvh.com
Top comments (0)