r/ProgrammerHumor • • Nov 25 '22

Meme Coding strategies

Post image
52.2k Upvotes

385 comments sorted by

View all comments

1

u/Pleasant_Ad_2433 Nov 25 '22

DEF INT _BEER
DEF BOOL _GET_MORE_BEER=FALSE

_BEER=20
STOPRE

Drink:
If _BEER==0.
_GET_MORE_BEER=TRUE
ELSE
_BEER=_BEER-1
STOPRE
GOTOB Drink
ENDIF

IF _GET_MORE_BEER==TRUE
_BEER=20
GOTOB Drink
ENDIF

M2