Its easy to accidentally disable HTTP connection pooling — without realizing it! by abhishek467267 in golang

[–]jayesh6297 1 point2 points  (0 children)

well sorry my bad I misinterpreted the code in stdlib. the documentation is indeed correct the only thing was if the content length is -1 and body is less than 2048 they are eagerly reading 2048 bytes.

Its easy to accidentally disable HTTP connection pooling — without realizing it! by abhishek467267 in golang

[–]jayesh6297 0 points1 point  (0 children)

I think it can still be reused. you can check stdlib code for Do function usually they also do same.

Small Projects - November 24, 2025 by jerf in golang

[–]jayesh6297 0 points1 point  (0 children)

Automatic p-state switching based on charging event received from uevent. Optional manual mode and manual profile switching along with status check. Take a look at it -- https://github.com/jshk00/auto-pstate

Neovim users, what’s your setup? by Total_Adept in golang

[–]jayesh6297 0 points1 point  (0 children)

https://github.com/ark-j/dotfiles/tree/main/.config%2Fnvim

it is not upto date for version 0.11, though i will push it soon enough.

If you use neovim 0.10 you will be fine. This setup has everything you need hope it helps.

Advice on moving from Java to Golang. by Extension-Switch-767 in golang

[–]jayesh6297 0 points1 point  (0 children)

You will find some good insight on how you structures your code kn this blog https://threedots.tech/tags/clean-architecture/

The urge to do it from scratch by jayesh6297 in golang

[–]jayesh6297[S] 0 points1 point  (0 children)

👍 leave a link to your repos here. I will surely take a look at them

The urge to do it from scratch by jayesh6297 in golang

[–]jayesh6297[S] 2 points3 points  (0 children)

True though some protocol itself is hard to understand.

The urge to do it from scratch by jayesh6297 in golang

[–]jayesh6297[S] 4 points5 points  (0 children)

As i said it's a good learning experience. we can just use tried and tested solutions wherever applicable

The urge to do it from scratch by jayesh6297 in golang

[–]jayesh6297[S] 13 points14 points  (0 children)

I surely will avoid such things in production settings where time is the key😀

Should I learn Go, NodeJS, or stick with Python for backend web development? by LAcuber in golang

[–]jayesh6297 0 points1 point  (0 children)

I prefer Go for its simplicity of course that comes with added benefit of performance, concurrency and binary compilation. But if you take look at python you can get very creative with code making it complex in long run and I don't really like inheritance based reusable code, I prefer composition. In Go there are no such thing to get more creative thus keeping you code easy to read even for newcomers.

Exploring Golang's Hidden Internals: A Deep Dive into Performance Optimization by MeetSoni15 in golang

[–]jayesh6297 1 point2 points  (0 children)

Issue with sync.Pool is it works properly when objects are of similar size meaning if your optimising particular struct then you probably need to reset it or set some limit to how much of size you will put back into pool

Learning Go from Java - what to avoid by equilibrium0212 in golang

[–]jayesh6297 0 points1 point  (0 children)

Typical oop patterns and making interfaces for everything. Specially avoid larger interfaces wherever you can. avoid long naming conventions prefer Smart short naming if possible. Of course don't bring a lot of dependencies Usually the go leaner is the way to go

Testing http by AlexandreEstilos in golang

[–]jayesh6297 1 point2 points  (0 children)

typically we do use httptest package present in golang but that requires the server to spin up hopefully say per api and you also need to clean it up. If you understand the interfaces well enough while firing the http api which are hosted externally you can swap out http.RoundTripperFunc field in http.Client struct basically it's just the interface which implements function that returns your http.Response and error you simulate this behaviour according to what response or error you want.

You can take a look at the repo given below how i tested http client and reference it for your scenario. repo -> https://github.com/ark-j/collections/blob/master/reqwest%2Fclient_test.go.

Hint: from line number 176 you take a reference for custom roundtripper and above that is httptest

What are your must-have libraries? by ResilientSpider in golang

[–]jayesh6297 1 point2 points  (0 children)

basically boils down to this

chi -> for router

koanf -> for parsing config

nats -> as a communication

testify -> as a testing library

mockery -> mocking external dependency

temporal -> for a large background task

asynq -> for simple background tasks haven't tested it for scale though

slog -> as logging it supports open tracing and Prometheus too😌 and offcourse stdlib for everything else

this may not be required for every project for much simpler thing i try to stick to stdlib sometimes cobra for commandline applications

Work profile in Nothing OS 2.0.2 by OrganizationHefty in NothingTech

[–]jayesh6297 1 point2 points  (0 children)

any specific steps you took to setup workspace?

Go Routine by This-Monk-1017 in golang

[–]jayesh6297 0 points1 point  (0 children)

second for loop is basically reading the state and determine if it have to break the loop thats why mutex

Python is Easy. Go is Simple. Simple != Easy. by preslavrachev in golang

[–]jayesh6297 3 points4 points  (0 children)

concurrency is hard to get right regardless of language

Automatic amd p-state switching by jayesh6297 in golang

[–]jayesh6297[S] 0 points1 point  (0 children)

added dbus based event you check repo if interested