TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Codem Ipsum: Lorem Ipsum but for Code

89 点作者 garyng超过 5 年前

12 条评论

BerislavLopac超过 5 年前
Why code in faux Latin when you can use the real thing: <a href="http:&#x2F;&#x2F;users.monash.edu&#x2F;~damian&#x2F;papers&#x2F;HTML&#x2F;Perligata.html" rel="nofollow">http:&#x2F;&#x2F;users.monash.edu&#x2F;~damian&#x2F;papers&#x2F;HTML&#x2F;Perligata.html</a>
评论 #21545793 未加载
评论 #21545496 未加载
评论 #21546249 未加载
评论 #21544895 未加载
abhijitparida超过 5 年前
The name is kind of misleading. I expected it to generate random lines of code, instead of just replacing identifiers with lorem ipsum.
评论 #21545445 未加载
评论 #21544555 未加载
评论 #21544711 未加载
pomber超过 5 年前
Hey, I made this. I needed dummy but syntactically valid code to show in demos like this one: <a href="https:&#x2F;&#x2F;github.com&#x2F;pomber&#x2F;code-surfer&#x2F;blob&#x2F;code-surfer-v2&#x2F;readme.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pomber&#x2F;code-surfer&#x2F;blob&#x2F;code-surfer-v2&#x2F;re...</a>
评论 #21545342 未加载
swagonomixxx超过 5 年前
As some others in this thread, I feel bamboozled.<p>What I was hoping for is a &quot;Lorem Ipsum&quot;-style generator for code for like 10 different languages. So you&#x27;d have a Lorem Ipsum for JS, C++, Rust, etc.<p>This is just find&#x2F;replacing identifiers with lorem ipsum, which doesn&#x27;t really mask the underlying code that well.
0xDEEPFAC超过 5 年前
Lorem Ipsum but for javascript<i></i><i>
Someone超过 5 年前
Unfortunately, this doesn’t lorem ipsum code comments.<p>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&#x2F;GitLab.
mike_hock超过 5 年前
The &quot;lorem ipsum&quot; identifier names are foo, bar, baz, qux, quux, etc.
评论 #21544427 未加载
lettergram超过 5 年前
No description of what’s happening (on mobile anyway), but it looks like the variables are being replaced?
评论 #21544414 未加载
madacol超过 5 年前
I think it should not replace the `length` property of an intentional array.
gatherhunterer超过 5 年前
It looks like dolor is assigned without first being initialized.
评论 #21544978 未加载
Raphmedia超过 5 年前
It keeps throwing me<p>&quot;SyntaxError: unknown: Unexpected token (1:20)&quot;<p>on valid code
cryptozeus超过 5 年前
Where would one use this ?