Guest User

Untitled

a guest
Sep 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. # SimpleIO
  2.  
  3. Really who, WHO? designed java. It's so verbose it makes [something verbose] look simple. The designers must have been in a meeting, I guess this can only be the product of a TON of meetings, and they were all like here's an idea "let's make common tasks simple", and some other guy (probably middle-aged, balding with a harley said "yeah, like reading and writing to files". And then everyone in the room gave him the death stare, Dr Cooper style, and one guy just said "what, who needs to do that?". Everyone in the room just nodded like sheep.
  4.  
  5. Anyway this class makes life easier, less java-like if you will:
  6.  
  7. String contents = SimpleIO.read("my-file");
  8. SimpleIO.write("another-file","hey look, this is a one-liner");
  9.  
  10. Enjoy.
  11.  
  12. ---
  13.  
  14. Oh also I used a String; everyone seems to use StringBuilders and/or get's annoyed when people build Strings like this. The clue is supposedly in the title, StringBuilder is for building Strings. But nobody and I mean __nobody__ can explain why StringBuilder is better. So I used a String in #read.
Add Comment
Please, Sign In to add comment