this post was submitted on 15 Apr 2026
516 points (98.5% liked)

Programmer Humor

32932 readers
533 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 3 years ago
MODERATORS
 
top 9 comments
sorted by: hot top controversial new old
[–] tetris11@feddit.uk 10 points 4 months ago* (last edited 4 months ago) (1 children)

make([] [] byte, 0)

Does this make a double nested byte array of size 0?

As in, every element is made up of two iterators (adjacent cell, and then the nested cell), but the first element doesnt exist yet?

[–] EntirelyUnlovable@lemmy.world 13 points 4 months ago* (last edited 4 months 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 4 points 4 months ago

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

[–] BuboScandiacus@mander.xyz 3 points 4 months ago (2 children)
[–] SkybreakerEngineer@lemmy.world 22 points 4 months ago (1 children)

Looks like Visual Basic Studio

[–] BuboScandiacus@mander.xyz 11 points 4 months ago* (last edited 4 months ago)

I mean the inquisition

(If you answer spain I’m gonna make you eat a life-sized crucifix)

[–] Kratzkopf@discuss.tchncs.de 15 points 4 months ago (1 children)
[–] e_chao@lemmy.world 1 points 2 weeks ago

What language was this written in? Monty VBA