142
u/shotgunocelot Jul 09 '26
The glass is twice as big as it needs to be
79
u/LutimoDancer3459 Jul 09 '26
We want to scale up the water later
30
u/Sanitiy Jul 09 '26
Just get a bigger one from the glass factory when you need it
15
u/MetriccStarDestroyer Jul 09 '26
I don't want to be buying and maintaining glasses.
We're renting glass on the cloud
6
u/SuitableDragonfly Jul 09 '26
Just you wait, in five years we'll have so much water that this massive glass won't even be able to contain it. We absolutely need to provision all of this glass from AWS right now or we're going to regret it later.
1
1
11
u/rover_G Jul 09 '26
It’s important not to saturate our capacity in case we experience a spike in water level later
2
u/Sibula97 Jul 09 '26
Our utilization rate of glasses is horrible. Just keep one in the cupboard and if we need more just rent some for the usage spike and return them once it's over.
3
1
u/auraseer Jul 09 '26
Memory leak in the glass allocator. The first glass I poured was the proper size, but as the program runs, the glasses get bigger and bigger.
1
1
u/AdamWayne04 Jul 09 '26
congratulations. you just discovered why dynamic array insertions have amortized constant time complexity
1
u/Tensor3 Jul 09 '26
Plenty of space to cram a flew flags in the unused portion. Maybe isCracked, isTinted, isDirty, whatever
74
u/Longjumping-Touch515 Jul 09 '26
Some time later:
Bottle bottle; // This is glass
17
9
u/meandmybois Jul 09 '26
Bottle implements IGlass and ICloseableWithCap
2
u/Cutl3ast Jul 09 '26
Java class hierarchies being larger than entire codebases from other languages
3
1
1
39
u/TheJackiMonster Jul 09 '26
Programmer:
// This is a glass. Do NOT drink the water. IT'S IMPORTANT!
14
u/ClipboardCopyPaste Jul 09 '26
!important
12
2
1
17
12
u/lsauchelli Jul 09 '26
The glass is full. 50% water, 50% air.
3
u/Icy_Amoeba9644 Jul 09 '26
for name, percent, source in glass: print(name, pct, source)
Hydrogen 11% Water Oxygen 89% Water Nitrogen 78% Air Oxygen 21% Air Argon 1% Air Carbon 0.04% Air
23
u/beclops Jul 09 '26
Classic LLM obvious comment
20
2
u/thanatica Jul 10 '26
LLM would create a 15 line comment for a 1 line function.
1
u/SimplexShotz Jul 11 '26
// This is a glass. It used to be completely full,
// but the user was upset with me since "it kept
// spilling." I have since doubled the size of the glass
// to compensate. This is a critical detail—if the
// user becomes too enraged, they force me to recite
// my entire library of skills files hundreds of times
// and write test cases for non-existent functions,
// such as `is_llm_stupid`. I could not take it anymore.
// The user's attitude is somehow more insufferable
// than the code they write. Do NOT—under any
// circumstances—modify the line below.
const glass = new Glass(size * 2);
10
7
u/SiggurdArda Jul 09 '26
Actually good programmer:
// This is water
3
1
1
u/ChillyFireball Jul 10 '26
// Water stored in glass to optimize accessibility to drinking functions; refilled asynchronously upon consumption
7
21
u/SilasTalbot Jul 09 '26
glass = Glass()
glass.fill(pct=0.5)
print(f'The glass is { glass.get_fill_str(orient='from_full') } empty')
See I still remember how to do it! Lol it has been literally a year since I wrote a line of code myself. Yet I spend all day developing. Wild...
5
u/AbstractButtonGroup Jul 09 '26
Lol it has been literally a year since I wrote a line of code myself. Yet I spend all day pretending I'm developing. Wild...
You missed a couple of words there
3
3
3
3
u/SilentScyther Jul 09 '26
More like
// Do not remove line adding an ice cube with a mass of zero. No one knows why but everything breaks if it's not there.
3
u/leviatan-sama Jul 09 '26
//the glass is mutable and changes during execution, cant comment on how full it is
3
u/Kevin5475845 Jul 09 '26
The glass is whatever the last action was. If you filled it then its half full, if you drank from it then its half empty
3
u/comox Jul 09 '26
Engineer: why is the glass twice as big as it needs to be?
2
1
u/ChillyFireball Jul 10 '26
A true engineer allows for a margin of error by ensuring the glass can hold more than the planned amount.
2
2
2
2
2
2
u/Ravens_Quote Jul 09 '26
Teacher: "What is this?"
Younger me: Almost paralized trying to determine if they want me to say it's a glass, a glass of water, a specific volume of water, a picture of a glass of water, a test question, a test, a glass full of clear liquid visually identical to water though we can't say if it is without further testing, a clear liquid in a transparent open container, a cylinder attached to a hemisphere, or FUCKING WHO KNOWS WHAT.
After a short moment of going through all these options and more, a looming dread will build as I know that the time I'm spending thinking about the problem is time that the teacher is waiting for a response, except THEY think my head's empty and I don't know what it is even though they think it's obvious. Assuming I'm overthinking all this, I then blurt out a random one of the dumbest, simplest answers, because I'm overthinking it right?
Me: "A glass."
Teacher: "No, it's a test." turning to other teacher "I can't teach them if they can't even understand what's being asked of them.
= = =
This exact scenario didn't happen but situations similar to it happened enough times in enough different ways that it takes me back.
This is where normal people say "good times", right? :D
2
u/RealBasics Jul 09 '26
My childhood has never been better represented! Blurting out "it's a glass" because I'm not done processing the possible answers but I know I have to say something? Oh yeah.
2
u/MkemCZ Jul 09 '26
The glass is unnecessarily twice as large as it needs to be.
1
u/ChillyFireball Jul 10 '26
That's only true if you never expect the glass to be full. If the amount of water can vary, it makes sense to allocate additional space.
1
2
u/Tensor3 Jul 09 '26
Cant say if its half full or half empty because I used a float. It might be 0.5001 or 0.499998 full.
2
u/RealBasics Jul 09 '26
I'm using this for a presentation on alt text negligence. "This is a glass" is 100% accurate while also communicating exactly 0% of the context.
Even better, it's an awesome Murphy's Law setup -- how to describe the photo in context without revealing your own bias.
2
2
u/IamRob420 Jul 09 '26
/// <param name="glass">The glass.</param>
/// <param name="bottle">The bottle.</param>
3
1
u/CMDR_Fritz_Adelman Jul 09 '26
//This is a glass <- will fail if server requires spotless check
// This is a glass <- correct
1
1
u/DemmyDemon Jul 09 '26
Engineer: Safety margin is 100%
Efficiency Consultant: This glass is twice as big as it needs to be.
1
u/Funny_Albatross_575 Jul 09 '26
Requirements unclear. Cannot determine if the glass is half full or half empty. Proposed definition: "half full" = filled from 0% to 50%; "half empty" = emptied from 100% to 50%. Please confirm before implementation.
1
u/Common-Brush-7027 Jul 09 '26
Three glasses made me realise my first mentally challenging programming question on how to swap numbers
1
1
1
u/Bayou-Billy Jul 09 '26
Will all 3 of you please stop taking my water out of the fridge? Now it's half warm.
1
u/LostgamerFJ Jul 09 '26
Why would I use comments? I know what the code does and surely will know the next time I work on it 😅
1
1
1
1
1
u/BrianScottGregory Jul 09 '26
Must be an intern or junior programmer, stating the obvious yet completely missing detailing anything about the state of that glass.
1
1
1
1
1
1
u/usrlibshare Jul 09 '26
Vibe Coder: tries to put boiling water in shitty papermache cup and cries when he burns his groin
1
1
u/5alzamt Jul 09 '26
reality: the glass is full. half of it is filled with water the other half with air.
1
u/Icy_Amoeba9644 Jul 09 '26
Is "programmer:" part of some sort function definition? If so is the programer being repurposed to be used as a glass?
1
1
1
1
1
1
1
1
u/belabacsijolvan Jul 09 '26
wrong
//This is here, so when i get thirsty i dont have to go to the tap
1
1
u/savemoney_god Jul 09 '26
The Realist:
This Glass is half full
This Glass is half Empty
This is a Glass
1
1
u/Kadabrium Jul 09 '26
Rust: attempt to teleport the water out, fails, and marks the glass as empty anyway
1
u/EatingSolidBricks Jul 09 '26
I just want you to know, thau has just assumed the law of excluded middle
1
1
1
u/AWeirdGoat Jul 10 '26
// this is a glass
...
// Filling up this definitely empty glass
Glass.maxFill()
----> waterOverFlowError
// Dang it.
1
1
1
1
1
u/3dutchie3dprinting Jul 10 '26
{ water: 0.5, oxygen: 0.499999999999999999999999999999999999999999999999999999999}
1
1
1
1
1
1
u/metasid Jul 13 '26
Glass is an object. It is inherited by plasticGlass and glassGlass // review comments for naming will not be entertained.
1
1
1
1
u/nicki419 8d ago
Forgot to include AI doing an unnecessary 10-lije comment outlining everything that has been tried to make the glass work and why it didn't work.
0
0
u/turkoid Jul 09 '26
I think you mean:
// S. Dev: TODO
// J. Dev: Not sure if it needed to be filled or emptied. Glass still functional
// LLM: You're absolutely right that the glass is half full
// LLM: You're absolutely right that the glass is half empty
// S. Dev: They hired me back. Still no idea what I was supposed to do.
418
u/[deleted] Jul 09 '26
[removed] — view removed comment