...because obfuscated code is fun.

berry120

Fully Optimized
Messages
3,434
Location
UK
I wrote this just now in response to various people claiming "real developers don't document", "documentation's not necessary", "you can figure out what code does just by looking at it anyway so it's pointless..."

Code:
class X{public static void main(String[]
a){for(char _:("EYZd&Zd&hYj&cVR]&UVgV]"+
"`aVcd&U`Tf^V_e&T`UV&,*").toCharArray())
{_=_==0x026?021:_==052?'*'-0x010:_;
System.out.print((char)(_+017));}}}

OK, it's a laugh and obviously I hope you don't stumble upon anything like this in reality - but it's there to prove a point! Enjoy, and spread the love to anyone that claims the same thing about documentation ;)
 
Hahaha! That's so awesome! I always leave comments on my code, but not on every line. I leave a short description of every function or class I create.
 
Hahaha! That's so awesome! I always leave comments on my code, but not on every line. I leave a short description of every function or class I create.
...Which of course is exactly what you should do! :) Comments on every line usually have the opposite effect, there's so much clutter they make your code more difficult to read :)
 
quite simply you write undocumented code for a client, you're fired.

That's the end of the argument.
 
quite simply you write undocumented code for a client, you're fired.
If only... that's unfortunately not always how it works in the real world though.
 
Back
Top Bottom