this post was submitted on 19 Sep 2024
989 points (98.5% liked)

Programmer Humor

32050 readers
1759 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[โ€“] aluminium@lemmy.world 24 points 4 hours ago

She was a lua girl, he was every other programming language guy. It was not ment to happen.

[โ€“] lustyargonian@lemm.ee 23 points 5 hours ago (2 children)

If you love me meet me at first floor

Americans ๐Ÿ˜ข British ๐Ÿคทโ€โ™‚๏ธ

[โ€“] TriflingToad@lemmy.world 9 points 2 hours ago (1 children)
[โ€“] SLVRDRGN@lemmy.world 2 points 2 hours ago

Exactly what this reminded me of. Thanks.

[โ€“] Agent641@lemmy.world 1 points 1 hour ago

The Major: "Fighting retreat at first light"

Me alone in the trench the morning after next, woken by German voices: "Oh no!"

[โ€“] Entropywins@lemmy.world 1 points 2 hours ago (1 children)

I work with juniper switches 0 is my 1

[โ€“] TexMexBazooka@lemm.ee 1 points 2 hours ago

Fuck juniper fr though

And then he texts back 'where are you?' And then she texts back 'the first table' and he replies 'umm I'm here too. But I don't see you' confused she asks him ' table 0p?' And then '01*?' He says 'no, 00.' Releaved she says 'lol I am at table 01' he chuckles 'I am at 00, I'll go find you'

Later they get married and have kids. But relationship collapses and it ruins both of them and they cannot find the heart to love anyone again. Their children grow up broken and struggle through life. Some get arrested end up in prison, all of them repeatedly fall into a series of toxic relationships for the rest of their lives.

๐Ÿ™… zeroth, first, second, third
๐Ÿ‘‰ Zerost, onest, twost, threest

This would work better as Nth floor of a building

[โ€“] yesman@lemmy.world 25 points 9 hours ago

The real punch line is that in a cafe run by programmers, esoteric rules are in full force, but tables 0 and 1 are no where near each other.

[โ€“] AnnaFrankfurter@lemmy.ml 22 points 9 hours ago (2 children)

Hey, if she thinks 1 is 1st index then you dogged a bullet and deserve better.

[โ€“] Mobiledecay@lemmy.world 1 points 44 minutes ago

๐Ÿ•๐Ÿ•๐Ÿ•

[โ€“] MadBob@feddit.nl 28 points 8 hours ago

you dogged a bullet

๐Ÿ˜ณ

[โ€“] pelya@lemmy.world 47 points 10 hours ago (5 children)

In the UK it's called a ground table.

[โ€“] undergroundoverground@lemmy.world 2 points 4 hours ago (1 children)

When you get off an airplane, do you say

"Its great to be back on solid first floor of the earth."

?

[โ€“] pelya@lemmy.world 2 points 3 hours ago

If the walkway goes inside the building, then yes. And the walkway usually leads directly to the second floor, because the airplane door is 3 metres above the ground.

load more comments (4 replies)
[โ€“] lefixxx@lemmy.world 80 points 11 hours ago (8 children)

She is right, using 0 index for physical stuff is stupid.

[โ€“] jmcs@discuss.tchncs.de 17 points 9 hours ago (3 children)

Your rulers start at 1? That sounds annoying.

[โ€“] NateNate60@lemmy.world 5 points 5 hours ago

Rulers measure cardinal quantities and not ordinal ones. There is no cardinal numbering scheme that starts at 1, all of them "start" at 0. For ordinal numbering schemes, the symbols are arbitrary anyway and you can start with whatever you want. It's equally valid to start with 1, 0, -1, A, or "aardvark". The only benefit to picking 1 as the start is to make it easier to count with your fingers while picking 0 lets you easily convert an ordinal quantity to a cardinal one.

[โ€“] gallopingsnail@lemmy.sdf.org 3 points 5 hours ago* (last edited 5 hours ago) (2 children)

Your job is to move apples from one bin to another. You pick up the first one and set it in the other bin, and say "zero."?

[โ€“] absGeekNZ@lemmy.nz 2 points 2 hours ago

When playing games with the kids, we start at 0 being the position you are currently in, then count from there.

e.g. in snakes and ladders, if you are on spot 30 and roll a 5, tap spot 30 and say "zero", then spot 31 is "one" etc.. till you are at spot 35 saying "five".

Teaches the kids about zero and avoids miss counts from the younger ones counting their current position as "one"

[โ€“] spikespaz@programming.dev 5 points 5 hours ago

There's another way to think about it which I actually use. Look in the empty bin and say "zero", then move an apple and say "one".

[โ€“] Godnroc@lemmy.world 11 points 8 hours ago (1 children)

I've seen a lot of rulers that actually don't have a mark at 0 and instead go right to the edge as 0. Typically they are worn down, being made of wood, so the accuracy of the first inch is dubious. To ensure the distance is correct, sliding the ruler down one unit is a good idea. So, my ruler starts at 0 but my measurements start at 1.

[โ€“] jmcs@discuss.tchncs.de 10 points 8 hours ago (1 children)

That's why decent rulers have a 0 and a margin:

plastic ruler starting at 0 cm

[โ€“] xthexder@l.sw0.com 14 points 8 hours ago (2 children)

It really depends on what you're measuring. Good luck measuring the distance from a corner if you can't get 0 to touch the end.

Tape measures are almost always designed with this in mind, so you can hook the end over an edge, or butt it up against something and the measurement will be accurate both ways, since the metal end can slide in or out by just the right amount.

[โ€“] june@lemmy.dbzer0.com 2 points 4 hours ago

since the metal end can slide in or out by just the right amount.

OMG! I genuinely thought all the tape measures I have handled were a little broken.

load more comments (1 replies)
load more comments (7 replies)
[โ€“] LillyPip@lemmy.ca 14 points 9 hours ago (1 children)
load more comments
view more: next โ€บ