ThatSneakyCoder Profile Banner
Shubh Srivastava Profile
Shubh Srivastava

@ThatSneakyCoder

Followers
182
Following
1K
Media
127
Statuses
778

Backend engineer | I share informational posts on modern backend Trends, Tools and, AI

India
Joined October 2024
Don't wanna be here? Send us removal request.
@ThatSneakyCoder
Shubh Srivastava
16 days
A strong trend shows many modern startups are choosing Golang for their backend. Here's a curated list of must learn tutorials to help you become the best at backend golang development.
Tweet media one
9
68
577
@ThatSneakyCoder
Shubh Srivastava
7 hours
Successfully integrated openFGA into my golang app. Next up will be updating most of my routes to work strictly with right permissions. Will improve business logic over permission set as well.
Tweet media one
Tweet media two
@ThatSneakyCoder
Shubh Srivastava
13 hours
Will be dropping a full fledged tutorial on how to integrate OpenFGA in your Golang application soon.
Tweet media one
0
0
11
@ThatSneakyCoder
Shubh Srivastava
13 hours
Will be dropping a full fledged tutorial on how to integrate OpenFGA in your Golang application soon.
Tweet media one
1
1
6
@ThatSneakyCoder
Shubh Srivastava
15 hours
1. "Efficiency at the Linux Command Line" - Daniel J Barret 2. "Fundamentals of Software Architecture" - Mark Richards and Neal Ford 3. "Computer Systems" - RE Bryant
@aistronomer
Sujal
2 days
What's that one technical book that genuinely made you a better developer?
0
0
2
@ThatSneakyCoder
Shubh Srivastava
16 hours
+plumbing +HVAC +electrical wiring +ducting +sesmic Calculation +Foundation
@jerkeyray
Jerkeyray
1 day
backend development is just digital plumbing
0
1
3
@ThatSneakyCoder
Shubh Srivastava
20 hours
I have disabled major auto-completing in my vscode. Only suggestions show up for some items.
0
0
2
@ThatSneakyCoder
Shubh Srivastava
1 day
That's it. Simple 10 steps. If you liked it. Consider following or engaging with the post. Don't forget to re-post.
0
0
1
@ThatSneakyCoder
Shubh Srivastava
1 day
You will get a json response (resp) from twilio as shown in the image. That "status" field will tell you whether the otp entered was correct or not. Use this info to intimate the user and(or), use it further in the backend. (10/n)
Tweet media one
1
0
1
@ThatSneakyCoder
Shubh Srivastava
1 day
Now, for the final step, we are at "Checking The Verification Token". You need the OTP and, phone number of user (should be sent by the frontend) for this. Once you get that, call the verification api of twilio as shown in the image below. (9/n)
Tweet media one
1
0
1
@ThatSneakyCoder
Shubh Srivastava
1 day
The below code is for "Sending a Verification Token" to the user (otp). Note that this only sends the otp on your mobile and deducts your credit from twilio account but, does not verify it. (8/n)
Tweet media one
1
0
0
@ThatSneakyCoder
Shubh Srivastava
1 day
Note that sending an otp and verifying it is 3-step process when working with twilio. We have already finished step 1 through the dashboard where we created our service but, it can also be done through code like in the image below. (7/n)
Tweet media one
1
0
1
@ThatSneakyCoder
Shubh Srivastava
1 day
Now in your Golang application, add the below two imports as shown and, hit the following command: $ go mod tidy You can also use "go get ..." to download these libraries. (6/n)
Tweet media one
1
0
1
@ThatSneakyCoder
Shubh Srivastava
1 day
This step is important. You will get your "Service SID" here. This SID is important to put in your Golang code because, twilio uses it to check your account. We're pretty much done with twilio's website here. (5/n)
Tweet media one
1
0
1
@ThatSneakyCoder
Shubh Srivastava
1 day
"SMS" option will be selected by default. Enter a phone number verified by twilio (or, just enter your own phone number). You can test ready-made code provided by twilio. You should receive test otp on the mentioned phone number. Now go to the configuration page. (4/n)
Tweet media one
1
0
1
@ThatSneakyCoder
Shubh Srivastava
1 day
Your dashboard will look as shown in the image. You will be given about 15USD free credits as a first time user. Click the "Start building" button. (3/n)
Tweet media one
1
0
1
@ThatSneakyCoder
Shubh Srivastava
1 day
You will need to enter your phone number. This will be used for authentication and, testing (required later for otp testing). You'll be given a recovery code. Save it. (2/n)
Tweet media one
1
0
1
@ThatSneakyCoder
Shubh Srivastava
1 day
The process is simple. Sign up on twilio's website by entering your information. (1/n)
Tweet media one
1
0
1
@ThatSneakyCoder
Shubh Srivastava
1 day
You *NEED* to verify your users if you're building a project that deals with sensitive user data. One such way is through mobile OTP verification. Below is step by step method to setup your Golang app with Twilio to verify users 👇
Tweet media one
2
0
6
@ThatSneakyCoder
Shubh Srivastava
1 day
Google Gemini still is far behind in terms of producing good code.
0
0
1
@ThatSneakyCoder
Shubh Srivastava
1 day
vro ain't no way I dealin with these many screen (+ 2 terminals on my laptop)
Tweet media one
2
0
5
@ThatSneakyCoder
Shubh Srivastava
1 day
Database design so far. I am going to implement full fledged RBAC through OpenFGA engine soon.
Tweet media one
2
0
20