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
Tristan Brice Velloza Kildaire 1y ago

Slices have to be handled carefully in D to, or well by carefully I mean one must think when using them.

Reply to this note

Please Login to reply.

Discussion

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

yeah, i remember when i first used a language with dynamic arrays

i kinda prefer static arrays to be honest, i always look at the code and think to myself "is this probably going to need a reallocation?" and try to avoid that

Thread collapsed