Git default branch renamed back from main to master
Programmer Humor
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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
GTFOH with that. 1-indexed arrays?! You monster.
(Mostly joking... Ok, somewhat joking :P )
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.
Lua has entered the chat
Lua had been banned from the chat
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.
Fortran angrily starts typing...
Don't do my boy Lua dirty like that >:(
I always felt that Lua was a girl
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.
This is one of the few things that I really don't like any Lua. It's otherwise pretty decent and useful.
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
He’s got to be in contact with the CEO of my company, this is trade secret theft if not…
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.
Are there really people capable of understanding this who aren't capable of understanding, for example, "tariffs increase inflation"?
I started reading that from the top and got increasingly angry on the way down. That creature is a monster.
Haven't heard of the stack address thing, anyone got a TLDR on the topic?
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.
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
Dynamic stacks are pretty common in the most popular scripting languages, but considered bad practice from folks who use systems languages
didn't know donny was a forth programmer