this post was submitted on 11 Feb 2025
643 points (96.9% liked)

Programmer Humor

20039 readers
2062 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
 
(page 2) 29 comments
sorted by: hot top controversial new old
[–] [email protected] 68 points 16 hours ago (4 children)

Git default branch renamed back from main to master

[–] mEEGal 36 points 15 hours ago

and all the others start with "slave/"

load more comments (3 replies)
[–] [email protected] 26 points 16 hours ago* (last edited 16 hours ago) (3 children)

GTFOH with that. 1-indexed arrays?! You monster.

(Mostly joking... Ok, somewhat joking :P )

[–] [email protected] 2 points 7 hours ago (1 children)

Visual Basic used to let you choose if you wanted to start arrays at 0 or 1. It was an app-wide setting, so that was fun.

[–] [email protected] 1 points 7 hours ago (2 children)

I've not heard that name in a long time...

load more comments (2 replies)
[–] [email protected] 33 points 16 hours ago (4 children)
[–] SpaceNoodle 39 points 16 hours ago (3 children)

Lua had been banned from the chat

[–] pelya 17 points 13 hours ago (4 children)

In Lua all arrays are just dictionaries with integer keys, a[0] will work just fine. It's just that all built-in functions will expect arrays that start with index 1.

load more comments (4 replies)
[–] [email protected] 9 points 15 hours ago

Fortran angrily starts typing...

[–] [email protected] 5 points 15 hours ago (1 children)

Don't do my boy Lua dirty like that >:(

[–] [email protected] 14 points 15 hours ago (1 children)

I always felt that Lua was a girl

[–] [email protected] 17 points 14 hours ago

Lua - Portuguese feminine noun for "moon", coming from the Latin "luna"
Luna - Latin, feminine noun (coincidentally identical to the Italian noun, also feminine)

Yup, Lua is a girl.

[–] [email protected] 1 points 8 hours ago

This is one of the few things that I really don't like any Lua. It's otherwise pretty decent and useful.

[–] [email protected] 2 points 11 hours ago

Writing Lua code that also interacts with C code that uses 0 indexing is an awful experience. Annoys me to this day even though haven't used it for 2 years

load more comments (1 replies)
[–] NOT_RICK_SANCHEZ 20 points 16 hours ago

He’s got to be in contact with the CEO of my company, this is trade secret theft if not…

[–] [email protected] 14 points 16 hours ago (1 children)

NGL, this kind of form of putting the decisions the monkey-in-charge is making in a way experts in a field will understand, is a very good way to showcase the absurdity.

[–] NABDad 2 points 12 hours ago

Are there really people capable of understanding this who aren't capable of understanding, for example, "tariffs increase inflation"?

[–] [email protected] 5 points 15 hours ago

I started reading that from the top and got increasingly angry on the way down. That creature is a monster.

[–] tgm 5 points 16 hours ago (3 children)

Haven't heard of the stack address thing, anyone got a TLDR on the topic?

[–] [email protected] 18 points 15 hours ago

https://softwareengineering.stackexchange.com/questions/386194/why-do-we-still-grow-the-stack-backwards

TL;DR: For historical reasons stacks growing down is defined in hardware on some CPUs (notably x86). On other CPUs like some ARM chips for example you can technically choose which direction stacks go but not conforming to the historical standard is the choice of a madman.

[–] [email protected] 6 points 15 hours ago (1 children)

Pretty sure that it’s something a long the lines of “stack begins high, grows down, while heap behind low grows high” when they meet, it’s a stack overflow

load more comments (1 replies)
[–] rockSlayer 0 points 16 hours ago

Dynamic stacks are pretty common in the most popular scripting languages, but considered bad practice from folks who use systems languages

[–] [email protected] 2 points 16 hours ago

didn't know donny was a forth programmer

load more comments
view more: ‹ prev next ›