Codem Ipsum: Lorem Ipsum but for Code

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

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

  • 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...

  • 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.

  • Lorem Ipsum but for javascript

  • Unfortunately, this doesn’t lorem ipsum code comments.

    I also wonder how large such an obfuscated code fragment would need to be to be able to find back the original code on GitHub/GitLab.

  • The "lorem ipsum" identifier names are foo, bar, baz, qux, quux, etc.

  • No description of what’s happening (on mobile anyway), but it looks like the variables are being replaced?

  • I think it should not replace the `length` property of an intentional array.

  • It looks like dolor is assigned without first being initialized.

  • It keeps throwing me

    "SyntaxError: unknown: Unexpected token (1:20)"

    on valid code

  • Where would one use this ?