By geertjan
via java.dzone.com
Published: Feb 18 2008 / 14:46
February 14th, the international day of sweet nothings, saw the release of Lorem Ipsum for Java, the new Java generator of space filler text. Never again will you need to put "aaaaa" in a demo field, or "xxxx", or something similar, Instead, you will be able to ooze the air of the Greeks of old, by generating text into your otherwise bare ui.
Comments
brianjlandau replied ago:
Ok there have been libraries in Ruby, PHP and many other languages forever. Not to mention it's a simple custom text-snippet away (or in some text editors it's already built in). Is this really THAT amazing or news worthy???
Jeff Hill replied ago:
Apparently, at least 10 people so far (all Java devs?) possess the ability to travel through time.
amphi replied ago:
The same paragraph over and over? That's the worst generator I've ever seen.
It's pretty easy to write a semi-usable one. Put 100 sentences in an array and put X to Y (e.g. 3 to 5) randomly chosen sentences into one paragraph. It's not perfect, but it does the trick just fine.
The purpose of this kind of generators is to avoid visible repetition. Patterns distract. That's why pasting once sentence over and over again doesn't do the trick.
Also, once you think you're done put real text there and read it. It's important to make it look good, but it's even more important that it's nice to read.
Voters For This Link (9)
Voters Against This Link (1)