oh wow it just works! #svelte #mdsvex #unifiedjs
等博客跑起来以后也许写篇文章说一说 mdsvex 数学支持的致命缺陷、怎么用 unifiedjs 生态替代并重新实现 mdsvex 的一部分功能、unifiedjs 在哪些方面显著优于 mdsvex。
等博客跑起来以后也许写篇文章说一说 mdsvex 数学支持的致命缺陷、怎么用 unifiedjs 生态替代并重新实现 mdsvex 的一部分功能、unifiedjs 在哪些方面显著优于 mdsvex。
Forwarded from LetITFly News (LetITFly 让技术飞)
飞飞忽然想起了 Shadowsocks 原始作者 clowwindy 临走前在 GitHub 留下的那段话。
https://github.com/shadowsocks/shadowsocks-windows/issues/293#issuecomment-132253168
ShadowsocksR vs Shadowsocks
LSPosed vs EdXposed
https://github.com/shadowsocks/shadowsocks-windows/issues/293#issuecomment-132253168
ShadowsocksR vs Shadowsocks
LSPosed vs EdXposed
omg javascript 🤣
https://github.com/jashkenas/underscore/issues/406
https://youtu.be/SCPVDpyApgQ?t=504
https://github.com/jashkenas/underscore/issues/406
https://youtu.be/SCPVDpyApgQ?t=504
GitHub
_.isNumber(NaN) returns true · Issue #406 · jashkenas/underscore
As NaN stands for "Not a Number" the isNumber check in this case seems like it should return false. I notice from other discussions that this is in fact on purpose. Maybe the documentatio...
边界条件之场
omg javascript 🤣 https://github.com/jashkenas/underscore/issues/406 https://youtu.be/SCPVDpyApgQ?t=504
「This definitely seems like a case where semantics should trump technical facts. [...] Putting the Gotcha in the docs – instead of fixing things to make sense to humans – just leads to less time coding and more time peering over documentation scratching your head.」
联想到最近那个赞美 react 在文档里把各种坑都列出来的帖子 🤣
联想到最近那个赞美 react 在文档里把各种坑都列出来的帖子 🤣
前天才刚遇到这个问题 🤣
好在开始 debug 后很快就注意到了 devtools 里给的有用信息,意识到是 flex item 默认
Defensive CSS - Minimum Content Size In CSS Flexbox
Source: https://www.youtube.com/watch?v=cH8VbLM1958
接触前端这短短几个月真的大受震撼,从来没见过其它东西像 html/css/js 这样充满「惊喜」的 😁
好在开始 debug 后很快就注意到了 devtools 里给的有用信息,意识到是 flex item 默认
min-width: auto 的古怪行为。Defensive CSS - Minimum Content Size In CSS Flexbox
Source: https://www.youtube.com/watch?v=cH8VbLM1958
接触前端这短短几个月真的大受震撼,从来没见过其它东西像 html/css/js 这样充满「惊喜」的 😁
IMO yaml has no documentation, only specification 🙄
And the spec is so hard to read there is no way it can be qualified as "human-friendly".
https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell
And the spec is so hard to read there is no way it can be qualified as "human-friendly".
https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell
Ruud van Asseldonk
The yaml document from hell
For a data format, yaml is extremely complicated. It aims to be a human-friendly format, but in striving for that it introduces so much complexity, that I would argue it achieves the opposite result. Yaml is full of footguns and its friendliness is deceptive.…
刚才准备选一个非 web 技术的 gui 框架看看,意外发现之前那个很火的 rust 编辑器 Zed 昨天开源了(包括他们自研的 ui 框架 GPUI ):
https://zed.dev/blog/zed-is-now-open-source
https://zed.dev/blog/zed-is-now-open-source
zed.dev
Zed is now open source
From the Zed Blog: We hope you'll join us in our mission to fundamentally advance software collaboration.
❤1
边界条件之场
草,egui 需要打包用到的字体,包了两个 sarasa ttf 之后 binary size 直逼 electron 🌚
不像 web 框架有 hmr,egui 每次都要重新编译 🥴
(虽然有增量编译不算慢,但怎么也比不上 hmr 瞬时反馈来得爽
(虽然有增量编译不算慢,但怎么也比不上 hmr 瞬时反馈来得爽
边界条件之场
doing layout in immediate mode gui (egui) is so bad i miss html + css 🥴
ok, it's not too bad ...
in css you declare property & relation of boxes;
in egui you calculate desired dimensions with code, since it's a programming environment, everything you can express with css can also be expressed in egui, albeit sometimes more tedious.
in css you declare property & relation of boxes;
in egui you calculate desired dimensions with code, since it's a programming environment, everything you can express with css can also be expressed in egui, albeit sometimes more tedious.
边界条件之场
doing layout in immediate mode gui (egui) is so bad i miss html + css 🥴
容器无法提前得知子项的尺寸信息,又由于 immediate mode gui 帧与帧之间一般不保留尺寸相关信息,导致容器无法根据子项尺寸来调整自身尺寸。不过用户可以手动在一帧的末尾把各种尺寸存下来供下帧参考。
理解这点之后在 immediate mode gui 里写各种 layout 就很顺畅了 😌
理解这点之后在 immediate mode gui 里写各种 layout 就很顺畅了 😌
边界条件之场
容器无法提前得知子项的尺寸信息,又由于 immediate mode gui 帧与帧之间一般不保留尺寸相关信息,导致容器无法根据子项尺寸来调整自身尺寸。不过用户可以手动在一帧的末尾把各种尺寸存下来供下帧参考。 理解这点之后在 immediate mode gui 里写各种 layout 就很顺畅了 😌
egui 里各种容器的尺寸还可以手动解决,但文字排版相关的功能真的是两眼一抹黑 😵💫
连文字行高都找不到 api 控制,这 layout 实在写不下去了。
连文字行高都找不到 api 控制,这 layout 实在写不下去了。