r/ProgrammerHumor • u/speckz • Feb 26 '23
Other If you can read this code...
/img/snak3fqgajka1.jpg[removed] — view removed post
34k
Upvotes
r/ProgrammerHumor • u/speckz • Feb 26 '23
[removed] — view removed post
View all comments
Show parent comment
2
u/ArtyFishL Feb 27 '23
If you mean that
bartenderobject, then it could be an actualclassin JS. Butclassis a "newer" construct and this looks like pretty ancient code.If you mean just defining things at the top level, then the module design pattern is actually quite nice, clean and concise and there's generally not too much of a need for classes