Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		
- 
				
				GunBlade48y@fasttime
 Shouldn't someone drink coffee, instead of coffee itself commiting an act of self-consumption?
- 
				
				@GunBlade the point is coffee drink is a sort of absolute and should always be done, even when empty, we make sure to never have null by first checking coffee is filled or contains a value. Hence the refactoring to an if without an else. Because if it is about coffee there is no else. Ps edited to add apostrophes.
- 
				
				I like the intention but technically speaking it's not correct. Coffee doesn't drink or refill itself.
Related Rants









 Oh sh*t
Oh sh*t
 Fellow devs can understand...
Fellow devs can understand...
Coffee coffee = new Coffee { };
if ( coffee.Empty )
{
coffee.Refill ( );
}
else
{
coffee.Drink ( );
}
// I'm a software developer \\
undefined
random
pseudocode
coffee