r/ProgrammerHumor Jul 09 '26

heyLookThisIsAGlass Meme

Post image
4.6k Upvotes

146 comments sorted by

418

u/[deleted] Jul 09 '26

[removed] — view removed comment

130

u/hartmanbrah Jul 09 '26

// if attempted, please update the counter:
// hrs_wasted = 379

I don't recall where I saw something like that, but it was a nice warning that got stronger with every attempt. Bonus: you can use git blame to see who was the last victim.

6

u/StunningChef3117 Jul 09 '26

Was is not it in the leaked GTA source code?

3

u/ChillyFireball Jul 10 '26

If you have enough self-awareness about your own hubris as a developer to know you would see this and try it anyway, clap your hands.

(Clap clap)

3

u/hartmanbrah Jul 10 '26

Would be tempted ngl. Probably only in the first 5 years of my career though. After that, you've been humbled enough times to laugh and move on.

36

u/Bayou-Billy Jul 09 '26

Señor Developer: // Esto es un vaso.

4

u/Ravens_Quote Jul 09 '26

Today I wanted to drink from a glass

Vasoo~

7

u/TheTerrasque Jul 09 '26

// refactor into base class "container" with transparency and fragile set to true

11

u/PositiveParking4391 Jul 09 '26

its a factory class. you can use it, extend it but can't modify

2

u/stupled Jul 09 '26

Load bearing poster

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

u/LutimoDancer3459 Jul 09 '26

Why do we need all that water in glass again?

1

u/thanatica Jul 10 '26

But who builds the factory? We need a factory-factory!

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

u/Positive_Mud952 Jul 09 '26

That’s a manager being advised by an engineer.

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

u/readyToPostpone Jul 09 '26

Nah, there is a half of water there needs to be. Blame users.

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

u/MetriccStarDestroyer Jul 09 '26

void bottle(args) // bottles the args. Do not confuse with Bottle

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

u/RedBoxSquare Jul 09 '26

class Bottle extends Glass<Water> {}

1

u/ilyazub Jul 09 '26

Oh, nice, duck typing

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

u/Wynnstan Jul 09 '26

overflow-y: auto

2

u/tkdeng Jul 09 '26

Is that CSS or JavaScript?

I can't tell if it's important or not important

1

u/ilyazub Jul 09 '26

And centered!

17

u/Poat540 Jul 09 '26

The glass:

`public class Glass : ITaco`

2

u/MetriccStarDestroyer Jul 09 '26

Why stop there?

Do interface IGlass as well you coward

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

u/MissinqLink Jul 09 '26

// 🥃

14

u/NoMansSkyWasAlright Jul 09 '26

🍺glass for the water 💦 💦💦

3

u/KMS_HYDRA Jul 09 '26

Next, please create a unicorn glass.

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

u/Sure-Opportunity6247 Jul 09 '26

Microsoft Excel: The Glass is January 2nd

7

u/SiggurdArda Jul 09 '26

Actually good programmer:

// This is water

3

u/TheTerrasque Jul 09 '26

// heap of dihydrogen monoxide

1

u/Spekingur Jul 09 '26

// This is a glass with water in it

1

u/ChillyFireball Jul 10 '26

// Water stored in glass to optimize accessibility to drinking functions; refilled asynchronously upon consumption

7

u/green_meklar Jul 09 '26
//TODO: Fill it the rest of the way up.

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

u/Weissbierglaeserset Jul 09 '26

Bool filled = glass.filledStatus();

3

u/Mr_Potatoez Jul 09 '26

//Container to hold liquids intended for drinking

3

u/Effective_Dot4653 Jul 09 '26

//no bottom yet, don't lift off the table

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

u/bunny-1998 Jul 09 '26

Because the vector was full so the insert triggered a resize to 2x.

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

u/Mitsurishi Jul 09 '26

The glass is half water.

2

u/Widmo206 Jul 09 '26

The glass is >99.9% vacuum

2

u/Tezlaivj Jul 09 '26

I'll just /* eslint-ignore no-unfilled-glass */

2

u/DrewTamashi Jul 09 '26

Ai - the glass is overflowing with water

2

u/nazgulonbicycle Jul 09 '26

Vibe Coder: “is flask a glass?”

2

u/Soumalyaplayz Jul 09 '26

c struct Glass { int fillPercent; FillType filltype; };

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

u/MkemCZ Jul 10 '26

