How to Learn Web3
Tags: web3, blockchain, beginners, programming
Published: 2022-09-01 06:03:23

Hi, I am Francesco, and I share daily content about Web3 (mainly on [Twitter](https://twitter.com/FrancescoCiull4) and [YouTube](https://www.youtube.com/channel/UCBRxDSTfr2aJVODDh4WG_7g))


In this article, I will summarize the steps you can take in order to learn Web3.

___
## Where to Start? 
&nbsp;
When we want to start something new, we need some direction just to don't get stuck at the very beginning. 

But we all are different and we have different ways of learning. 

This article is based on my very personal experience in learning Web3.

___
## Roadmap 
&nbsp;
I don't like Roadmaps! But reading at least one can help us to have an idea of what we are expecting and to check if we are missing something.

Don't get a Roadmap as a bible to trust and to follow blindly 100%, but as a reminder if you are on the right track.

There are many roadmaps, and I am working on one. 

For now I feel recommending the following one:

[Complete Web3.0 and Solidity Development Roadmap 2022](https://vitto.cc/web3-and-solidity-smart-contracts-development-roadmap/))
[![Complete Web3.0 and Solidity Development Roadmap 2022](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s313d7dgkeeir36iun70.jpg)](https://vitto.cc/web3-and-solidity-smart-contracts-development-roadmap/)

___
## Intro Article 
&nbsp;
What about the very first piece of content? 
I don't suggest jumping straight into code but hold our hands for a while and start by getting a general idea of what is Web3.

[This article](https://www.freecodecamp.org/news/what-is-web3) by [Nader Dabit](https://www.youtube.com/channel/UC7mca3O0DmdSG2Cr80sOD7g) on [freecodecamp](https://www.freecodecamp.org/) is a good one to start.

[![What is Web3? The Decentralized Internet of the Future Explained](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8q0g2heg5vrcxv2vd5za.jpg)](https://www.freecodecamp.org/news/what-is-web3)

___ 
## Blockchain Fundamentals 
&nbsp;
Starting with the basics concepts you can't really be wrong.

I will link specific resources for each of them, but don't take this as the only one you have to watch to understand the concepts. Take your time because all the time spent here ios time saved later!

Just remember that the Fundamentals are fundamental, so don't skip this part.

- [Web1, Web2, Web3](https://www.simplilearn.com/what-is-web-1-0-web-2-0-and-web-3-0-with-their-difference-article): A good article about the differences between web1, Web2, and Web3
- [What is a Blockchain](https://youtu.be/_160oMzblY8): an enlightening video to understand the basic of the Blockchain.
- [Distributed Ledger](https://en.wikipedia.org/wiki/Distributed_ledger): It's the consensus of replicated, shared, and synchronized digital data that is geographically spread across many sites, countries, or institutions.
- [Cryptocurrencies basics](https://youtu.be/VYWc9dFqROI): An intro for an introduction to cryptocurrencies.
- [Smart Contracts](https://youtu.be/ZE2HxTmxfrI): Smart Contracts explained simply, in a 4-minutes video.
- [Crypto-Wallets](https://www.coinbase.com/learn/crypto-basics/what-is-a-crypto-wallet): An introduction to crypto wallets, connected to the concept of authentication in Web3.
- [Block Explorers](https://ethereum.org/en/developers/docs/data-and-analytics/block-explorers/): A block explorer is an online tool that enables you to search for real-time and historical information about a blockchain, including data related to blocks, transactions, addresses, and more.
- [Blockchain Oracles](https://chain.link/education/blockchain-oracles): A blockchain oracle is a service that connects smart contracts with the outside world, to feed information from (but also to) the world.
- [NFT Intro](https://youtu.be/FkUn86bH34M): NFTs explained in 4 minutes.
- [DAO Intro](https://youtu.be/KHm0uUPqmVE): A DAO, or a Decentralized Autonomous Organization, is a company set up to run by code on the blockchain.
- [Dapp Intro](https://youtu.be/oPIupbsVimc): dApps, or Decentralized Applications are apps that run using blockchain technology.

___
## Choose a Blockchain 
&nbsp;
Each Blockchain is an ecosystem, with pros/cons.

Choose a Blockchain to understand concepts and apply them, like deciding to use Node.js to build some API.

I suggest to choose Ethereum for many reasons, the main one is that there is more material about it online.

![24 Blockchains](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9bbqoqs2a3mg7p2gqpuh.jpg)

___ 
## Ethereum Concepts 
&nbsp;

Once you choose the Blockchain you can start learning the fundamental of the specific Blockchain. Some concepts overlaps among the blockchains, but they can be slightly different for each of them.

For Ethereum:
- [Accounts](https://ethereum.org/en/developers/docs/accounts/): An account is an entity with an ether (ETH) balance that can send transactions on Ethereum. Accounts can be user-controlled or deployed as smart contracts.
- [Transactions](https://ethereum.org/en/developers/docs/transactions/): Transactions are cryptographically signed instructions from accounts.
- [Blocks](https://ethereum.org/en/developers/docs/blocks/): Blocks are batches of transactions with a hash of the previous block in the chain.
- [Ethereum Virtual Machine (EVM)](https://ethereum.org/en/developers/docs/evm): The EVM allows developers to create Ethereum smart contracts.
- [Gas](https://ethereum.org/en/developers/docs/gas/): Gas is essential to the Ethereum network. It is the fuel that allows it to operate, in the same way that a car needs gasoline to run.
- [Nodes & Clients](https://ethereum.org/en/developers/docs/nodes-and-clients/): Ethereum is a distributed network of computers (known as nodes) running software that can verify blocks and transaction data. The software application, known as a client, must be run on your computer to turn it into an Ethereum node.
- [Networks](https://ethereum.org/en/developers/docs/networks/): Networks are different Ethereum environments you can access for development, testing, or production use cases. 
- [Consensus algorithms](https://ethereum.org/en/developers/docs/consensus-mechanisms/): Consensus mechanisms allow distributed systems to work together and stay secure.

___
## Ethereum Concepts (Advanced) 
&nbsp;
If you want to dive a bit deeper, here are some articles and concepts you can look for:

- [Ethereum Whitepaper](https://ethereum.org/en/whitepaper/): An introductory paper to Ethereum, published in 2013 before its launch.
- [Ethereum Trilemma](https://ethereum.org/en/upgrades/vision/#main-content):
- [EndGame (Vitalik Buterin)](https://vitalik.ca/general/2021/12/06/endgame.html): Vitalik Buterin's vision for a plausible roadmap for Ethereum.
- [Ethereum Yellowpaper](https://ethereum.github.io/yellowpaper/paper.pdf): A formal definition of the Ethereum protocol.
- [Beacon Chain](https://ethereum.org/en/upgrades/beacon-chain): The Beacon Chain is a ledger of accounts that conducts and coordinates the network of stakers.
- [Sidechains](https://ethereum.org/en/developers/docs/scaling/sidechains): A sidechain is a separate blockchain that runs independent of Ethereum and is connected to Ethereum Mainnet by a two-way bridge. 
- [The Merge](https://ethereum.org/en/upgrades/merge): The Merge is the most significant upgrade in the history of Ethereum. Extensive testing and bug bounties were undertaken to ensure a safe transition to proof-of-stake.

These are optional!
___
## Choose a Language 
&nbsp;
- [Solidity](https://docs.soliditylang.org/): good for JavaScript/C++/Python Developers.
- [Vyper](https://vyper.readthedocs.io/): good for Python Developers.
- [Rust](https://www.rust-lang.org/): good choice if you chose Solana as blockchain.

I suggest Solidity because it's the most popular one.
___
## Solidity (a blazing fast intro)
&nbsp;
- It's an object-oriented, high-level language for implementing Smart Contracts. 
- It's statically typed.
- It's a curly-bracket language designed to target the Ethereum Virtual Machine.
- It supports: inheritance, libraries, and complex user-defined types.

This is how a Solidity file (extension: .sol) looks like
```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

contract HelloWorld {
    string public greet = "Hello World!";
}
```

In the next sections, some free resources you can use to learn and start using the solidity programming language.

___
## Solidity Videos <a name="chapter-9"></a>
&nbsp;
Some good YouTube channels to know more about Solidity:

- [Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course](https://youtu.be/gyMwXuJrbJQ): Patrick Collins Javascript Version on [freeCodecamp](https://freecodecamp.org)
- [Solidity, Blockchain, and Smart Contract Course – Beginner to Expert Python Tutorial](https://youtu.be/M576WGiDBdQ): Patrick Collins Python version
- [Dapp University](https://www.youtube.com/c/DappUniversity): Gregory (Dapp University) 
- [Smart Contract Programmer](https://www.youtube.com/channel/UCJWh7F3AFyQ_x01VKzr9eyA): A good  channel with videos straight to the point.

___
## Solidity tools <a name="chapter-10"></a>
&nbsp;
- [Remix IDE](https://remix-project.org/): A very good to get started without setting up a local environment)
- [Solidity Docs](https://docs.soliditylang.org/): Solidity Official documentation
- [Solidity Cheatsheet](https://drive.google.com/file/d/17npgE1ZWmKnJPQbN4nB2A51uxEXw9YWB/view)
 [![Solidity Cheatsheet](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hlxh73qqk4spbig7chel.png)](https://drive.google.com/file/d/17npgE1ZWmKnJPQbN4nB2A51uxEXw9YWB/view)
- [Cryptozombies](https://cryptozombies.io): a nice online tutorial to get started.

___
## Use a framework <a name="chapter-11"></a>
&nbsp;
Once you get the basics, you can dive deep using these tools and working in a local environment.


- [Metamask](https://metamask.io/): MetaMask is a software cryptocurrency wallet used to interact with the Ethereum blockchain.
- [Vs Code Solidity Extension](): VS Code extensions that integrates with the Nethereum code generator to create Contract integration definitions.
- [Truffle](https://trufflesuite.com/docs/truffle/): Truffle is a development environment, asset pipeline, and testing framework for developing smart contracts.
- [Hardhat](https://hardhat.org): Hardhat is an Ethereum development environment. Compile your contracts and run them on a development network.
- [Brownie](https://eth-brownie.readthedocs.io): Brownie is a Python-based development and testing framework for smart contracts.
- [Foundry](https://getfoundry.sh/): Foundry is a fast, portable and modular toolkit for Ethereum application development written in Rust.

___
## Connect the Dapp to Frontend <a name="chapter-12"></a>
&nbsp;
Are you a front-end developer? GOOD!

For once, you don't have to learn a new framework, just use a library to interact with the blockchain!

You can use any frontend Framework (React, Vue, Angular, Svelte...)

Use:
- [Web3.js](https://web3js.readthedocs.io/): web3.js is a collection of libraries that allow you to interact with a local or remote ethereum node using HTTP, IPC or WebSocket.
- [Ether.js](https://docs.ethers.io/): The ethers.js library aims to be a complete and compact library for interacting with the Ethereum Blockchain and its ecosystem.

___
## Decentralized storage <a name="chapter-13"></a>
&nbsp;
Here are some examples of storage you can use to store your data on the blockchain (something similar to databases).

- [IPFS](https://docs.ipfs.tech/): The InterPlanetary File System is a protocol, hypermedia and file sharing peer-to-peer network for storing and sharing data in a distributed file system.
- [Arweave](https://www.arweave.org/): Arweave is a data storage protocol. It's built on a technology called "blockweave".
- [FileCoin](https://filecoin.io/): Filecoin is an open-source, public cryptocurrency and digital payment system intended to be a blockchain-based cooperative digital storage and data retrieval method. It builds on top of IPFS, and it allows to rent unused hard drive space.

They are a p2p network of user-operators who hold a portion of the overall data.

___
## Mid-level tools <a name="chapter-14"></a>
&nbsp;
Most of them are not complicated. To be honest, they simplify the process, but it's better to discover them after understanding the basics.

- Testing Tools: [Waffle](https://getwaffle.io/), [Ganache](https://trufflesuite.com/ganache/)
- [OpenZeppelin](https://www.openzeppelin.com/)
- [WalletConnect](https://walletconnect.com/): WalletConnect is an open source protocol for connecting decentralised applications to mobile wallets with QR code scanning or deep linking.
- [Chainlink](https://chain.link/): Chainlink is a decentralized oracle networks provide tamper-proof inputs, outputs, and computations to support advanced smart contracts on any blockchain.
- [TheGraph](https://thegraph.com): The Graph is an indexing protocol for organizing blockchain data and making it easily accessible with GraphQL.

___
## SDKs 
&nbsp;
After getting an Idea of what a Dapp is and making some examples, you can decide you want some support and don't write everything on your own.

Here are 3 good ones you can check:
- [Alchemy SDK](https://www.alchemy.com/sdk): to connect your Dapp to the blockchain.

```javascript
import { Alchemy } from 'alchemy-sdk';

// Using default settings - pass in a settings object to specify your API key and network
const alchemy = new Alchemy();

// Access standard Ethers.js JSON-RPC node request
alchemy.core.getBlockNumber().then(console.log);

// Access Alchemy Enhanced API requests
alchemy.core
  .getTokenBalances('0x3f5CE5FBFe3E9af3971dD833D26bA9b5C936f0bE')
  .then(console.log);

// Access the Alchemy NFT API
alchemy.nft.getNftsForOwner('vitalik.eth').then(console.log);

// Access WebSockets and Alchemy-specific WS methods
alchemy.ws.on(
  {
    method: 'alchemy_pendingTransactions'
  },
  res => console.log(res)
);
```

- [thirdweb TypeScript  SDK](https://portal.thirdweb.com/typescript): a support SDK to write Smart Contracts. This is the Typescript version
```javascript
// my_script.js
import { ThirdwebSDK } from "@thirdweb-dev/sdk";

// instantiate the SDK in read-only mode (our example is running on `polygon` here)
// all major chains and testnets are supported (e.g. `mainnet`, `rinkeby`, `goerli`, 'polygon', 'mumbai', etc.)
const sdk = new ThirdwebSDK("polygon");

// access your deployed contracts
const nftDrop = sdk.getNFTDrop("0x...");
const marketplace = sdk.getMarketplace("0x...");

// Read from your contracts
const claimedNFTs = await nftDrop.getAllClaimed();
const listings = await marketplace.getActiveListings();
```

- [Moralis SDK](https://v1docs.moralis.io/moralis-dapp/connect-the-sdk/connect-with-react): How to connect to a Moralis Server using the Moralis SDK guide.

This is how to initialize the Moralis SDK

```javascript
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";

ReactDOM.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
  document.getElementById("root")
);
```

___
## Build projects 
&nbsp;
Build projects! I leave a couple of places where you can get inspiration for building projects, but there are way more on YouTube 

- [Moralis projects](https://moralis.io/projects/)
- [Alchemy - Road to Web3](https://docs.alchemy.com/docs/welcome-to-the-road-to-web3)

___
## Build in Public <a name="chapter-17"></a>
&nbsp;
Build in Public!

Not a Web3-specific thing, but if you build in public, there are some benefits for you:

- You get a better understanding of the concepts.
- You get an audience.
- You connect with people with the same interests.

All I do is public:
https://github.com/FrancescoXX/free-Web3-resources

[Here a video of me followign a tutorial on LearnWeb3 DAO](https://youtu.be/1lcLLHzQDCg)
[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fchnav2p4xieogoawwvk.png)](https://youtu.be/1lcLLHzQDCg)


___
## Join a Community! 
&nbsp;
Last but not least, joining a community can be super useful.

Good examples:
- [LearnWeb3](https://learnweb3.io/)
- [Developer_Dao](https://www.developerdao.com/)
 
If you are a Content Creator, You can also [join 4C, the Cool Community of Content Creators](https://discord.com/invite/cRjhjFRRre), the community I founded.

We have a specific section for Web3.

If you are still reading, just leave a feedback.

___

## Thank you!
&nbsp;
Thanks for reading!
You can [find Francesco here](https://linktr.ee/francescociulla)