Image default
SolanaWeb3

What’s Solana?

We’re going to spend a ton of time diving into Solana in this project and you’ll have plenty of time to learn about what the heck Solana is by actually building on it.

I do think it’s valuable to have a base level understanding of some of the concepts and get a high-level picture of how stuff is working on Solana, though! So, let’s do that .

Programs

On Solana, we write “Solana programs”.

Note: This is sorta like a smart contract if you know about Ethereum!

A Solana program is just a piece of code that lives on the blockchain. The blockchain is a place where anyone can run code for a fee. You can think of the blockchain like AWS or Heroku. But, instead of being run by a big corporation these chains are run by “miners”. In the world of Solana we actually call them “validators”.

Anther Definition.

This is a tough question. It also may be the wrong question. Sorry, I know its not the answer you want but the real answer is — it depends.

For example — today, we don’t really talk about which backend server language is the “best”.

We just pick the one we are most comfortable with or the one that makes the most sense given our use case. For example, if speed is your goal — writing your backend in Go may make sense. If you just want to get something off the ground, something like Node or Ruby might be better.

Accounts

On Solana, programs are “stateless”. This is very different from Ethereum. On Ethereum, you write “smart contracts” and contracts actually maintain state where you can actually store data on variables directly on the contracts.

On Solana, how it works is users have “accounts” and Solana programs can interact with “accounts” users own. One user can own 1000s of accounts. The easiest way to think of an account is sort of like a file. Users can have many different files. Developers can write programs that can talk to these files.

The program itself doesn’t hold a user’s data. The program just talks to “accounts” that hold the user’s data.

That’s pretty much all the theory we really need to go over right now! If it still doesn’t make sense, don’t worry! This took me a while to grasp. I think it makes more sense when we hop into the code.

“Should I use Solana or Ethereum?”

This is a tough question. It also may be the wrong question. Sorry, I know its not the answer you want but the real answer is — it depends.

For example — today, we don’t really talk about which backend server language is the “best”.

We just pick the one we are most comfortable with or the one that makes the most sense given our use case. For example, if speed is your goal — writing your backend in Go may make sense. If you just want to get something off the ground, something like Node or Ruby might be better.

check on twitter

Related posts

The Different Stages Of the Blockchain

admin

What’s web3

admin

What is the Blockchain? How does it work?

admin

Leave a Comment