@mwrites
Nothing here yet.
The Community
Thank you, appreciate it! Is there a way to make the content area wider? I am now using code screenshots to have the side by side code like in this article: https://blog.matanwrites.com/solana-staking-program-part2#heading-rust Even with tweaking the CSS the content area still stays very small making the screenshots unreadable 馃様
Salut Alexandre! Sorry for the late reply, I was thinking for several days about how to answer this best. Since I am writing about Solana, this is actually the same question I am asking myself every day. I hope this answer will help you. The fact that you cannot write anything from scratch is very very normal. Why is that? You can't really start from scratch, because it is not a blank canvas 馃柤. It's not a python or js script that you open and you start playing with variables, that would be just making rust code. When writing smart contracts in Ethereum or in Solana we are working with the platform we are targeting. 馃摫 Let's think about Android, iOS or MacOS, when you write a program for these platforms you need to understand how the platform works, otherwise you can't really achieve anything than printing logs. That is the same with Ethereum or Solana we are working on top of that platform so we need to understand how to work with it, how to talk with it. The bullets points you mentioned are 馃幆 to understand how to do the Solana gymnastic. If you understand these it means you are ready to take the next step! So what is the next step? The next step is to keep learning how to discuss with Solana. It's about learning the platform system calls. 鈿擄笍 The problem is Anchor, the difficulty here (and I am wondering myself if I will keep writing Anchor programs in the future) is that Anchor hides all these APIs. So it all feels very magic, and you have no ingredients to collect! To start from scratch, you should know the building blocks of Solana. As you do tutorials you are supposed to collect the ingredients that will help you make new dishes (dapps) on your own. But Anchor is too magical and hide all of these ingredients (Solana system calls). What now? You need to collect these ingredients and go further than Anchor: You already know the most important ingredient which is accounts, without this you can't achieve anything. You can collect more of these ingredients here: https://solanacookbook.com/ Unfortunately, there is not a ton of references for these ingredients for now, the way I have been doing it is to look at interesting projects: https://solana.com/ecosystem Then find their github and understand how: A Token Swap works. A NFT works. etc... And by understanding how it works, I mean cut all the noise! 80% of the code is just noise, moving accounts around etc... The key is to find the solana system call that do the hard work: Create Accounts (you already know this). Create a token. Transfer a token. Mint / Burn. Etc.. 馃挭 Stay strong and keep building! Excited to see what you will do! If you want to do more than just storing decentralized data and actually do something that can only be acheived with blockchains, you might want to take a look at my new article: https://blog.matanwrites.com/solana-staking-program
Installing Solana on M1: The build tools evolve quickly, on M1 you might run into an issue when using solana-test-validator or other obscure build issues later. So, install and build Solana from source following the instructions of the official doc or even the github which is often more up to date.