标签:backend

带有 backend 标签的公开 Whisper

划选高亮2026-08-04 21:09:18
原文高亮摘录
When appropriate
Whisper 随想笔记
Good point, sync order makes debugging way easier.
划选高亮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-08-02 09:09:18
原文高亮摘录
curl http://localhost:11434/api/chat
Whisper 随想笔记
curl command straight into terminal, love how simple it is.
划选高亮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 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 10:04:34
原文高亮摘录
The node:url module provides utilities for URL resolution and parsing.
Whisper 随想笔记
had to debug a URL parse issue last week, this would've saved me
划选高亮2026-07-28 09:55:34
原文高亮摘录
The node:url module provides utilities for URL resolution and parsing.
Whisper 随想笔记
still prefer the WHATWG API but good to have options
划选高亮2026-07-28 09:46:34
原文高亮摘录
The node:url module provides utilities for URL resolution and parsing.
Whisper 随想笔记
finally a built-in for this, no more messing with regex
划选高亮2026-07-27 13:21:47
原文高亮摘录
Updates the state file so that the configuration, real infrastructure, and state match.
Whisper 随想笔记
Isn't that just saying it syncs everything up? Feels obvious.
划选高亮2026-07-27 13:07:30
原文高亮摘录
then normalizes the resulting path.
Whisper 随想笔记
Wait, does it handle Windows backslashes too or just forward ones?
划选高亮2026-07-27 12:58:30
原文高亮摘录
then normalizes the resulting path.
Whisper 随想笔记
So basically it cleans up the slashes and dots for you, sweet.
划选高亮2026-07-27 10:04:30
原文高亮摘录
It can be accessed using:const path = require('node:path')
Whisper 随想笔记
my brain always autocorrects this to 'node:path', still confused after years
划选高亮2026-07-27 09:55:30
原文高亮摘录
It can be accessed using:const path = require('node:path')
Whisper 随想笔记
wait, why not just require('path')? is the node: prefix new?
划选高亮2026-07-27 09:46:30
原文高亮摘录
It can be accessed using:const path = require('node:path')
Whisper 随想笔记
finally no more dealing with those slash issues manually
划选高亮2026-07-26 16:25:15
原文高亮摘录
Even though the slice header is passed by value
Whisper 随想笔记
This is exactly why slices feel like references even though they're not.
划选高亮2026-07-26 10:27:44
原文高亮摘录
A healthy GraphQL API starts with a well-governed schema.
Whisper 随想笔记
Our team tried this and it actually made onboarding way easier for new devs.
划选高亮2026-07-26 10:18:44
原文高亮摘录
A healthy GraphQL API starts with a well-governed schema.
Whisper 随想笔记
Automated checks sound nice but don't they just slow down every small change?
划选高亮2026-07-26 10:09:44
原文高亮摘录
A healthy GraphQL API starts with a well-governed schema.
Whisper 随想笔记
We learned this the hard way—our schema was chaos before we added reviews.
划选高亮2026-07-25 13:08:26
原文高亮摘录
Use the compiler flag noImplicitAny to flag any implicit any as an error.
Whisper 随想笔记
Honestly, any is a lifesaver sometimes, but yeah, better to be strict.
划选高亮2026-07-25 12:59:26
原文高亮摘录
Use the compiler flag noImplicitAny to flag any implicit any as an error.
Whisper 随想笔记
I always enable that flag, but it still takes me a while to fix all the errors.