Wednesday, August 26, 2009

real-time pastebin chat

Evidently I am not the only one who trolls pastebin...

Posted by Anonymous on Wed 26 Aug 03:23 (modification of post by
  1. import java.io.*;
  2. public class Cat  {
  3.   public static void main (String args[]) {
  4.     String thisLine;
  5.     for (int i=0; i < args.length; i++) {
  6.        try {
  7.           FileInputStream fin =  new FileInputStream(args[i]);
  8.           // JDK1.1+
  9.           BufferedReader myInput = new BufferedReader
  10.               (new InputStreamReader(fin));
  11.           while ((thisLine = myInput.readLine()) != null) {  
  12.              // SHIT HERE
  13.              // But make sure to wipe!
  14.              // And uses tabs for indentation!
  15.              // noway... spaces > tabs and plz plz set ts=4
  16.              // ts=4 is the one true way and tabs are less typing and easier to adjust display with
  17.              // i'll grant you that they are easier to adjust display with, you might have me convinced on that
  18.              // What are the advantages of spaces?
  19.              // consistent look across all editors/viewers (vi,VS,some webrowser, etc).. thats it i guess
  20.              // Hmmm, shouldn't your tabbing be right in all editors though? Only the width changes based on viewer.
  21.              // >Combining tabs and spaces is where you get display issues if tab size is changed.
  22.              // you know what... you're right.  I'm going to start using tabs from now on.
  23.              // What? This isn't how religious wars are supposed to end. I'm so confused.
  24.              // HAH.. vim vs emacs?
  25.              // I can't vouch for either... vim's learning curve was too steep and so I didn't get over the initial
  26.              // >low-productivity bump, and emacs seems like it's full of powerful features I don't really need/use
  27.              // >to be honest, I use Gedit for most of my coding, I just wish it had code folding.
  28.              // Yeah, code folding is nice.  I'm sorta a minimalist and stick with vim.  On windows, a nice minimal
  29.              // >editor is notepad++.  anyway.. im out. nice pastebin chat :)
  30.              // I've used that, it's good. Nice to chat with you too.
  31.              }
  32.           }
  33.        catch (Exception e) {
  34.          e.printStackTrace();
  35.          }
  36.        }
  37.     }
  38. }

The paste: http://pastebin.com/m6b3d61b9
blog comments powered by Disqus