«« Next » « Previous
«« Next » « Previous

Link Details

In the time it takes to read this message you could have voted twice. Login and vote now.
Link 66789 thumbnail

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.
  • 9
  • 1
  • 911
  • 344

Comments

Add your comment
User 201957 avatar

brianjlandau replied ago:

0 votes Vote down Vote up Reply

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???

User 219203 avatar

Jeff Hill replied ago:

0 votes Vote down Vote up Reply

Apparently, at least 10 people so far (all Java devs?) possess the ability to travel through time.

User 239201 avatar

amphi replied ago:

0 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.