File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Meaningless Drivel and the fly likes In case you missed it... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "In case you missed it..." Watch "In case you missed it..." New topic
Author

In case you missed it...

marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

I finally got this code to work!


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Gabriel Claramunt
Ranch Hand

Joined: May 26, 2007
Posts: 375
Congratulations!

... I miss the urgent questions forum... it was the best!


Gabriel
Software Surgeon
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

I saw this and I wondered how fancy you were in implementing the generator. It looks like just random tokens, though. Hidden Markov chains of even length 2 would produce something that looked a lot more code-like. I wonder how long the chains would need to be before you usually get something that compiles?

Anybody ever played with this? HMC of English, I've played with. Code, not so much.


[Jess in Action][AskingGoodQuestions]
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Ernest Friedman-Hill:
I saw this and I wondered how fancy you were in implementing the generator. It looks like just random tokens, though...

Generator? I spent weeks writing this by hand in Notepad!

I nested some 50/50 "if" statements to vary the mix of keywords, new lines, numbers, tabs, etc. But it's very haphazard.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In case you missed it...