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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Two line ruby quine

6 点作者 madamepsychosis将近 14 年前
Thought you might like this. This Ruby program makes an exact copy of itself.<p>c = "File.open('new.rb', 'w') {|f| f.write('c = ' + c.inspect + '\neval c') }"<p>eval c

1 comment

AndrewVos将近 14 年前
I think the use of eval is thought of as cheating. Also I seem to remember writing to files is also cheating?
评论 #2859398 未加载