jcq's Avatar

jcq

@jacqv.com.bsky.social

A fool. A fully justified, prudent fool.

34 Followers  |  95 Following  |  46 Posts  |  Joined: 08.02.2024  |  2.2158

Latest posts by jacqv.com on Bluesky

Now for the columns! What mcu are you using?

04.08.2025 19:38 — 👍 0    🔁 0    💬 1    📌 0

"...learning to operate a textile loom in 1820"

❤️

02.08.2025 13:37 — 👍 0    🔁 0    💬 0    📌 0

@mattpocock.com Thanks for the newsletter - always a good read - quick question? It seems like you quite like Vercel's AI SDK - why choose it over the LangChain ecosystem or Genkit?

03.02.2025 15:49 — 👍 1    🔁 0    💬 0    📌 0

Oof. Extra nightmarish if you're putting together a monorepo.

24.01.2025 06:10 — 👍 0    🔁 0    💬 0    📌 0

I think the trick is to get the TS language server as well as a bundler and Node happy with the setup.

I like some kind of combination of TS project references and conditional package exports.

colinhacks.com/essays/live-...

moonrepo.dev/docs/guides/...

23.01.2025 06:15 — 👍 0    🔁 0    💬 0    📌 0

😔

16.01.2025 12:14 — 👍 0    🔁 0    💬 0    📌 0

If you're working with a monorepo type thing then tsBuildInfo might help?
www.typescriptlang.org/tsconfig/#ts...

16.01.2025 10:04 — 👍 0    🔁 0    💬 1    📌 0

There are quite a few JS/TS kernels for Jupyter Notebooks.

github.com/jupyter/jupy...

16.01.2025 09:47 — 👍 0    🔁 0    💬 0    📌 0

That tracks. Especially considering the impact LLM's are having on writing code.

13.01.2025 07:09 — 👍 0    🔁 0    💬 0    📌 0

Do you think it's because of the complexity of modern web-apps? Will the needle swing back as our abstractions mature?

13.01.2025 06:56 — 👍 0    🔁 0    💬 1    📌 0

I think it's frowned upon because it strays too far from plain JS. The line being: If we were to replace all the type annotations with whitespace, will it still work?

13.01.2025 06:50 — 👍 0    🔁 0    💬 1    📌 0

Perhaps using a global error page would do the trick?
nextjs.org/docs/app/bui...

10.01.2025 22:48 — 👍 0    🔁 0    💬 0    📌 0

lol. No worries.

10.01.2025 20:38 — 👍 0    🔁 0    💬 0    📌 0

What? This isn't related to TypeScript! i've been duped!

10.01.2025 20:22 — 👍 2    🔁 0    💬 1    📌 0

Have you tried the Vitest VSCode extension? Dunno if I'm just lucky but debugging tests just worked out of the box!

09.01.2025 20:11 — 👍 0    🔁 0    💬 1    📌 0

Losing it? Did they ever have it?

07.01.2025 11:48 — 👍 1    🔁 0    💬 0    📌 0

That's interesting - did you reach for a custom adapter in better-auth?

03.01.2025 07:18 — 👍 0    🔁 0    💬 0    📌 0

Quick question: what sets better-auth apart for you?

02.01.2025 21:32 — 👍 1    🔁 0    💬 0    📌 0

I get the feeling the industry is still working on standardising what constitutes an Agent.

Anthropic seems to make a distinction between Agents and Workflows: www.anthropic.com/research/bui...

It kinda makes me think that agents are self-directed; they involve an LLM in choosing what to do next

02.01.2025 06:53 — 👍 1    🔁 0    💬 0    📌 0

The Star Wars soundtrack owes So Much to Holst's Planets Suite.

01.01.2025 12:11 — 👍 1    🔁 0    💬 1    📌 0

Oh that sounds interesting- I'll take a look

29.12.2024 19:27 — 👍 1    🔁 0    💬 0    📌 0

Ooh. What's the plan to avoid the suckyness?

29.12.2024 18:04 — 👍 0    🔁 0    💬 1    📌 0

DHH (the Rails guy) was espousing the same idea a few years ago - I'd like to think it helped shift the Overton window in favour of SSR.

28.12.2024 22:57 — 👍 1    🔁 0    💬 0    📌 0

Array.prototype.reduce gets quite close: The callback's 3rd arg is the index. Return the accumulator and the current value spreaded to flatten.

Eg.

[[1], [2,2], [3,3,3]].reduce((acc, curr, idx) => idx > 1 ? [...acc, ...curr] : acc, [])

I'd argue chaining filter and flatMap is usually clearer tho

28.12.2024 22:39 — 👍 2    🔁 0    💬 0    📌 0

🦆 If it quacks like a duck...

28.12.2024 08:24 — 👍 0    🔁 0    💬 0    📌 0

About completeness: yeah, this only handles type-annotations. Enums and the like are behind another flag. Node is also waiting for the JS decorators proposal to land before adding support for them.

28.12.2024 08:15 — 👍 2    🔁 0    💬 0    📌 0

My take: prefer safeParse when using TS.

Form validation failing isn't exceptional - it's a thing that can (and probably should) be modelled using the type-system.

Caught errors are of type `any` - using that for flow control is a shlep.

27.12.2024 20:39 — 👍 2    🔁 0    💬 0    📌 0

It's such a good extension! Makes VSCode feel like real IDE!

27.12.2024 20:00 — 👍 1    🔁 0    💬 0    📌 0

Also:
- type annotations get replaced with whitespace
- remember to `import type` else node tries to import types that it replaced with whitespace
- debugging works well enough
- don't mix esm and cjs imports
- tsx not supported
- path aliases not supported

27.12.2024 19:45 — 👍 6    🔁 0    💬 1    📌 0

Ran into this. Thought you might be interested:
www.aihero.dev/evalite-an-e...

27.12.2024 16:23 — 👍 1    🔁 0    💬 0    📌 0

@jacqv.com is following 20 prominent accounts