Live data from Hacker News

Codem Ipsum: Lorem Ipsum but for Code

codemipsum.pomb.us

21–30 of 35 posts

Re: Codem Ipsum: Lorem Ipsum but for Code

#21

The name is kind of misleading. I expected it to generate random lines of code, instead of just replacing identifiers with lorem ipsum.

Same thought here. I thought something along the lines of hackertyper. Something that looks like real code, but isn't.

Re: Codem Ipsum: Lorem Ipsum but for Code

#22

Why code in faux Latin when you can use the real thing: http://users.monash.edu/~damian/papers/HTML/Perligata.html

This is so cool! I love it.

I am a Russian speaker, and this ambiguous aspect of English has always bugged me to hell! I think english was a bad model as a starting point for programming languages.

Re: Codem Ipsum: Lorem Ipsum but for Code

#23
post #7

Hey, I made this. I needed dummy but syntactically valid code to show in demos like this one: https://github.com/pomber/code-surfer/blob/code-surfer-v2/re...

Wait, this is just for dummy code for demos? I've been using at work for our production system. I figured the compiler would catch any mistakes...

Let me know how it goes with the compiler, I've got too much angel capital invested in this by now for it not to work!

Re: Codem Ipsum: Lorem Ipsum but for Code

#26

Why code in faux Latin when you can use the real thing: http://users.monash.edu/~damian/papers/HTML/Perligata.html

This is so cool! I love it. I am a Russian speaker, and this ambiguous aspect of English has always bugged me to hell! I think english was a bad model as a starting point for programming languages.

How so?

Re: Codem Ipsum: Lorem Ipsum but for Code

#27
post #26

Earlier quoted context omitted.

This is so cool! I love it. I am a Russian speaker, and this ambiguous aspect of English has always bugged me to hell! I think english was a bad model as a starting point for programming languages.

How so?

I'm guessing they're referring to linguistic features that English doesn't have, such as inflected nouns to unambiguously indicate the subject, direct object and indirect objects.

`bite(dog, man)` is ambiguous. You need to look up the function documentation, make a guess, or ask the library developer to come up with a less ambiguous name.

If you could decline your variables, however, you could write (in terrible fake Latin)

`bite(dog, man-um)` or `bite(dog-um, man)` and they would be interpreted as two different -- and unambiguous -- things.

...but I'm just repeating GP's article.

Re: Codem Ipsum: Lorem Ipsum but for Code

#29
As some others in this thread, I feel bamboozled.

What I was hoping for is a "Lorem Ipsum"-style generator for code for like 10 different languages. So you'd have a Lorem Ipsum for JS, C++, Rust, etc.

This is just find/replacing identifiers with lorem ipsum, which doesn't really mask the underlying code that well.

Post reply on HN