Global Feed Post Login
Replying to Avatar ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ

yeah, the longer i use #golang the more i get it too...

the only thing i warn people about go is that maps and slices are funny with concurrency and be really careful about where you put channel operations and goroutines

there can be a tendency to go nuts on those two things, i think every go programmer goes through a phase of it

oh yeah, sometimes some people go nuts with interfaces - don't make them unless you already have a concrete type, or a plan to make multiple types, more often you don't need them and they create an unhelpful layer of indirection

Avatar
ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ 1y ago

the usual trigger for making interfaces fro me these days is noticing that i just made three sets of methods for types that were the same, then i am facepalm

Reply to this note

Please Login to reply.

Discussion

Avatar
Tristan Brice Velloza Kildaire 1y ago

Yep! Same

Thread collapsed