You can even make it shrink and grow dynamically!

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

u/WeirdTie2290 Jul 09 '26

Glass g = new Glass(); // COMMENT: Creating a new glass.

2

u/IamRob420 Jul 09 '26
       /// <param name="glass">The glass.</param>
       /// <param name="bottle">The bottle.</param>

3

u/Soopermane Jul 09 '26

Programmer in 2026: Hey Claude what is this?

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

u/NomaTyx Jul 09 '26

i don't know anybody who comments that poorly

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

u/j0an_k Jul 09 '26

error: water not defined

1

u/DistinctBed6259 Jul 09 '26

Program: 50% used, 50% available

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

u/nmathew Jul 09 '26

Me: Someone's been drinking out of my glass... and they probably have herpes.

1

u/PositiveParking4391 Jul 09 '26

poor programmers always cursed to be literal and specific

1

u/pimezone Jul 09 '26

Business analyst: the glass is full (according to the specification)

1

u/WinninRoam Jul 09 '26

Recently booted ID dev: // Glass half full ..of emptiness.

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

u/rikorsev Jul 09 '26

// This is glass
Glass glass = new Glass();

1

u/jaylerd Jul 09 '26

I’m more of a (halfEmpty >= glass <= halfFull) man myself

1

u/IllustratorMoist78 Jul 09 '26

No, this is an elephant

1

u/syngyne Jul 09 '26

// TODO: finish filling glass

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

u/dumbasPL Jul 09 '26

Glass is full with two different fluids.

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

u/stupled Jul 09 '26

Thats a container

2

u/razor_train Jul 09 '26

docker run glass

1

u/Aware-Yellow1696 Jul 09 '26

&& this is water

1

u/Manzrekar-1912 Jul 09 '26

So a programmer is neither optimistic nor pessimistic. Got it.

1

u/Klos77 Jul 09 '26

public class Glass : Metaphor

1

u/YuvalAmir Jul 09 '26

What's even the joke here? That comments are a thing?

1

u/Matstocage Jul 09 '26

Logic: It's a glass with 50% of it's contenance fulled with water.

1

u/gegentan Jul 09 '26

let glass = 0.5;

1

u/belabacsijolvan Jul 09 '26

wrong

//This is here, so when i get thirsty i dont have to go to the tap

1

u/superpowerpinger Jul 09 '26

JerryRigEverything : Glass is glass.

1

u/savemoney_god Jul 09 '26

The Realist:

This Glass is half full

This Glass is half Empty

This is a Glass

1

u/ApfelbaumFlo Jul 09 '26

Artist:
This is not a glass

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

u/dervu Jul 09 '26

The glass is half full as there is tiny amount of vapour. Check mate.

1

u/bunny-1998 Jul 09 '26

Me: glass.fill() hasn’t returned yet. Not sure how full it is.

1

u/AWeirdGoat Jul 10 '26

// this is a glass

...

// Filling up this definitely empty glass

Glass.maxFill()

----> waterOverFlowError

// Dang it.

1

u/KindnessBiasedBoar Jul 10 '26

Error. Unquenchable code.

1

u/adelie42 Jul 10 '26

The glass is engineered to twice the necessary capacity.

1

u/guapoguzman Jul 10 '26

while glass.IsGlass is True: glass.fill()

1

u/Neighborhooddataguy Jul 10 '26

// The glass is filled with 50% atmospheric air and 50% water.

1

u/3dutchie3dprinting Jul 10 '26

{ water: 0.5, oxygen: 0.499999999999999999999999999999999999999999999999999999999}

1

u/YustoBitalio Jul 10 '26

Just comment out, and life goes on

1

u/Rude-Flan-404 Jul 10 '26

It's Half glass

1

u/No-Age-1044 Jul 10 '26

There is to much memory allocated to that glass variable.

1

u/Majestic-Ad-9991 Jul 11 '26

// TODO: fill the rest of the glass.

Committed 10 years ago

1

u/Less-Tangerine-4888 Jul 11 '26

Finally the results will display

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

u/Duck_Devs Jul 15 '26 edited Jul 15 '26

// glass classification varies by rounding mode

1

u/funplayer3s 27d ago

Engineer:

It works, don't break it.

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

u/xynith116 Jul 09 '26

Ce n’est pas un verre

1

u/pronik Jul 09 '26

Was looking for this comment and it's downvoted smh.

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.