Tag: 科技

Dkphhh Created@

是哪个大聪明决定把台前调度放进 macOS 里的?这个人应该被苹果开除!

阅读关于 2025-07-08 13:33:33 的文章
Dkphhh Created@

今天切身体会到了前端的困境。

最近在算学用 strapi 做官网。前端还是 SvelteKit + Tailwind CSS,打算用 Prettier 做 formatter,简单搜了一下,发现 Svelte 和 Tailwind CSS 都有官方的 Prettier 插件。

照着教程用 npm 下插件,然后把教程里的配置代码复制到了 package.json。

试了一下,不对,有问题。

搜了一下,然后发现是 Prettier 和原来 Svelte 的 VSCode 插件有冲突,需要到 setting.json 里改 svelte 默认的 formatter。

重试,.svelte 文件能 format 了,但是 .svelte 文件里的 Tailwind CSS 代码没有 format。

又查了一下,发现是 package.json 里插件的顺序不对,Tailwind 的插件必须放最后。

改完 package.json 文件,再重试,这次对了,没问题了。

2 个小时过去了,啥也没干,就反复改配置文件去了。

复盘一下问题出在哪儿?

首先,肯定不是我的问题。我遇到的每一个问题都能在 Google 里搜到,GitHub 里关于前述这些坑,每一个都有时间跨度 2 年以上的 issue,说明不断有人踩到了同样的坑里。

我觉得问题还是出在前端生态上。

其实,从我学 JS / TS 开始到现在大半年时间,我已经接受了每一个项目里都必须存在配置文件这件事。

配置文件没有问题,问题是前端技术栈上的框架和 toolkit 太多了,每一个还需要相互兼容对方的存在,如果不兼容就没法用。这些眼花缭乱的配置项只是为了兼容而存在的折中方案。

这是我在此前学习 Python 的 1 年多时间里,从未遇到过的问题。

前端娱乐圈,名不虚传 👍。

阅读关于 2025-06-29 23:44:28 的文章
Dkphhh Created@

海德格尔迫使我们做一件更为艰难的事:看清世界如何被技术重新构建,然后有意识地重新夺回或重新编织那些有可能被压平的意义之线。

202506151657073zb7.webp

阅读关于 2025-06-15 16:57:04 的文章
Dkphhh Created@

想到了买东西。如果没有文字,商品就没有明码标价,顾客和店主就只能用嘴讨价还价了。但是现代人去便利店买东西,真的可以一句话都不说,甚至结账都是自助的。

20250615012126mqz1.webp

阅读关于 2025-06-15 01:21:23 的文章
Dkphhh Created@

傻瓜相机其实很聪明,傻瓜形容的是用相机的人。

阅读关于 2025-06-08 14:05:55 的文章
Dkphhh Created@

This is an open source problem, it will always be this way

202505161845100sjq.webp

阅读关于 2025-05-16 18:45:09 的文章
Dkphhh Created@

A message from my phone

阅读关于 2025-05-02 02:40:26 的文章
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@

shot by 📱 感觉我的富士相机已经没有什么用武之地了。

2025042617542305zg.webp 20250426175423jsxo.webp 20250426182657gv8d.webp 20250426182657z16y.webp 20250426182657b579.webp

阅读关于 2025-04-25 18:14:56 的文章
Dkphhh Created@

为什么 JS 的 ORM 都能比 Python 复杂这么多……

阅读关于 2025-03-25 09:37:20 的文章
14620