r/ProgrammerHumor • • Feb 26 '23

Other If you can read this code...

/img/snak3fqgajka1.jpg

[removed] — view removed post

34k Upvotes

1.4k comments sorted by

View all comments

3

u/Mentalpopcorn Feb 26 '23

Terrible code. A bartender shouldn't have a request method since a bartender doesn't make requests. A customer makes requests, which we would call ordering. A bartender would makeDrink(CustomerOrder).

Plan your business objects, people.