There is React, Vue, and Angular, and then there is Svelte. It makes so many things different from all the others, which comes with an awesome developer experience.
Time for an introduction to Svelte, the frontend framework you might fall in love with. 💛
🧵🔽
1️⃣ What is Svelte?
Svelte is a component-based frontend framework like React and Vue that promises:
- Less code
- No virtual DOM
- True reactivity
It delivers on all of these pretty well.
It currently has 47k stars on GitHub and an active community, including 391 contributors.
The community is pretty active, and unlike React, there is no huge corporation backing it.
But no need to worry, Svelte won't vanish anytime soon!
This is a short introduction to Solidity, the programming language used to create smart contracts on the Ethereum VM.
🧵👇🏻
1️⃣ What Is Solidity?
Solidity is an object-oriented, high-level programming language designed to implement smart contracts on the Ethereum Virtual Machine.
It is statically typed, supports inheritance, libraries, and complex user-defined types.
Solidity is a domain-specific language. Besides Python or JavaScript, which are general-purpose languages, Solidity is only meant to be used for smart contract development.
You did some Solidity tutorials, and now you're stuck because you don't know what else to build?
Let me help you out by giving you three simple ideas for dApps, perfect for beginners!
🧵👇🏻
1️⃣ A Voting dApp
Build a dApp that lets users create elections. Any user can start an election and choose a registration period, a voting period, and an ending time.
During the registration period, users can sign up as a candidate.
Once the registration period closes, no one should be able to register anymore. Instead, the voting period starts where anyone can vote for their favorite candidate.
Your frontend should show open elections, the current period, the time remaining, and the candidates.
Do you know what many dApp developers struggle with?
Which data to put on-chain. More data on the chain can drive the cost up. Too much data might render your app unusable. Storing fewer data might not be an option.
Here are some ideas for you to fix this. 🧵👇🏻
1️⃣ Use A Dedicated Database
This approach will make your dApp into an app. If you bring in central data storage, you can circumvent the limits of some blockchains but it doesn't keep the promise of being decentralized.
You can store anything that you can't store on-chain in your database and associate it with a user. Whenever you need that type of data, you fetch it from your database.