Show HN: String#to_proc` to Help Traversing JSON
I've resuscitated a project I was working on years ago. I was tired of having nested `flat_map` making my code basically unreadable just to fetch a simple value. The idea is to make simple & readable the traversing of deeply nested structures like JSON responses, while staying in Ruby & keeping its flexibility. Here it goes: graphql_response.then(&'[data][repository][issues][edges]*([node][title])') # => ["Support negative indexes", "Document aggregates"] githu
阅读原始来源来源记录
指标快照
points · 2 votes
2026-11-14 03:19:25.690Z
cumulative since publication
研究分析
项目记录
仓库:samleb/schmuck。 来源描述:I've resuscitated a project I was working on years ago. I was tired of having nested `flat_map` making my code basically unreadable just to fetch a simple value. The idea is to make simple & readable the traversing of deeply nested structures like JSON responses, while staying in Ruby & keeping its flexibility. Here it goes: graphql_response.then(&'[data][repository][issues][edges]*([node][title])') # => ["Support negative indexes", "Document aggregates"] githu
采用记录与比较对象
来源票数: 2 votes (2026年11月14日 UTC; cumulative since publication) 可供比较的近期同类记录:“openai/codex-security” (GitHub Trending, 2026年11月14日);“tradermonty/claude-trading-skills” (GitHub Trending, 2026年11月14日)。主题相近仅用于导航,未核验其是否属于同一需求或独立证据。
采用判断
应与它要替代的工具或人工流程比较。现有记录支持发现项目,尚不能确认可靠性、运行成本优势或商业采用。
尚未核验的门槛
尚未核验:许可证权限、硬件要求、安装步骤、维护状态,以及包含失败样例的代表性任务。
下一步试验
选择一个真实任务和现有替代方案,记录 commit、环境、输入、输出、耗时与失败行为;保留结果后再给出采用建议。