966
top 50 comments
sorted by: hot top controversial new old
[-] monsdar@infosec.pub 92 points 2 months ago

Git default branch renamed back from main to master

[-] mEEGal@lemmy.world 46 points 2 months ago

and all the others start with "slave/"

[-] Artyom@lemm.ee 9 points 2 months ago

Merge me senpai

[-] phcorcoran@lemmy.world 15 points 2 months ago

(Someone else made it but I can't find the source)

load more comments (3 replies)
[-] ramjambamalam@lemmy.ca 72 points 2 months ago* (last edited 2 months ago)
  • Push directly to master, not main
  • No command line args, just change the global const and recompile
  • No env vars either
  • Port numbers only go up to 5280, the number of feet in a mile
  • All auth is just a password; tokens are minority developers, not auth, and usernames are identity politics
  • No hashes – it's the gateway drug to fentanyl
  • No imports. INTERNAL DEVELOPERS FIRST
  • Exceptions are now illegal and therefore won't occur, so no need to check for them
  • SOAP/XML APIs only
  • No support for external machines. If it's good enough for my machine, it's good enough for yours.
[-] rikudou@lemmings.world 17 points 2 months ago

Exceptions are now illegal and therefore won't occur, so no need to check for them

Ah, I see you've met C++ developers.

[-] excral@feddit.org 8 points 2 months ago

No command line args, just change the global const and recompile

Nah, don't use global variables, magic values everywhere. And don't use const whatsoever, we need to move fast and break things, we can't let something immutable stop us

load more comments (1 replies)
[-] shortrounddev@lemmy.world 60 points 2 months ago

Main branches will be renamed Master

[-] iAvicenna@lemmy.world 7 points 2 months ago

Nope Main branches will be renamed Daddy

[-] nickwitha_k@lemmy.sdf.org 32 points 2 months ago* (last edited 2 months ago)

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

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

[-] db0@lemmy.dbzer0.com 40 points 2 months ago
[-] SpaceNoodle@lemmy.world 50 points 2 months ago

Lua had been banned from the chat

[-] pelya@lemmy.world 22 points 2 months ago

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.

[-] xmunk@sh.itjust.works 15 points 2 months ago

Your argument isn't making me any happier - it just fills me with more rage.

[-] my_hat_stinks@programming.dev 9 points 2 months ago

That's slightly misleading, I think. There are no arrays in Lua, every Lua data structure is a table (sometimes pretending to be something else) and you can have anything as a key as long as it's not nil. There's also no integers, Lua only has a single number type which is floating point. This is perfectly valid:

local tbl = {}
local f = function() error(":(") end

tbl[tbl] = tbl
tbl[f] = tbl
tbl["tbl"] = tbl

print(tbl)
-- table: 0x557a907f0f40
print(tbl[tbl], tbl[f], tbl["tbl"])
-- table: 0x557a907f0f40	table: 0x557a907f0f40	table: 0x557a907f0f40

for key,value in pairs(tbl) do
  print(key, "=", value)
end
-- tbl	=	table: 0x557a907f0f40
-- function: 0x557a907edff0	=	table: 0x557a907f0f40
-- table: 0x557a907f0f40	=	table: 0x557a907f0f40

print(type(1), type(-0.5), type(math.pi), type(math.maxinteger))
-- number	number	number	number
load more comments (1 replies)
[-] db0@lemmy.dbzer0.com 10 points 2 months ago

Fortran angrily starts typing...

load more comments (4 replies)
load more comments (3 replies)
load more comments (10 replies)
[-] MTK@lemmy.world 28 points 2 months ago

Error handling should only be with "if"

Variable names must be generic and similar to each-other

Debugging is only done with prints

Version numbers must be incoherent, hard to order correctly, contain letters and jump in ways that don't align with the updates done.

[-] Randelung@lemmy.world 8 points 2 months ago

Single letters or UTF8 symbols only. Emojis are encouraged.

[-] driving_crooner@lemmy.eco.br 7 points 2 months ago

Variable names should be var{n} where n = 0, 1, 2...

load more comments (2 replies)
[-] NOT_RICK_SANCHEZ@lemmy.world 25 points 2 months ago

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

[-] Phoenix3875@lemmy.world 24 points 2 months ago

MAGA - Make Assembly Great Again

[-] moody@lemmings.world 23 points 2 months ago

From this point on, all arrays are reverse-indexed.

[-] filcuk@lemmy.zip 14 points 2 months ago
[-] xmunk@sh.itjust.works 9 points 2 months ago

Hey now, you know that according to the Bible the biggest number is a million. Anything larger than that including infinity is some of that "woke shit".

Your array will be 999,999, 999,998, 999,997 ...

[-] db0@lemmy.dbzer0.com 19 points 2 months ago

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.

load more comments (1 replies)
[-] ZeffSyde@lemmy.world 17 points 2 months ago

Am I The only one that sees the tie as yellow in this photo?

[-] TriflingToad@sh.itjust.works 9 points 2 months ago
load more comments (3 replies)
[-] Thcdenton@lemmy.world 11 points 2 months ago

Halfway to Lua lol

[-] Hupf@feddit.org 9 points 2 months ago

I don't get why only four of these are jokes

[-] tgm@lemmy.world 8 points 2 months ago

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

[-] gnutrino@programming.dev 25 points 2 months ago* (last edited 2 months 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 (or more likely your compiler's developer) can technically choose which direction stacks go but not conforming to the historical standard is the choice of a madman.

[-] Kidplayer_666@lemm.ee 8 points 2 months ago

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)
load more comments (1 replies)
load more comments
view more: next ›
this post was submitted on 11 Feb 2025
966 points (96.5% liked)

Programmer Humor

22616 readers
1370 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