DEV Community

Shaikh Sadi
Shaikh Sadi

Posted on

My Web3 Journey with Solana

Intro

Before joining my current company I had very little to no knowledge about blockchain and nft related stuff. Although it was in my task list of 2022, But not because I wanna learn it , rather I wanted to ignore it 😁. 

Let me clear what i mean. I was seeing a lot of hype around blockchain at that time. Just like we are watching around bun currently. So, what i do is I normally ignore the initial hype, the reason behind this is simple as a developer you can't go after every hype because new technology emerges on a regular basis. And you can't learn all of them. I am peaky on new tech to save time and energy.

I remember when i was learning javascript . I was hearing huge hype around nextjs. I was confused because i just learned about versions of javascript. Like ES5, ES6 and ES-Next. So i was like isn't nextjs same as es-next. Why people are talking so much about this 😅. I eventually learned nextjs after react .When initial hype is gone and i have seen the potential of it.

Learning Solana

Well enough gossip , lets come to the point . Although blockchain was not in my list I started learning it because of my job and yes it was solana . As you know solana program (smart-contract) uses rust programing language (there is way to do it in python,c also). At that point I was also beginner of rust, Just completed tutorials from rust book . So, I knew its gonna be hard because of the two unfamiliar technology at the same time.

I was a bit lucky because at the beginning there was another developer (part time) who was doing the program (smart-contract) related development on rust. So my task was to integrate solana program with nextjs. 
My initial struggle was to grasp the idea of how the program is working (less important), and how it will work in frontend, what should be the project structure , what is the best practice about managing instructions, transactions all those stuff. Unfortunately resources on internet are not enough about solana and I had to surf a lot find any answer and waste a lot of time.

I was not comfortable with Buffer or Raw Data. But after this initial phase my fear was gone and I was confident parsing accounts . Although we were using anchor , but not sure why i was manually parsing data 😅. Maybe because i wanted to know how its working.

After initial integration , most of the things were working, its was not the best but it was working 😛. But after the review we came to know that there is a big gap between whats been asked and what is delivered , you can't blame me it was the rust program 😂. So we had to update the program and lead programmer was not available. After waiting couple of weeks I started taking on it, And completed the task very smoothly and I started living happily here after. What !! hell no…It was full of struggle and a complete misery 🥺.

Will be continued…

Top comments (0)