this post was submitted on 15 Apr 2026
333 points (97.4% liked)

Programmer Humor

31217 readers
964 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] EntirelyUnlovable@lemmy.world 10 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

This looks like Go, so I think this would be a 2d array (or slice as Go calls it) of bytes, with starting length 0. Go has an optional 3rd parameter for capacity

[โ€“] tetris11@feddit.uk 2 points 2 weeks ago

Interesting, thanks! I find it weird for it to be assigned to a buffer variable if no initial fixed size is given