A development framework is a platform which makes it easy to build applications. Just like every technology needs a development framework, so do DApps.
Truffle, Hardhat, Embark, Brownie are a few popular frameworks used by blockchain engineers.
Well now how does one select a framework from these? Which one is the best framework to get started with?
To answer these questions let us try understanding what all these frameworks have to offer and how they are different from each other. The following excerpts are referred from the docs of these development environments.
- Truffle with 12k Github stars has a built-in smart contract compilation, linking, deployment and binary management(managing binary files).
- Contract testing is automated which makes it hassle free.
- The framework supports scripting and is scalable.
- It also provides Network management for deploying to any number of public & private networks.
- It has the features of Package management with EthPM & NPM, using the ERC190 standard.
- Interactive console for direct contract communication.
- Integration becomes easy because of configuration support in the build pipeline.
- It includes an external script runner that executes scripts within a Truffle environment.
- Hardhat with 2.1k stars on Github has the same features of building, compiling, and testing smart contracts as that of Truffle.
- It focuses on Solidity debugging, featuring stack traces, console.log() and explicit error messages when transactions fail.
- It's designed around the concepts of tasks and plugins. Every time you're running Hardhat from the CLI you're running a task.
- Workflows and plugins are customizable in Hardhat.
- Deploying and redeploying of contracts is taken care while you're making changes to your code in Embark.
- Client side application can be built within Embark itself.
- Embark integrates with decentralized storages like IPFS and helps you distributing your app in the network.
- Peer-to-peer messaging is possible via communication protocols like Whisper.
- Cockpit is a companion application which helps in developing and debugging decentralized applications.
- For Python lovers Brownie which has 1.3k stars on github is a great option of development and testing framework.
- It supports Solidity and Vyper.
- Contract testing is done via pytest.
- The debugging tools are similar to that of truffle but with python-style tracebacks and custom error strings.
- It also has a Built-in console for quick project interaction and support for ethPM packages
Everyday there are newer developments environments coming up and the above are just the ones frequently used by the community.
This is my first blog under my 100days of Web3 journey.
For more tweets on Web3, Dev Advocacy and API supremacy you can follow me on Twitter
Top comments (0)