Cuttings: The Song of Java Braces The Song of Java Braces | Cuttings
Things of interest.


 
December 8, 2017

The Song of Java Braces


When coders become song lyricists.

Someone presents a notoriously right-braced Java code. The folks at Programmer Humor then sing:

When first I saw the brace, I was petrified!
Kept thinking, who would ever try to put them on the side?!
But then I spent so many nights, thinking how your program’s wrong,
My beard grew long, found out how Python gets along
But now you’re back, with no stack trace
I just walked in to find you here, looking for that edge case
I should have wrote much better docs
I should have made sure my mem was freed
If I’d have known for just one second you’d be maintaining after me
Go on now go, Stack Overflow
Just sign up now, ‘cause you need to get to know,
Weren’t you the one who wrote code this weird?
Didja think I’d accept it, Didja think this PR’d get cleared?
Oh no, not I. You will revise.
The one thing I can say for sure, is this code won’t comply,
We’ve got a great style guide,
Examples of how you should write,
You will revise, you will revise

In addition:

And so your brace, is in outer space
I just compiled your code with a sad look upon my face



 

 
© 1997 - 2018 / Info