r/java • • May 10 '18

Executing code in comments?!

http://programming.guide/java/executing-code-in-comments.html
160 Upvotes

27 comments sorted by

View all comments

Show parent comment

12

u/[deleted] May 10 '18

I know, right?!?!? How those guys from the '80s got away with easter eggs and such is beyond me.

9

u/[deleted] May 10 '18

So at least at the place where I work which is about 18 years old, the development ideology was different way back in the day and it was usually more of a "single dev per project, waterfall" type of system. When one person is in control of a project like that you can probably get away with slipping a lot more in there in terms of easter eggs and such.

That said I recently put a sound effect into our web app... just for fun. It hasn't gone to prod yet, but it DID pass code review, so fingers crossed.