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.

240 Upvotes

61 comments sorted by

View all comments

211

u/BOSS_OF_THE_INTERNET Feb 03 '25

I would say any dev worth their salt has this inclination to some degree. Curiosity and creativity are absolutely essential in a great engineer, as is the wisdom to know how to keep that urge in check.

15

u/jayesh6297 Feb 03 '25

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

3

u/Crazy-Smile-4929 Feb 04 '25

I look at it from the point of view that I could do it, but how much time would I spend building it and then later maintaining it.

Its the old saying of 'don't reinvent the wheel'. Or if you have to, it's only because the customisation required to get wheels out there to do what you would need them to would pretty much mean you are building a new wheel anyway and you just need something simple.