Sreejit Sengupto (@sreesen03) 's Twitter Profile
Sreejit Sengupto

@sreesen03

Engineer. Blogs at medium.com/@sreesen2003 . Always learning🚀

ID: 1357620926234447873

linkhttp://sreesen.vercel.app calendar_today05-02-2021 09:23:55

1,1K Tweet

87 Takipçi

204 Takip Edilen

Branko (@brankopetric00) 's Twitter Profile Photo

Reduced Docker image size from 2.1GB to 180MB. Deployments 8x faster. The original Dockerfile: - Started with ubuntu:latest - Installed everything via apt - Included dev dependencies - Copied entire project directory - Left build artifacts - No layer optimization The problems:

Sreejit Sengupto (@sreesen03) 's Twitter Profile Photo

I've been learning Go lately and I feel I am comfortable with the syntax now, but I want to test myself! I built the following - > A simple Todo CLI app. > CRUD APIs using gorilla-mux What is the right approach? or should I move to concurrency?

I've been learning Go lately and I feel I am comfortable with the syntax now, but I want to test myself!

I built the following -
> A simple Todo CLI app.
> CRUD APIs using gorilla-mux

What is the right approach? or should I move to concurrency?
Sreejit Sengupto (@sreesen03) 's Twitter Profile Photo

I just come here on Twitter when I feel like, scroll through post, reply to the ones I like and post content when I feel it's worth sharing. This 100+ replies a day to boost impression is not my kind of thing, SM is not meant to be like that :)

Sreejit Sengupto (@sreesen03) 's Twitter Profile Photo

You can easily generate images, favicons for you application in antigravity! Thanks to Nano Banana. It generated a placeholder avatar and added it in the code, all I had to do is just write the prompt!

You can easily generate images, favicons for you application in antigravity! Thanks to Nano Banana.
It generated a placeholder avatar and added it in the code, all I had to do is just write the prompt!
Sreejit Sengupto (@sreesen03) 's Twitter Profile Photo

My main function hung because commenting out the <-done receiver made my unbuffered channel block goroutines on done <- ... sends. This prevented wg.Done() calls, causing a deadlock. Lesson: Remember channels need active receivers!

My main function hung because commenting out the &lt;-done receiver made my unbuffered channel block goroutines on done &lt;- ... sends. This prevented wg.Done() calls, causing a deadlock.

 Lesson: Remember channels need active receivers!
Sreejit Sengupto (@sreesen03) 's Twitter Profile Photo

Building a multi-agent coding team in LangChain using Gemini models. The team architects, designs, writes code and generates tests. Here’s a screenshot of the team building a Todo app from a single prompt. Will try to implement a sandbox and let the team create files too.

Building a multi-agent coding team in LangChain using Gemini models. The team architects, designs, writes code and generates tests. Here’s a screenshot of the team building a Todo app from a single prompt.

Will try to implement a sandbox and let the team create files too.
Sreejit Sengupto (@sreesen03) 's Twitter Profile Photo

Learnt about go routines, channels, wait groups, cancelling requests with context and wait groups by building a small image downloader. Time to build something good!

Gary Clarke (@garyclarketech) 's Twitter Profile Photo

Methods in Go attach functions to types. The receiver is the part in parentheses before the function name. It tells Go which type owns the method. Instead of passing a Rectangle to a function, you call rect.Area() directly. Keeps related behaviour with your data. Follow me for

Methods in Go attach functions to types. The receiver is the part in parentheses before the function name. It tells Go which type owns the method.

Instead of passing a Rectangle to a function, you call rect.Area() directly. Keeps related behaviour with your data.

Follow me for
Gary Clarke (@garyclarketech) 's Twitter Profile Photo

Creating Go packages: create folder, add package declaration, export functions with uppercase names, then import and use 👍 Keeps your code organised and reusable. Follow me for more Go bytes

Creating Go packages: create folder, add package declaration, export functions with uppercase names, then import and use 👍

Keeps your code organised and reusable.

Follow me for more Go bytes
Sreejit Sengupto (@sreesen03) 's Twitter Profile Photo

I'm learning concurrency in Go, built a web-crawler + image downloader along the way using - - Go routines - Channels, WGs & Workerpools - Context Cancellation Additionally added, - URL Normalization - Retries and Backoff It scrapes a site, extracts images, and downloads them.

I'm learning concurrency in Go, built a web-crawler + image downloader along the way using -
- Go routines
- Channels, WGs &amp; Workerpools
- Context Cancellation

Additionally added,
- URL Normalization
- Retries and Backoff

It scrapes a site, extracts images, and downloads them.
Sreejit Sengupto (@sreesen03) 's Twitter Profile Photo

WaitGroups in Go block execution until a collection of goroutines finish. The mechanism is an internal counter tracking active tasks. Call - - Add() before spawning. - Done() when finished. - Wait() where necessary. Ensures parallel work completes before exiting.

WaitGroups in Go block execution until a collection of goroutines finish. 
The mechanism is an internal counter tracking active tasks.
Call - 
- Add() before spawning.
- Done() when finished.
- Wait() where necessary.
Ensures parallel work completes before exiting.
Anuj Dhar (@anujdhar) 's Twitter Profile Photo

The so-called "Netaji's ashes" (actually of a Japanese soldier) are not going to be brought to India. From Pt Nehru to Modi ji -- each PM has known that Netaji was alive long after his reported death. They have also known that this fact might be known to some foreign nations.

The so-called "Netaji's ashes" (actually of a Japanese soldier) are not going to be brought to India. From Pt Nehru to Modi ji -- each PM has known that Netaji was alive long after his reported death. They have also known that this fact might be known to some foreign nations.
Sreejit Sengupto (@sreesen03) 's Twitter Profile Photo

Built this AI driven content moderation system in Go, uses asynq and Redis for independent processing of texts & images. …ntent-moderation-go-client.vercel.app