ProgrammerHumor

whatDidIDoWrongHere

whatDidIDoWrongHere
https://i.redd.it/x9wsd2djmxbf1.png
Reddit

Discussion

OneFriendship5139

woman

2 days ago
whitakr

trans man

2 days ago
Clairifyed

Sure I suppose, really any category besides cis endosex man has some examples that work here, though some trans men do get bottom surgery

2 days ago
whitakr

You’re right too! But also, some women don’t have vaginas. Wasn’t saying trans man as a correction, I was listing it as another option.

2 days ago
Clairifyed

Ah, for the record, I am not the one who downvoted it, though I suppose that’s what they assumed, or they didn’t like the lack of a space between “trans” and “man”. It is sometimes seen as a dog whistle

2 days ago
whitakr

Interesting about the lack of space. Hadn’t heard that. I’ll edit it.

1 day ago
Clairifyed

If you’re curious, the reasoning is because trans is an adjective that describes a sub group of men/women (noun). Just like “tall women” describes a subset of people who are tall yet still women. When people use transmen/transwomen intentionally, it’s a subtle way of suggesting an entirely different noun group separate from the categories of men/women.

1 day ago
whitakr

Makes complete sense, in fact I don’t think I’ve ever written it as one word so not sure why I did lol

1 day ago
PixelGamer352
:g::j::kt:

What‘s that?

1 day ago
coriolis7

Integer overflow

2 days ago
New-Resolution9735

For an integer to overflow on a modern 64 bit system, it would need to be at least 9,223,372,036,854,775,807. Assuming we're counting in inches that's 145,570,897,046,319 miles, 1,566,022 astronomical units, or about ~24.7 light years.

Meaning your schlong could wrap around the entire solar system about 3.16 times. At the bare minimum required for an integer overflow

2 days ago
monke_soup

Damn it, so close to 3.14

2 days ago
undo777

It's even closer to pi

2 days ago
ReallyMisanthropic
:cp::py::ts:

That's why C++ calls that type long long.

C++26 will rename it to long schlong.

2 days ago
doctormyeyebrows

Easy, it's converting inches to 1/2,000,000,000,000,000,000 of an inch in its calculations. For accuracy.

edit: had to adjust the metric to allow overflow to actually happen oops

2 days ago
veselin465

edit: had to adjust the metric to allow overflow to actually happen oops

If you write a code with the intention to get errors, then you are a real programmer. Unlike the wannabes who pretend it was an accident

1 day ago
Clairifyed

Now is that enough to collapse under its own gravity 🤔 I am lazy and stuck on mobile for now, so can’t be bothered to do the math

2 days ago
Jonnypista

I haven't measured mine, but it seems about that size

1 day ago
lefloys

I dont think it makes sense to do it in inches. what about 1.5 inches? it breaks down with an int

1 day ago
New-Resolution9735

shhh, that would make it way more lame

11 hours ago
qqqrrrs_

In many 64 bit systems, `int` is still 32 bit

1 day ago
Global-Tune5539

depends on the type you're using

1 day ago
Callidonaut

So OP is Danny Sexbang, then.

1 day ago
DramaticCattleDog
:js::ts::py:

I feel personally attacked

2 days ago
MoveInteresting4334
:rust::j::ts::py::hsk:

DickLengthError

$100 to the first person who can slip this past PR.

2 days ago
binterryan76

It's called an innie

2 days ago
SkollFenrirson
:cs:

lolnumberfunny amirite guise

2 days ago
ChickenSpaceProgram
:j::ftn::c::cp:

r/freebottomsurgery

2 days ago
inthemindofadogg

Working on the next big AI project I see.

2 days ago
tacticalpotatopeeler
:bash:

Buy a bigger truck

2 days ago
Chubokaras

The punch is that "inches" is a heretic measure system.

1 day ago
karbonator

It's supposed to be positive 69420

2 days ago
Lord_Blumiere
:cs::py::lua::js:

this post was the final decider in me leaving this subreddit

1 day ago
QultrosSanhattan

So small that it's length needs to be represented in Decimal()

1 day ago
TeaKingMac

I'm guessing it's asking for length in "male internet dick units" in which a 13" dick is normal length, an 8" dick is barely there, and anything less is negative

2 days ago
eat3er

Hey, that's my exit code!

2 days ago
rosuav

For starters, there aren't that many signals, so you can't exit with a code that negative. If you're going to make fake screenshots, at least make them plausible. C'mon.

2 days ago
[deleted]

[deleted]

2 days ago
rosuav

Have you tried it? Operating systems DO constrain the return values.

2 days ago
SneeKeeFahk

Windows explicitly states that the exit code is just an unsigned int: https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-exitprocess

2 days ago
rosuav

Unsigned indeed.

2 days ago
SneeKeeFahk

I guess technically 0 to 4294967295 is a constraint.

2 days ago
rosuav

Yes, it is, and one that excludes the OP's choice.

2 days ago
SneeKeeFahk

Have you ever been called pedantic before? 

2 days ago
[deleted]

[deleted]

2 days ago
rosuav

Your main *function* can return a signed number, but the actual process return value is defined to be unsigned. You have to misinterpret it as signed in order to get that effect.

2 days ago
[deleted]

[deleted]

2 days ago
rosuav

I don't have Windows to confirm, but on Linux, no, you cannot return any arbitrary value.

CompletedProcess(args=['python3', '-c', 'exit(-1234)'], returncode=46)

On Windows, the ExitProcess function is defined as accepting an unsigned integer, so since I can't actually test it, I have to assume that the docs are correct, and that negative numbers are folded to positive.

2 days ago
nobody0163
:c::cp::cs::py::ts::asm:

Yes you can (on Windows at least). int main() { return -69420; }

2 days ago
rosuav

Of course you can do that, but you can also try to return a string or anything else ridiculous. What matters is what the calling process receives - did you confirm that?

2 days ago
nobody0163
:c::cp::cs::py::ts::asm:

I checked it. It returned -69420.

2 days ago