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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What are ways programmers "reframe" problems to make them easier?

3 点作者 canxerian大约 1 个月前
I write shaders and I often use HSL colour space rather than RGB. This solves a few problems: keeps contrast ratios consistent (by keeping luminance, L constant). Adjusts hue, H, whilst keeping the colour palette in harmony.<p>It also means I need only modify 1 value rather than 3.<p>What are other ways in which programmers reframe problems to make them conceptual easier and the implementation more straightforward?

1 comment

dtagames大约 1 个月前
Not to be dismissive, but we could describe all of programming this way. Since computers just run machine code and deal only with simple math and swapping memory and storage values, all of our code is just &quot;reframing&quot; the problem in different ways. We pick the language or abstraction that&#x27;s easiest to work with for what we&#x27;re trying to accomplish, like you did with picking the &quot;HSL&quot; language over RGB. In reality, both will be converted to binary values in storage and voltage levels in your monitor.
评论 #43535787 未加载
评论 #43535344 未加载