Tag: 设计

Dkphhh Created@

Q:node 和 npm 性能糟糕、功能缺失,还有一大堆设计缺陷,为什么不用 bun 和 deno?

A:为了兼容性。就像人一样,棱角分明的性格固然很好,但是为了把事情做成,总得圆滑起来。

阅读关于 2025-06-08 20:42:38 的文章
Dkphhh Created@

最有害的建议之一就是不要重新发明轮子。

这种建议会导致一种抑制好奇心和探索的氛围。现代生活的很多重要发明,都来自那些不听从这个建议的人们。

重新发明轮子就是一种学习,并且学习过程中,你可能会做出更好的版本。

《重新发明轮子》

阅读关于 2025-05-30 12:48:43 的文章
Dkphhh Created@

加尔定律经常被引用:“一个有效的复杂系统,总是从一个有效的简单系统进化而来。” 但是,它的推论很少被引用:“一个从零开始设计的复杂系统永远不会有效,你必须从一个可以运行的简单系统开始。”

Stack Staves

阅读关于 2025-05-29 20:20:03 的文章
Dkphhh Created@

这周重写了本站的暗黑模式与通知,虽然看起来没有什么区别,但是代码逻辑更加简洁合理,感觉自己又进步了 👍

阅读关于 2025-05-25 00:40:48 的文章
Dkphhh Created@

daisyUI 🌼 也是人类文明精华。

阅读关于 2025-05-23 21:47:04 的文章
Dkphhh Created@

C: I was keen to know about Steve’s passion, what drove him?

主持人:我想知道乔布斯的热情所在,是什么在激励他?

J: I read an article when I was very young, in the Scientific American, and it measures the efficiency of locomotion for various species on the planet, so for you know for bear, chimpanzee, raccoon and birds, and fish, how many calories per kilometer they spend to move, and humans was measured too, the condor won, it was the most efficient, and the mankind, the crowned creation, came in with rather unimpressive showing about 3rd way down the list, but somebody there had the brilliance to test a human riding a bicycle, blew away the condor, all the way off the charts, and I remember this really had an impact on me, I really remember this - humans were tool builders, and we build tools that can dramatically amplify our human abilities. To me, we actually went an ad line earlier with Apple, that the personal computer was the bicycle of mind, and I believe that with every bone in my body, that of all the inventions of humans, the computer is going to rank near, if not at the top, as history unfolds if we look back, and it is the most awesome tool that we ever invented, and I feel incredibly lucky to be at exactly the right place in silicon valley, at exactly the right time, historically where this invention has taken form.

乔布斯:我小时候曾在《科学美国人》上拜读过一篇文章,文中对比了地球上各种不同物种的移动速率,比如熊、猩猩、浣熊、鸟类、鱼类等——当然还有人类——计算它们每移动一公里消耗的热量,最后秃鹫赢了,它的移动效率最高。作为万物之灵的人类,排在倒数第几位。但是杂志特地测量了人类骑自行车的速率。结果把秃鹫远远甩在了身后,在排名上遥遥领先。这篇文章给我留下了深刻的印象,人类擅长发明工具,工具赋予我们奇妙的能力。苹果以前有一条广告:计算机是头脑的自行车,我彻头彻尾地坚信如果将来有人回顾人类历史,计算机将是人类最伟大的发明。能在硅谷参与这项发明,我觉得自己很幸运。

来源:人类头脑的自行车(乔布斯访谈摘录)

阅读关于 2025-04-28 13:03:07 的文章
Dkphhh Created@

今天的编程感受是:

  1. 产品构建的从 0 到 0.1 可以靠大脑里模棱两可的概念,但是从 0.1 到 1 需要一个明确的产品规划与设计。
  2. 前端开发很容易让人沉浸到细枝末节的微调中,忘记真正重要的事情。
阅读关于 2025-04-22 22:57:50 的文章
Dkphhh Created@

📸

202504202213069275.webp 20250420221307pvxd.webp 20250420221306evd3.webp

阅读关于 2025-04-20 22:13:14 的文章
Dkphhh Created@

差不多花了一周的时间,终于算入门 drizzle 的使用了。基本上每学习一个 JS/TS 生态的库,都会经历一个从「为什么会存在这种东西?」、「为什么要这么麻烦?」到「这个设计哲学有点意思」、「用顺手以后好像也没有那么麻烦」的过程。

现在回味一下,Drizzle 的设计哲学其实恰恰最贴近我理想中的「简单」—— 只是在原始的 SQL 上浅浅封装了一层,没有像其他 orm 一样,「贴心」地把常用功能都封装在一个又一个函数里供用户直接调用,一个简单的 CRUD 都要用户考虑各种情况,写好多行。我一开始觉得难用,恰恰是因为它太原始了,加上我对 SQL 语言不熟悉,心理上有点抵触。

所以我现在对所谓的「简单」哲学也祛魅了。

「简单」不一定意味着「容易」和「好用」,「简单」只是「简单」。

simple is just simple, not easy.

阅读关于 2025-03-30 22:49:06 的文章
Dkphhh Created@

好的设计总是心有灵犀

阅读关于 2025-03-07 11:41:36 的文章