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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: A gem to log when code gets run

3 点作者 heynk超过 10 年前

1 comment

heynk超过 10 年前
I remember a thread on HN some time ago where people discussed the various log messages they&#x27;d write when debugging to see if code was executing properly. I usually just write things like `puts &quot;here&quot;` and it sounded like a lot of other people would write similarly mundane things or just smash their keyboard.<p>I made this gem so all I have to call is `aqui` and a more contextual log message is displayed. Screenshot:<p><a href="https://camo.githubusercontent.com/a492d7dc95ebf1c248c7537b7c32bfaf550eba60/687474703a2f2f692e696d6775722e636f6d2f4d31554c44394f2e706e67" rel="nofollow">https:&#x2F;&#x2F;camo.githubusercontent.com&#x2F;a492d7dc95ebf1c248c7537b7...</a>