Advertisement ยท 728 ร— 90

Posts by jcq

Now for the columns! What mcu are you using?

8 months ago 0 0 1 0

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

โค๏ธ

8 months ago 0 0 0 0

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

1 year ago 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/...

1 year ago 0 0 0 0

๐Ÿ˜”

1 year ago 0 0 0 0

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

1 year ago 0 0 1 0

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

github.com/jupyter/jupy...

1 year ago 0 0 0 0

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

1 year ago 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?

1 year ago 0 0 1 0
Advertisement

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?

1 year ago 0 0 1 0

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

1 year ago 0 0 0 0

lol. No worries.

1 year ago 0 0 0 0

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

1 year ago 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!

1 year ago 0 0 1 0

Losing it? Did they ever have it?

1 year ago 0 0 0 0

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

1 year ago 0 0 0 0

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

1 year ago 1 0 0 0
Advertisement

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

1 year ago 1 0 0 0

Oh that sounds interesting- I'll take a look

1 year ago 1 0 0 0

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

1 year ago 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.

1 year ago 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

1 year ago 2 0 0 0

๐Ÿฆ† If it quacks like a duck...

1 year ago 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.

1 year ago 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.

1 year ago 2 0 0 0
Advertisement

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

1 year ago 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

1 year ago 6 0 1 0

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

1 year ago 1 0 0 0

I've also been having this fight myself. This was quite useful: moonrepo.dev/docs/guides/...

1 year ago 4 0 1 2

Ah - LangSmith and LangFlow might help there, though they don't really focus on doing things locally.

1 year ago 0 0 1 0