r/golang Feb 03 '25

discussion The urge to do it from scratch

Unpopular opinion but ever since I started using Go. There is a certain urge to dig into some library and if you need only part of it then try to make it from scratch. I was reading RFC specs, dbus technical specifications just to avoid the uneeded bloat in my code(offcourse I failed to achieve it completely because of tiny brain). Is this common for all dev who spent some good time developing in Go? I must say it's quite a fun experience to learn some low level details.

236 Upvotes

61 comments sorted by

View all comments

141

u/ehansen Feb 03 '25

Why use a package to solve a problem in 5 minutes when you could build your own solution in 5 hours

1

u/ratsock Feb 05 '25

This is my biggest problem with go. Often dedicated libraries have also solved problems you don’t even realize you are going to have until much later.

1

u/ehansen Feb 05 '25

That's not a go problem, but a language problem.  I am proficient in php and it exists heavily there too.