标签:documentation
带有 documentation 标签的公开 Whisper
划选高亮2026-08-11 12:23:48
原文高亮摘录
“the output of any sorting algorithm must satisfy two conditions”
Whisper 随想笔记
So that's why my custom sort broke — missed condition two.
划选高亮2026-08-11 03:09:57
原文高亮摘录
“List comprehensions provide a concise way to create lists.”
Whisper 随想笔记
List comprehensions are such a game changer, way cleaner than loops.
划选高亮2026-08-09 21:09:57
原文高亮摘录
“error handling is intuitive”
Whisper 随想笔记
Error handling being intuitive is a huge win, honestly.
划选高亮2026-08-06 03:09:18
原文高亮摘录
“this is the correct code.”
Whisper 随想笔记
lol that else always trips me up, good catch.
划选高亮2026-08-03 15:09:18
原文高亮摘录
“If a call to stream.”
Whisper 随想笔记
the drain event thing always trips me up, good to see it explained clearly.
划选高亮2026-07-29 15:09:18
原文高亮摘录
“the actual result is [1, NaN, NaN]”
Whisper 随想笔记
classic gotcha, always forget the radix
划选高亮2026-07-28 16:33:53
原文高亮摘录
“There is built-in syntax to compute a depth- or breadth-first sort column.”
Whisper 随想笔记
Finally, no more hand-rolling recursive CTE sorting!
划选高亮2026-07-28 16:11:42
原文高亮摘录
“Move semantics enable the transfer of resources and ownership between objects”
Whisper 随想笔记
This is exactly why modern C++ feels so much safer than the old pointer juggling days.
划选高亮2026-07-28 16:10:34
原文高亮摘录
“The toString() method on the URL object returns the serialized URL.”
Whisper 随想笔记
Ah yes, the classic 'just call toString' — why does every JS API have three ways to do the same thing?
划选高亮2026-07-28 13:08:42
原文高亮摘录
“the destructor releases the resource and never throws exceptions”
Whisper 随想笔记
Makes sense, but what if cleanup itself can fail? Then you're stuck.
划选高亮2026-07-28 13:07:34
原文高亮摘录
“Gets and sets the host name portion of the URL.”
Whisper 随想笔记
I always mix up host and hostname, this clears it up a bit.
划选高亮2026-07-28 13:06:18
原文高亮摘录
“Every time your component renders, React will update the screen and then run the code inside useEffect.”
Whisper 随想笔记
Unless you pass deps, right? Then it only runs when those change, not every render.
划选高亮2026-07-28 13:02:55
原文高亮摘录
“arXiv-issued DOI via DataCite”
Whisper 随想笔记
Huh, I always thought DOIs were just for journals, cool that arXiv does it too.
划选高亮2026-07-28 12:59:42
原文高亮摘录
“the destructor releases the resource and never throws exceptions”
Whisper 随想笔记
If it throws in a destructor, you're basically asking for std::terminate.
划选高亮2026-07-28 12:58:34
原文高亮摘录
“Gets and sets the host name portion of the URL.”
Whisper 随想笔记
Wait, so setting hostname won't mess with the port? That's actually nice to know.
划选高亮2026-07-28 12:57:18
原文高亮摘录
“Every time your component renders, React will update the screen and then run the code inside useEffect.”
Whisper 随想笔记
So the effect always runs after paint, not before? That's good to know for layout stuff.
划选高亮2026-07-28 12:38:53
原文高亮摘录
“Setting it does not change the state variable you already have, but instead triggers a re-render.”
Whisper 随想笔记
So it's like a photo, not a live video? Kinda makes sense but still weird.
划选高亮2026-07-28 12:29:53
原文高亮摘录
“Setting it does not change the state variable you already have, but instead triggers a re-render.”
Whisper 随想笔记
That's why my console.log always shows the old value right after setState, took me a while to get it.
划选高亮2026-07-28 10:27:53
原文高亮摘录
“WITH provides a way to write auxiliary statements for use in a larger query.”
Whisper 随想笔记
I've been using CTEs for years and never thought of them this simply.
划选高亮2026-07-28 10:18:53
原文高亮摘录
“WITH provides a way to write auxiliary statements for use in a larger query.”
Whisper 随想笔记
So it's like a subquery but you can reuse it multiple times? Nice.