Conversation
Notices
-
!coders I consider it a badge of honour if you've ever written a java program without using import X.*.
Thursday, 01-Mar-12 01:49:46 UTC from web-
@rotation System.out.println("Not that hard, really; depends on your definition of a program.");
Thursday, 01-Mar-12 01:56:09 UTC from web-
@sebastian1314 Anything. A common thing is to have two variables: List<E> a, ArrayList<E> b and import java.util.*;
Thursday, 01-Mar-12 01:57:22 UTC from web-
@rotation Right. Then a simple text adventure game doesn't need imports, as all you use is sca- ... -_- Ok you got me there. We frankly haven't learned System.in.* for some reason that is beyond me; we've just learned Scanners. =/
Thursday, 01-Mar-12 02:01:34 UTC from web-
@sebastian1314 Because why parse something yourself when you can get a Scanner to do it?
Thursday, 01-Mar-12 02:02:14 UTC from web-
Thursday, 01-Mar-12 02:02:56 UTC from web
-
@sebastian1314 System.in is just an input stream, so you use io.Reader, and end up going pretty low level. My advice is to use Scanners for text. Only resort to Readers if you need to deal with BLOBs.
Thursday, 01-Mar-12 02:05:50 UTC from web-
@rotation Ah I see. Yeah, I guess that's why we didn't learn it. =/
Thursday, 01-Mar-12 02:06:38 UTC from web
-
-
-
-
-
-
-
@rotation Reminds me, there was a programming competition for using round-about ways of programming. IE. Making Ascii art out of your code etc. One of the challenges was to make a program that prints it's own source code. The award for "Most Abuse of the Rules" went to an author who submitted a blank file to the competition cause come compilers would actually compile it with a blank main(). xD !coderpony
Thursday, 01-Mar-12 01:58:33 UTC from web-
@minti Did anyone do something using only the pre-processor? That's a neat trick.
Thursday, 01-Mar-12 02:00:41 UTC from web-
@rotation The competition was the International Obfuscated C Code Contest. So no. xD
Thursday, 01-Mar-12 02:02:05 UTC from web-
@minti You say that... http://www.ioccc.org/2004/vik2.hint
Thursday, 01-Mar-12 02:12:36 UTC from web-
@rotation Loool oh lord..
Thursday, 01-Mar-12 02:14:16 UTC from web-
@minti How about a Turing Machine? http://www.ioccc.org/2001/herrmann1.hint
Thursday, 01-Mar-12 02:15:23 UTC from web
-
-
-
-
-
-